Xamarin iOS crash investigation

saqib_qhansaqib_qhan Member ✭✭
edited August 29 in Xamarin.iOS

I'm not able to get much out of the crash report which I've symbolicated. Here is the report

`Incident Identifier: 194E4550-9960-4GE3-80DA-15AK82D5A87A
CrashReporter Key: 5e32d0e2b3e4c39de75cfde181542605eb0348ft
Hardware Model: iPhone11,2
Process: MyApp.iOS [15551]
Path: /private/var/containers/Bundle/Application/523E6A7F-A84F-476E-B5MD-5BA55264A06A/MyApp.iOS.app/MyApp.iOS
Identifier: com.location.company
Version: 1 (1.0.0)
AppStoreTools: 10G3
AppVariant: 1:iPhone11,2:12
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.location.company [797]

Date/Time: 2019-08-26 10:14:26.8651 -0500
Launch Time: 2019-08-26 10:14:26.5247 -0500
OS Version: iPhone OS 12.4 (16G77)
Baseband Version: 1.06.02
Report Version: 104

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0

Thread 0 name:
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x00000001991a90cc __pthread_kill + 8
1 libsystem_c.dylib 0x00000001991021f4 __abort + 156 (abort.c:131)
2 libsystem_c.dylib 0x0000000199102158 abort + 156 (abort.c:102)
3 MyApp.iOS 0x00000001041edf88 xamarin_printf + 20766600 (runtime.m:2536)
4 MyApp.iOS 0x0000000104110928 mono_invoke_unhandled_exception_hook + 19859752 (exception.c:1282)
5 MyApp.iOS 0x00000001040b3a64 mono_handle_exception_internal + 19479140 (mini-exceptions.c:2674)
6 MyApp.iOS 0x00000001040b427c mono_resume_unwind + 19481212 (mini-exceptions.c:3424)
7 MyApp.iOS 0x00000001040aa194 mono_arm_resume_unwind + 19440020 (exceptions-arm64.c:432)
8 MyApp.iOS 0x0000000102f59718 llvm_resume_unwind_trampoline + 168
9 MyApp.iOS 0x0000000103a508e0 Xamarin_iOS_UIKit_UIApplication_Main_string___intptr_intptr + 12781792 (UIApplication.cs:0)
10 MyApp.iOS 0x00000001040c3ef4 mono_jit_runtime_invoke + 19545844 (mini-runtime.c:3120)
11 MyApp.iOS 0x000000010414e9ac mono_runtime_invoke_checked + 20113836 (object.c:2960)
12 MyApp.iOS 0x0000000104153d74 mono_runtime_exec_main_checked + 20135284 (object.c:0)
13 MyApp.iOS 0x00000001040a9720 mono_jit_exec + 19437344 (driver.g.c:1236)
14 MyApp.iOS 0x00000001041f463c xamarin_main + 20792892 (monotouch-main.m:0)
15 MyApp.iOS 0x0000000102e5d380 main + 250752 (main.m:97)
16 libdyld.dylib 0x000000019905cfd8 start + 4

Thread 1:
0 libsystem_pthread.dylib 0x0000000199227dc0 start_wqthread + 0

Thread 2 name:
Thread 2:
0 libsystem_kernel.dylib 0x00000001991a8ed4 __psynch_cvwait + 8
1 libc++.1.dylib 0x00000001987b0990 std::__1::condition_variable::wait(std::__1::unique_lock&) + 28 (__threading_support:278)
2 JavaScriptCore 0x00000001a0953874 void std::__1::condition_variable_any::wait<std::__1::unique_lock >(std::__1::uni... + 104 (condition_variable:204)
3 JavaScriptCore 0x00000001a09578c8 bmalloc::Scavenger::threadRunLoop() + 172 (condition_variable:213)
4 JavaScriptCore 0x00000001a0957064 bmalloc::Scavenger::threadEntryPoint(bmalloc::Scavenger) + 16 (Scavenger.cpp:359)
5 JavaScriptCore 0x00000001a0958a8c void
std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, st... + 44 (type_traits:4345)
6 libsystem_pthread.dylib 0x000000019921f908 _pthread_body + 132 (pthread.c:857)
7 libsystem_pthread.dylib 0x000000019921f864 _pthread_start + 48 (pthread.c:884)
8 libsystem_pthread.dylib 0x0000000199227dcc thread_start + 4

Thread 3 name:
Thread 3:
0 libsystem_kernel.dylib 0x00000001991a8ed4 psynch_cvwait + 8
1 JavaScriptCore 0x00000001a0919ac0 WTF::ThreadCondition::timedWait(WTF::Mutex&, WTF::WallTime) + 84 (ThreadingPthreads.cpp:520)
2 JavaScriptCore 0x00000001a0900350 WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda const&, WTF::Scope... + 1892 (ParkingLot.cpp:596)
3 JavaScriptCore 0x00000001a08ef870 WTF::LockAlgorithm<unsigned char, (unsigned char)1, (unsigned char)2, WTF::EmptyLockHooks<unsigne... + 244 (ParkingLot.h:80)
4 WebCore 0x00000001a24ad528 _WebThreadLock() + 280 (Lock.h:59)
5 WebCore 0x00000001a24b00dc WebRunLoopLock(__CFRunLoopObserver*, unsigned long, void*) + 48 (WebCoreThread.mm:468)
6 CoreFoundation 0x00000001995a60e8 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION
+ 36 (CFRunLoop.c:1822)
7 CoreFoundation 0x00000001995a0be0 __CFRunLoopDoObservers + 416 (CFRunLoop.c:1932)
8 CoreFoundation 0x00000001995a131c __CFRunLoopRun + 1688 (CFRunLoop.c:3018)
9 CoreFoundation 0x00000001995a0964 CFRunLoopRunSpecific + 452 (CFRunLoop.c:3247)
10 WebCore 0x00000001a24afec0 RunWebThread(void*) + 560 (WebCoreThread.mm:625)
11 libsystem_pthread.dylib 0x000000019921f908 _pthread_body + 132 (pthread.c:857)
12 libsystem_pthread.dylib 0x000000019921f864 _pthread_start + 48 (pthread.c:884)
13 libsystem_pthread.dylib 0x0000000199227dcc thread_start + 4

Thread 4 name:
Thread 4:
0 libsystem_kernel.dylib 0x00000001991a8ed4 __psynch_cvwait + 8
1 MyApp.iOS 0x00000001041cb9b0 thread_func + 20625840 (mono-os-mutex.h:174)
2 libsystem_pthread.dylib 0x000000019921f908 _pthread_body + 132 (pthread.c:857)
3 libsystem_pthread.dylib 0x000000019921f864 _pthread_start + 48 (pthread.c:884)
4 libsystem_pthread.dylib 0x0000000199227dcc thread_start + 4

Thread 5 name:
Thread 5:
0 libsystem_kernel.dylib 0x000000019919dc9c semaphore_wait_trap + 8
1 MyApp.iOS 0x000000010417cc10 start_wrapper_internal + 20302864 (threads.c:1155)
2 MyApp.iOS 0x000000010417ca94 start_wrapper + 20302484 (threads.c:1217)
3 libsystem_pthread.dylib 0x000000019921f908 _pthread_body + 132 (pthread.c:857)
4 libsystem_pthread.dylib 0x000000019921f864 _pthread_start + 48 (pthread.c:884)
5 libsystem_pthread.dylib 0x0000000199227dcc thread_start + 4

Thread 6:
0 libsystem_pthread.dylib 0x0000000199227dc0 start_wqthread + 0

Thread 7:
0 libsystem_pthread.dylib 0x0000000199227dc0 start_wqthread + 0

Thread 8 name:
Thread 8:
0 libsystem_kernel.dylib 0x000000019919dc60 mach_msg_trap + 8
1 CoreFoundation 0x00000001995a6520 CFRunLoopServiceMachPort + 240 (CFRunLoop.c:2615)
2 CoreFoundation 0x00000001995a11c4 __CFRunLoopRun + 1344 (CFRunLoop.c:2971)
3 CoreFoundation 0x00000001995a0964 CFRunLoopRunSpecific + 452 (CFRunLoop.c:3247)
4 Foundation 0x0000000199f81f3c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304 (NSRunLoop.m:367)
5 Foundation 0x0000000199f81dc4 -[NSRunLoop(NSRunLoop) runUntilDate:] + 100 (NSRunLoop.m:411)
6 UIKitCore 0x00000001c6b2936c -[UIEventFetcher threadMain] + 140 (UIEventFetcher.m:606)
7 Foundation 0x0000000199f80b3c -[NSThread main] + 72 (NSThread.m:1212)
8 Foundation 0x000000019a0b6e14 __NSThread__start
+ 988 (NSThread.m:1175)
9 libsystem_pthread.dylib 0x000000019921f908 _pthread_body + 132 (pthread.c:857)
10 libsystem_pthread.dylib 0x000000019921f864 _pthread_start + 48 (pthread.c:884)
11 libsystem_pthread.dylib 0x0000000199227dcc thread_start + 4

Thread 9:
0 libsystem_pthread.dylib 0x0000000199227dc0 start_wqthread + 0

Thread 10 name:
Thread 10:
0 libsystem_kernel.dylib 0x00000001991a8ed4 __psynch_cvwait + 8
1 MyApp.iOS 0x00000001041d9bc8 mono_os_cond_timedwait + 20683720 (mono-os-mutex.c:75)
2 MyApp.iOS 0x0000000104186150 mono_w32handle_timedwait_signal_handle + 20341072 (w32handle.c:758)
3 MyApp.iOS 0x0000000104186028 mono_w32handle_wait_one + 20340776 (w32handle.c:879)
4 MyApp.iOS 0x0000000104186260 mono_w32handle_wait_multiple + 20341344 (w32handle.c:914)
5 MyApp.iOS 0x00000001041796f0 ves_icall_System_Threading_WaitHandle_Wait_internal + 20289264 (threads.c:2126)
6 MyApp.iOS 0x0000000102e91ed8 wrapper_managed_to_native_System_Threading_WaitHandle_Wait_internal_intptr__int_bool_int + 168
7 MyApp.iOS 0x0000000103076094 mscorlib_System_Threading_WaitHandle_WaitOneNative_System_Runtime_InteropServices_SafeHandle_uint_bool_bool + 2449556 (WaitHandle.cs:0)
8 MyApp.iOS 0x00000001040c3ef4 mono_jit_runtime_invoke + 19545844 (mini-runtime.c:3120)
9 MyApp.iOS 0x000000010414e9ac mono_runtime_invoke_checked + 20113836 (object.c:2960)
10 MyApp.iOS 0x000000010415386c mono_runtime_delegate_try_invoke + 20133996 (object.c:4233)
11 MyApp.iOS 0x000000010417ccd0 start_wrapper_internal + 20303056 (threads.c:1165)
12 MyApp.iOS 0x000000010417ca94 start_wrapper + 20302484 (threads.c:1217)
13 libsystem_pthread.dylib 0x000000019921f908 _pthread_body + 132 (pthread.c:857)
14 libsystem_pthread.dylib 0x000000019921f864 _pthread_start + 48 (pthread.c:884)
15 libsystem_pthread.dylib 0x0000000199227dcc thread_start + 4
...
`

The app runs fine over the simulators and it just that I've started getting the crash as it was uploaded over the App Store.

Answers

  • LandLuLandLu Member, Xamarin Team Xamurai

    We could only find something went wrong and called abort to stop your application from the logs.
    Nothing useful exception information could point out what causes this crash.
    You'd better debug your application on a real physical device to find out the root cause instead of releasing it to catch the logs.

  • saqib_qhansaqib_qhan Member ✭✭

    @LandLu Thanks for looking into this. I actually have tested this over physical devices too but couldn't reproduce it not even after the release. I've been getting dozens of same crash reports and couldn't get anything out of the logs.

  • LandLuLandLu Member, Xamarin Team Xamurai

    @saqib_qhan If you can't reproduce it at debugging mode we don't know what happened on your side.

Sign In or Register to comment.