question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Xamarin] [iOS & Android] Random Internal Crash in Sentry.Internal.Extensions.StreamExtensions+<ReadAllBytesAsync>

See original GitHub issue

Package

Sentry

.NET Flavor

Xamarin

.NET Version

6.0.401

OS

Any (not platform specific)

SDK Version

Sentry Xamarin 1.4.2 / Sentry.NET SDK 3.20.1

Self-Hosted Sentry Version

No response

Steps to Reproduce

Unfortunately, we didn’t find any repro to the issue. By seeing the Logs, the app crashes randomly. On our app, we send many events (for basically every click / navigation)

Expected Result

The app should not crash.

Actual Result

System.InvalidOperationException: Operation is not valid due to the current state of the object.
  at System.Threading.Tasks.Sources.ManualResetValueTaskSourceCoreShared.CompletionSentinel (System.Object _) [0x00000] in <0e338e4ca0054dd19c56e9a51aa6e2f3>:0
  at System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1[TResult].InvokeContinuation () [0x0005a] in <0e338e4ca0054dd19c56e9a51aa6e2f3>:0
  at System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1[TResult].SignalCompletion () [0x00063] in <0e338e4ca0054dd19c56e9a51aa6e2f3>:0
  at System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1[TResult].SetResult (TResult result) [0x00007] in <0e338e4ca0054dd19c56e9a51aa6e2f3>:0

  at Sentry.Internal.Extensions.StreamExtensions+<ReadAllBytesAsync>d__0.MoveNext () [0x001b9] in <c6891296f43443389af454d6ade2ce97>:0

  at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext (System.Object stateMachine) [0x00000] in <0e338e4ca0054dd19c56e9a51aa6e2f3>:0
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <0e338e4ca0054dd19c56e9a51aa6e2f3>:0
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <0e338e4ca0054dd19c56e9a51aa6e2f3>:0
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run () [0x00024] in <0e338e4ca0054dd19c56e9a51aa6e2f3>:0
  at System.Threading.Tasks.AwaitTaskContinuation.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x00008] in <0e338e4ca0054dd19c56e9a51aa6e2f3>:0
  at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00074] in <0e338e4ca0054dd19c56e9a51aa6e2f3>:0
  at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <0e338e4ca0054dd19c56e9a51aa6e2f3>:0

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mattjohnsonpintcommented, Oct 7, 2022

@khalilyamoun - That will happen soon, but since it’s a direct nuget dependency, you can add both Sentry.Xamarin and Sentry to your project to get the latest versions of each.

1reaction
mattjohnsonpintcommented, Oct 7, 2022

@khalilyamoun - It’s out now. Try 3.22.0 and please let us know if it fixes the issue or not.

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Offline caching prevents error reports from iOS app #74
iOS [18946:3360635] Error: Failed to send cached envelope: System.Threading.Tasks.TaskCanceledException: A task was canceled. at Sentry.Internal.
Read more >
Troubleshooting for Xamarin
Learn more about how to troubleshoot common issues with the Xamarin SDK. ... For users on Xamarin iOS, offline caching may cause this...
Read more >
Xamarin.iOS Random Crash/Freeze - "Got a segv while ...
After updating to iOS v15.3.1 (from v13) our app now randomly freezes/crashes during navigation. I'm on Windows 10 Visual Studio 2019 ...
Read more >
Xamarin ios App Crashes when deployed
When deployed to Testlfight and downloaded on iPhone device, the app immediately crashes. Crash log (attached) shows a generic exception:.
Read more >
Xamarin ios Share Extension Crashes on try to get stream ...
We currently are workiong on an share extension (xamarin ios) for mediafiles. Every thing working fine expecpt .mov files.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found