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.

random crash on iOS/iPad in System.Text.Json

See original GitHub issue

Package

Sentry.Maui

.NET Flavor

.NET

.NET Version

SDK 7.0.203 Runtime 7.0.5

OS

iOS/iPadOS 16.4.1

SDK Version

3.31.0

Steps to Reproduce

Sporadic error, can’t repro with known steps.

Expected Result

no crash report on sentry.io originating from sentry code

Actual Result

Full crash report: https://vapolia.sentry.io/issues/4162211964/events/9a219ceb57244c3d97b44557c152c35f/

OS Version: iOS 16.4.1 (20E252)
Report Version: 104

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: SEGV_NOOP at 0x0000000000000010
Crashed Thread: 15

Application Specific Information:
Exception 1, Code 1, Subcode 16 >
KERN_INVALID_ADDRESS at 0x10.

Thread 15 Crashed:
0   Watchium                        0x20a9b6528         mini_init_method_rgctx (jit-icalls.c:1681)
1   Watchium                        0x2096a1628         System_Text_Json_System_Array_Resize_T_BYTE_T_BYTE____int
2   Watchium                        0x205136020         Sentry_Protocol_Envelopes_Envelope__SerializeHeaderAsyncd__11_MoveNext (<unknown>:1)
3   Watchium                        0x205abe304         wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr
4   Watchium                        0x20a9b2708         mono_jit_runtime_invoke (mini-runtime.c:3524)
5   Watchium                        0x20a906d24         [inlined] do_runtime_invoke (object.c:2415)
6   Watchium                        0x20a906d24         mono_runtime_invoke_checked (object.c:2583)
7   Watchium                        0x20a9b5de4         mono_gsharedvt_constrained_call (jit-icalls.c:1476)
8   Watchium                        0x205ac2b44         wrapper_managed_to_native_object___icall_wrapper_mono_gsharedvt_constrained_call_intptr_intptr_intptr_intptr_intptr
9   Watchium                        0x205a72430         System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_TStateMachine_GSHAREDVT_TStateMachine_GSHAREDVT_
10  Watchium                        0x2074b3320         Sentry_Sentry_Protocol_Envelopes_Envelope_SerializeHeaderAsync_System_IO_Stream_Sentry_Extensibility_IDiagnosticLogger_Sentry_Infrastructure_ISystemClock_System_Threading_CancellationToken
11  Watchium                        0x205abe304         wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr
12  Watchium                        0x20a9b2708         mono_jit_runtime_invoke (mini-runtime.c:3524)
13  Watchium                        0x20a906d24         [inlined] do_runtime_invoke (object.c:2415)
14  Watchium                        0x20a906d24         mono_runtime_invoke_checked (object.c:2583)
15  Watchium                        0x20a9b5de4         mono_gsharedvt_constrained_call (jit-icalls.c:1476)
16  Watchium                        0x205ac2b44         wrapper_managed_to_native_object___icall_wrapper_mono_gsharedvt_constrained_call_intptr_intptr_intptr_intptr_intptr
17  Watchium                        0x205a72430         System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_TStateMachine_GSHAREDVT_TStateMachine_GSHAREDVT_
18  Watchium                        0x2074b36d4         Sentry_Sentry_Protocol_Envelopes_Envelope_SerializeAsync_System_IO_Stream_Sentry_Extensibility_IDiagnosticLogger_Sentry_Infrastructure_ISystemClock_System_Threading_CancellationToken
19  Watchium                        0x205abe304         wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr
20  Watchium                        0x20a9b2708         mono_jit_runtime_invoke (mini-runtime.c:3524)
21  Watchium                        0x20a906d24         [inlined] do_runtime_invoke (object.c:2415)
22  Watchium                        0x20a906d24         mono_runtime_invoke_checked (object.c:2583)
23  Watchium                        0x20a9b5de4         mono_gsharedvt_constrained_call (jit-icalls.c:1476)
24  Watchium                        0x205ac2b44         wrapper_managed_to_native_object___icall_wrapper_mono_gsharedvt_constrained_call_intptr_intptr_intptr_intptr_intptr
25  Watchium                        0x205a72430         System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_TStateMachine_GSHAREDVT_TStateMachine_GSHAREDVT_
26  Watchium                        0x2074d3b0c         Sentry_Sentry_Internal_Http_CachingTransport_StoreToCacheAsync_Sentry_Protocol_Envelopes_Envelope_System_Threading_CancellationToken
27  Watchium                        0x205abe304         wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr
28  Watchium                        0x20a9b2708         mono_jit_runtime_invoke (mini-runtime.c:3524)
29  Watchium                        0x20a906d24         [inlined] do_runtime_invoke (object.c:2415)
30  Watchium                        0x20a906d24         mono_runtime_invoke_checked (object.c:2583)
31  Watchium                        0x20a9b5de4         mono_gsharedvt_constrained_call (jit-icalls.c:1476)
32  Watchium                        0x205ac2b44         wrapper_managed_to_native_object___icall_wrapper_mono_gsharedvt_constrained_call_intptr_intptr_intptr_intptr_intptr
33  Watchium                        0x205a72430         System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_TStateMachine_GSHAREDVT_TStateMachine_GSHAREDVT_
34  Watchium                        0x2074d3c80         Sentry_Sentry_Internal_Http_CachingTransport_SendEnvelopeAsync_Sentry_Protocol_Envelopes_Envelope_System_Threading_CancellationToken
35  Watchium                        0x207572e50         Sentry_System_Runtime_CompilerServices_AsyncTaskMethodBuilder_1_AsyncStateMachineBox_1_System_Threading_Tasks_VoidTaskResult_Sentry_Internal_BackgroundWorker__DoWorkAsyncd__20_ExecutionContextCallback_object
36  Watchium                        0x209afb020         corlib_System_Threading_Tasks_Task_RunContinuations_object
37  Watchium                        0x209afaebc         corlib_System_Threading_Tasks_Task_FinishContinuations
38  Watchium                        0x209cf5718         corlib_System_Runtime_CompilerServices_AsyncTaskMethodBuilder_1_AsyncStateMachineBox_1_bool_System_Threading_SemaphoreSlim__WaitUntilCountOrTimeoutAsyncd__31_ExecutionContextCallback_object
39  Watchium                        0x209afb0e0         corlib_System_Threading_Tasks_Task_RunContinuations_object
40  Watchium                        0x209afaebc         corlib_System_Threading_Tasks_Task_FinishContinuations
41  Watchium                        0x205a46a70         System_Threading_Tasks_Task_CancellationPromise_1_TResult_GSHAREDVT_System_Threading_Tasks_ITaskCompletionAction_Invoke_System_Threading_Tasks_Task
42  Watchium                        0x209b01e30         corlib_System_Threading_Tasks_CompletionActionInvoker_System_Threading_IThreadPoolWorkItem_Execute
43  Watchium                        0x209ac8a74         corlib_System_Threading_Thread_StartCallback
44  Watchium                        0x20a9b2708         mono_jit_runtime_invoke (mini-runtime.c:3524)
45  Watchium                        0x20a906d24         [inlined] do_runtime_invoke (object.c:2415)
46  Watchium                        0x20a906d24         mono_runtime_invoke_checked (object.c:2583)
47  Watchium                        0x20a9185f8         start_wrapper_internal (threads.c:1213)
48  Watchium                        0x20a918388         start_wrapper (threads.c:1264)
49  libsystem_pthread.dylib         0x404be16b4         _pthread_start
Registers
cpsr    0x0000000020001000
x0      0x000000010cc072a0
x1      0x0000000000000001
x2      0x000000010f000000
x3      0x000000010f123400
x4      0x0000000000000004
x5      0x000000010f123400
x6      0x0000000000000800
x7      0x0000000000000cc0
x8      0x000000010cc07490
x9      0x0000000000000020
x10     0x00000000004d2400
x11     0x0000000000bf3d01
x12     0x0000000000004009
x13     0x000000010f120000
x14     0x0000000000003fff
x15     0x00000000de99f8c0
x16     0x000000010a9b64bc
x17     0x00000001ce2d0dd4
x18     0x0000000000000000
x19     0x000000010e8cdc08
x20     0x0000000000000000
x21     0x0000000280bb34e0
x22     0x0000000000000000
x23     0x0000000000000006
x24     0x000000010cec74e0
x25     0x000000010ced4c70
x26     0x000000010cec7328
x27     0x000000010cc07490
x28     0x0000000000000001
fp      0x000000016bb4f120
lr      0x000000010a9b651c
sp      0x000000016bb4f0d0
pc      0x000000010a9b6528

Issue Analytics

  • State:open
  • Created 4 months ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
vargazcommented, May 8, 2023

Is there a way to reproduce the problem ?

0reactions
mattjohnsonpintcommented, May 9, 2023

Going back to the original issue. Please let us know if you find a way to reproduce it. Even if it’s sporadic - perhaps we can get a failure with repeated retry, or under a specific type of device deployment. Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

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 >
MonoTouch random crash on device, not on simulator
I am using a large amount of events in my application. Too many threads? Stacktrace: at Newtonsoft.Json.JsonWriter.WriteValue (object) at ...
Read more >
iPhone Apps Keep Crashing Randomly? - Here's Real Fix!
After the latest iOS 16 update on your iPhone, Instagram/WhatsApp/App Store and other apps are crashing at random, or facing issues like- ...
Read more >
Codeproject.AI Server Crashing : r/BlueIris
Hey Everyone, we had a power cut last week and for some reason it seems to have broken the CodeProject server?
Read more >
Bug - [IN-26935, IN-29079] Random Crashes when using ...
Bug [IN-26935, IN-29079] Random Crashes when using Camera Stack with Multithreaded ... Attached is a Editor crash log JSON for help.
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