Comments (8)
Here's a different exception that's being thrown in the same way inside the Sentry assembly:
System.AggregateException
A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. ('0x00' is an invalid start of a value. LineNumber: 0 | BytePositionInLine: 0.)
System.Text.Json.JsonReaderException: '0x00' is an invalid start of a value. LineNumber: 0 | BytePositionInLine: 0.
?, in void ThrowHelper.ThrowJsonReaderException(ref Utf8JsonReader json, ExceptionResource resource, byte nextByte, ReadOnlySpan<byte> bytes)
?, in bool Utf8JsonReader.ConsumeValue(byte marker)
?, in bool Utf8JsonReader.ReadFirstToken(byte first)
?, in bool Utf8JsonReader.ReadSingleSegment()
?, in bool Utf8JsonReader.Read()
?, in void JsonDocument.Parse(ReadOnlySpan<byte> utf8JsonSpan, JsonReaderOptions readerOptions, ref MetadataDb database, ref StackRowStack stack) x 3
?, in JsonElement Json.Parse(byte[] json)
?, in async Task<IReadOnlyDictionary<string, object>> Envelope.DeserializeHeaderAsync(Stream stream, CancellationToken cancellationToken)
?, in async Task<Envelope> Envelope.DeserializeAsync(Stream stream, CancellationToken cancellationToken)
?, in async Task CachingTransport.InnerProcessCacheAsync(string file, CancellationToken cancellation) x 2
?, in async Task CachingTransport.ProcessCacheAsync(CancellationToken cancellation)
?, in async Task CachingTransport.FlushAsync(CancellationToken cancellationToken)
from sentry-xamarin.
Here's yet another exception that's being reported as a crash coming from within the Sentry assembly:
System.AggregateException
A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (Could not find file "/data/user/0/br.com.meuspedidos/files/.local/share/Sentry/EC64262B4D715A641F1FBF2FFBA5DCD08B93146A/1651680173_-6202_e2e2a80361cb47ca8c32ea45612e49d4_-1007682855.envelope")
System.IO.FileNotFoundException: Could not find file "/data/user/0/br.com.meuspedidos/files/.local/share/Sentry/EC64262B4D715A641F1FBF2FFBA5DCD08B93146A/1651680173_-6202_e2e2a80361cb47ca8c32ea45612e49d4_-1007682855.envelope"
?, in new FileStream(string path, FileMode mode, FileAccess access, FileShare share, int bufferSize, bool anonymous, FileOptions options) x 2
?, in void FileSystem.CopyFile(string sourceFullPath, string destFullPath, bool overwrite)
?, in void File.Copy(string sourceFileName, string destFileName, bool overwrite)
?, in async Task<string> CachingTransport.TryPrepareNextCacheFileAsync(CancellationToken cancellationToken)
?, in async Task CachingTransport.ProcessCacheAsync(CancellationToken cancellation)
?, in async Task CachingTransport.FlushAsync(CancellationToken cancellationToken)
from sentry-xamarin.
Hi Caio,
Are you seeing those events being registered on Sentry.io or locally?
from sentry-xamarin.
@lucas-zimerman I'm seeing them show up on sentry.io. But I've done some more digging, it seems this is an issue with CachingTransport in sentry-dotnet actually, and I've already created an issue over there: getsentry/sentry-dotnet#1640
from sentry-xamarin.
We're currently facing the same issue on our Production app :(
from sentry-xamarin.
Despite being flagged as unhandled the above issues shouldn't crash the app.
Once the fix is applied and released on Sentry .NET (getsentry/sentry-dotnet#1640) I'll update the Xamarin SDK and release a new Version.
from sentry-xamarin.
Although those exceptions don't actually crash the app, Sentry thinks it does and that impacts our Crash Free Users and Sessions metrics. For now we've ignored those exceptions, while we wait for the new version with the fix. Thanks for the help everyone!
from sentry-xamarin.
@caiofbpa - The fix has been released in Sentry 3.17.1, bundled with Sentry.Xamarin 1.4.1. Please let us know here if this resolves the issue. Thanks.
from sentry-xamarin.
Related Issues (20)
- add app start instrumentation for xamarin (forms) HOT 6
- add Routing Instumentation for App Shell in Xamarin Forms HOT 1
- add Slow and Frozen Frames instrumentation for xamarin
- Documentation - change DSN to https://[email protected]/1234 HOT 2
- Discuss CancelationToken on FormsApplicationListener HOT 1
- Update to [email protected] with Forms??? HOT 3
- Crash on Self Hosted. HOT 1
- Sentry.Xamarin 1.4.2 gives error when compiling against net6.0-android project HOT 2
- Unhandled Exception : System.IO.IOException: Sharing violation on path ..../Sentry/xxxxx.envelope HOT 7
- Sentry does not work in XamarinForms.iOS apps HOT 8
- SDK doesn't allow you to overwrite the release option
- Line numbers for Android HOT 7
- 1.5+ Breaks using Sentry 3.31 or higher HOT 6
- System.MissingMethodException: Method not found HOT 6
- Streamline and align the "Getting Started" docs to fit in the new structure HOT 1
- [Android] System.NullReferenceException - RequestedThemeChanged HOT 2
- iOS ITMS-91053: Missing API declaration HOT 8
- 'Xamarin.Essentials.NotImplementedInReferenceAssemblyException' despite direct reference HOT 5
- XALNK7000: Mono.Linker.MarkException Sentry.SentryXamarinOptionsExtensions::RegisterXamarinEventProcessors HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sentry-xamarin.