Giter Club home page Giter Club logo

Comments (8)

caiofbpa avatar caiofbpa commented on May 31, 2024

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.

caiofbpa avatar caiofbpa commented on May 31, 2024

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.

lucas-zimerman avatar lucas-zimerman commented on May 31, 2024

Hi Caio,
Are you seeing those events being registered on Sentry.io or locally?

from sentry-xamarin.

caiofbpa avatar caiofbpa commented on May 31, 2024

@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.

khalilyamoun avatar khalilyamoun commented on May 31, 2024

We're currently facing the same issue on our Production app :(

from sentry-xamarin.

lucas-zimerman avatar lucas-zimerman commented on May 31, 2024

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.

caiofbpa avatar caiofbpa commented on May 31, 2024

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.

mattjohnsonpint avatar mattjohnsonpint commented on May 31, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.