EXC_BAD_ACCESS, Using NSZombies to track down - ios

I have got a EXC_BAD_ACCESS error while dismissing a view controller on device.
But strangely this does not happen in simulator.
The Question: I am using the Instruments and NSZombies enabled and here is the report at the error. I am not getting heads and tails out of it. I understand that this shows the ref Count +es and -es. But where is my code that generated this error? All I see is that the responsible caller are UIVIews, CATransactions, where is my code?
THE CRASH LOG
Thread 0:
0 libsystem_kernel.dylib 0x00000001923d5cc0 mach_msg_trap + 8
1 CoreFoundation 0x0000000185992ca8 __CFRunLoopServiceMachPort + 180
2 CoreFoundation 0x0000000185990e9c __CFRunLoopRun + 932
3 CoreFoundation 0x00000001858d1b34 CFRunLoopRunSpecific + 448
4 itunesstored 0x00000001000bfe14 0x1000b0000 + 65044
5 libdyld.dylib 0x00000001922f3a9c start + 0
Thread 1:
0 libsystem_kernel.dylib 0x00000001923d5ac8 kevent64 + 8
1 libdispatch.dylib 0x00000001922d9d74 _dispatch_mgr_thread + 48
Thread 2 name: com.apple.NSURLConnectionLoader
Thread 2:
0 libsystem_kernel.dylib 0x00000001923d5cc0 mach_msg_trap + 8
1 CoreFoundation 0x0000000185992ca8 __CFRunLoopServiceMachPort + 180
2 CoreFoundation 0x0000000185990e38 __CFRunLoopRun + 832
3 CoreFoundation 0x00000001858d1b34 CFRunLoopRunSpecific + 448
4 Foundation 0x00000001864be7f8 +[NSURLConnection(Loader) _resourceLoadLoop:] + 344
5 Foundation 0x000000018654c76c __NSThread__main__ + 996
6 libsystem_pthread.dylib 0x00000001924701ac _pthread_body + 164
7 libsystem_pthread.dylib 0x0000000192470104 _pthread_start + 136
8 libsystem_pthread.dylib 0x000000019246d7ac thread_start + 0
Thread 3 name: com.apple.CFSocket.private
Thread 3:
0 libsystem_kernel.dylib 0x00000001923ee76c select$DARWIN_EXTSN + 8
1 libsystem_pthread.dylib 0x00000001924701ac _pthread_body + 164
2 libsystem_pthread.dylib 0x0000000192470104 _pthread_start + 136
3 libsystem_pthread.dylib 0x000000019246d7ac thread_start + 0
Thread 4:
0 libsystem_kernel.dylib 0x00000001923ee394 __psynch_cvwait + 8
1 MobileSystemServices 0x000000018bc8d53c MOXPCTransportReceiveMessage + 268 2 MobileInstallation 0x000000018bc48900 perform_command + 280
3 MobileInstallation 0x000000018bc491e8 MobileInstallationLookup + 388
4 itunesstored 0x00000001000e985c 0x1000b0000 + 235612
5 libdispatch.dylib 0x00000001922d841c _dispatch_call_block_and_release + 20
6 libdispatch.dylib 0x00000001922d83dc _dispatch_client_callout + 12
7 libdispatch.dylib 0x00000001922df3f8 _dispatch_root_queue_drain + 396
8 libdispatch.dylib 0x00000001922df634 _dispatch_worker_thread2 + 72
9 libsystem_pthread.dylib 0x000000019246d914 _pthread_wqthread + 352
10 libsystem_pthread.dylib 0x000000019246d7a4 start_wqthread + 0
Thread 5:
0 libsystem_kernel.dylib 0x00000001923eee74 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x000000019246d7a4 start_wqthread + 0
Thread 6:
0 libsystem_kernel.dylib 0x00000001923d5cc0 mach_msg_trap + 8
1 CoreFoundation 0x0000000185992ca8 __CFRunLoopServiceMachPort + 180
2 CoreFoundation 0x0000000185990e38 __CFRunLoopRun + 832
3 CoreFoundation 0x00000001858d1b34 CFRunLoopRunSpecific + 448
4 iTunesStore 0x00000001903c2a58 -[ISOperation runRunLoopUntilStopped] + 200
5 iTunesStore 0x00000001903c9f84 -[ISURLOperation _runRequestWithURL:] + 1256
6 iTunesStore 0x00000001903c9a30 -[ISURLOperation _run] + 428
7 iTunesStore 0x00000001903c5588 -[ISURLOperation run] + 328
8 iTunesStore 0x00000001903d2324 -[ISStoreURLOperation _runURLOperation] + 696
9 iTunesStore 0x00000001903d0b68 -[ISStoreURLOperation run] + 568
10 iTunesStore 0x00000001903c4214 -[ISOperation _main:] + 304
11 iTunesStore 0x00000001903c35cc -[ISOperation main] + 548
12 iTunesStore 0x00000001903c2b94 -[ISOperation runSubOperation:returningError:] + 220
13 iTunesStore 0x00000001903ce928 -[ISLoadURLBagOperation run] + 884
14 iTunesStore 0x00000001903c4214 -[ISOperation _main:] + 304
15 iTunesStore 0x00000001903c35cc -[ISOperation main] + 548
16 iTunesStore 0x00000001903c2b94 -[ISOperation runSubOperation:returningError:] + 220
17 iTunesStore 0x00000001903d1f74 -[ISStoreURLOperation _resolvedURLInBagContext:URLBag:] + 104
18 iTunesStore 0x00000001903d20e4 -[ISStoreURLOperation _runURLOperation] + 120
19 iTunesStore 0x00000001903d0b68 -[ISStoreURLOperation run] + 568
20 iTunesStore 0x00000001903c4214 -[ISOperation _main:] + 304
21 iTunesStore 0x00000001903c35cc -[ISOperation main] + 548
22 Foundation 0x0000000186474d34 -[__NSOperationInternal _start:] + 640
23 Foundation 0x0000000186536d78 __NSOQSchedule_f + 72
24 libdispatch.dylib 0x00000001922d83dc _dispatch_client_callout + 12
25 libdispatch.dylib 0x00000001922dd92c _dispatch_async_redirect_invoke + 148
26 libdispatch.dylib 0x00000001922d83dc _dispatch_client_callout + 12
27 libdispatch.dylib 0x00000001922df3f8 _dispatch_root_queue_drain + 396
28 libdispatch.dylib 0x00000001922df634 _dispatch_worker_thread2 + 72
29 libsystem_pthread.dylib 0x000000019246d914 _pthread_wqthread + 352
30 libsystem_pthread.dylib 0x000000019246d7a4 start_wqthread + 0
Thread 7 name: Data corruption: Malformed Mach message or kernel bug.
Thread 7 Crashed:
0 libxpc.dylib 0x0000000192488f9c _xpc_connection_mach_event + 1992
1 libdispatch.dylib 0x00000001922d84b0 _dispatch_client_callout4 + 12
2 libdispatch.dylib 0x00000001922dabdc _dispatch_mach_msg_invoke + 148
3 libdispatch.dylib 0x00000001922de698 _dispatch_queue_drain + 456
4 libdispatch.dylib 0x00000001922da620 _dispatch_mach_invoke + 104
5 libdispatch.dylib 0x00000001922dd8d0 _dispatch_async_redirect_invoke + 56
6 libdispatch.dylib 0x00000001922d83dc _dispatch_client_callout + 12
7 libdispatch.dylib 0x00000001922df3f8 _dispatch_root_queue_drain + 396
8 libdispatch.dylib 0x00000001922df634 _dispatch_worker_thread2 + 72
9 libsystem_pthread.dylib 0x000000019246d914 _pthread_wqthread + 352
10 libsystem_pthread.dylib 0x000000019246d7a4 start_wqthread + 0
Thread 8:
0 libsystem_kernel.dylib 0x00000001923ee3dc __psynch_mutexwait + 8
1 Foundation 0x000000018645b958 -[NSLock lock] + 152
2 iTunesStore 0x00000001903e7760 ISUniqueOperationLock + 228
3 iTunesStore 0x00000001903c3408 -[ISOperation main] + 96
4 iTunesStore 0x00000001903c2b94 -[ISOperation runSubOperation:returningError:] + 220
5 iTunesStore 0x00000001903cf438 -[ISOperation(ISLoadURLBagAdditions) loadURLBagWithContext:returningError:] + 112
6 itunesstored 0x00000001001046e0 0x1000b0000 + 345824
7 iTunesStore 0x00000001903c4214 -[ISOperation _main:] + 304
8 iTunesStore 0x00000001903c35cc -[ISOperation main] + 548
9 Foundation 0x0000000186474d34 -[__NSOperationInternal _start:] + 640
10 Foundation 0x0000000186536d78 __NSOQSchedule_f + 72
11 libdispatch.dylib 0x00000001922d83dc _dispatch_client_callout + 12
12 libdispatch.dylib 0x00000001922dd92c _dispatch_async_redirect_invoke + 148
13 libdispatch.dylib 0x00000001922d83dc _dispatch_client_callout + 12
14 libdispatch.dylib 0x00000001922df3f8 _dispatch_root_queue_drain + 396
15 libdispatch.dylib 0x00000001922df634 _dispatch_worker_thread2 + 72
16 libsystem_pthread.dylib 0x000000019246d914 _pthread_wqthread + 352
17 libsystem_pthread.dylib 0x000000019246d7a4 start_wqthread + 0
Thread 9:
0 libsystem_kernel.dylib 0x00000001923eee74 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x000000019246d7a4 start_wqthread + 0
Thread 10:
0 libsystem_kernel.dylib 0x00000001923eee74 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x000000019246d7a4 start_wqthread + 0
Thread 7 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000036 x1: 0x0000000000000037 x2: 0x00000001924a516e x3: 0x0000000000000037
x4: 0x0000000102263bc8 x5: 0x0000000000000036 x6: 0x0000000000000000 x7: 0x0000000000000110
x8: 0x7300ae44061c0155 x9: 0x7300ae44061c0155 x10: 0x0000000102263bc8 x11: 0x0000000000000000
x12: 0x000000000000006f x13: 0x000000019239e3d1 x14: 0x000000000000005f x15: 0x000000019239be4b
x16: 0x0000000192468e90 x17: 0x0021c35bf1cc0111 x18: 0x0000000000000000 x19: 0x0000000147db6140
x20: 0x0000000147e999f0 x21: 0x0000000147e34d80 x22: 0x000000001000000c x23: 0x0000000147d8aa00
x24: 0x00000001022640e0 x25: 0x0000000147d436d0 x26: 0x0000000000020001 x27: 0x000000000000000a
x28: 0x00000001022640e0 fp: 0x0000000102263d50 lr: 0x0000000192488f9c sp: 0x0000000102263c80
pc: 0x0000000192488f9c cpsr: 0x60000000

Your application is crashing with the message “Data corruption: Malformed Mach message or kernel bug”. Either that means what it says (in which case the bug is most likely not yours), or (more likely IMO) you’re tramping on memory you don’t own. Finding memory overwrites is hard, but Apple provides tools to help you — see TN2124.
I’d try enabling MallocGuardEdges et al in the simulator and see if you crash (you can do this from Xcode in the Scheme configuration.) Alternatively, you could try enabling Guard Malloc and that might also help.

Related

Difference between Device in Xcode Organizer and Hardware Model in symbolicated crash report

I recently released an app update on app store. And there have been some crashes reported which I am able to view in Xcode Organizer window under Crashes section. However, I see there is a discrepancy between Device name mentioned in Xcode Organizer and Hardware Model when I open the locally symoblicated crash report from Finder window.
As seen in the above screenshot, Device in Organizer window is shown as iPhone 4.
Incident Identifier: 5A59A68B-7A0D-491B-865A-C37D5C9BA122
Hardware Model: iPhone12,5
Process: My_App [15568]
Path: /private/var/containers/Bundle/Application/212B5311-CCE3-46F1-9F94-11BB09B4391D/My_App.app/My_App
Identifier: com.MyApp
Version: 4.0.0 (4.0.0.8)
AppStoreTools: 13A1030d
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.MyApp [3842]
Date/Time: 2022-01-11 10:46:03.1159 -0500
Launch Time: 2022-01-11 10:45:50.4872 -0500
OS Version: iPhone OS 15.2 (19C56)
Release Type: User
Baseband Version: 3.01.02
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 6
Last Exception Backtrace:
0 CoreFoundation 0x1817850fc __exceptionPreprocess + 220 (NSException.m:200)
1 libobjc.A.dylib 0x199fc0d64 objc_exception_throw + 60 (objc-exception.mm:565)
2 AVFCapture 0x1a0171d8c -[AVCaptureSession startRunning] + 308 (AVCaptureSession.m:1935)
3 My_App 0x104d2acc0 closure #1 in closure #1 in CameraScanner.startCapturing() + 592 (CameraScanner.swift:207)
4 My_App 0x104d2a94c closure #1 in CameraScanner.startCapturing() + 172 (VideoPermission.swift:17)
5 My_App 0x104d28ac0 thunk for #escaping #callee_guaranteed () -> () + 20 (<compiler-generated>:0)
6 libdispatch.dylib 0x1813f5924 _dispatch_call_block_and_release + 32 (init.c:1517)
7 libdispatch.dylib 0x1813f7670 _dispatch_client_callout + 20 (object.m:560)
8 libdispatch.dylib 0x1813fedf4 _dispatch_lane_serial_drain + 672 (inline_internal.h:2601)
9 libdispatch.dylib 0x1813ff968 _dispatch_lane_invoke + 392 (queue.c:3937)
10 libdispatch.dylib 0x18140a1b8 _dispatch_workloop_worker_thread + 656 (queue.c:6727)
11 libsystem_pthread.dylib 0x1f21570f4 _pthread_wqthread + 288 (pthread.c:2599)
12 libsystem_pthread.dylib 0x1f2156e94 start_wqthread + 8
Thread 0 name:
Thread 0:
0 libsystem_kernel.dylib 0x00000001b8cb9504 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001b8cb9b9c mach_msg + 76 (mach_msg.c:119)
2 CoreFoundation 0x00000001816f3738 __CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2646)
3 CoreFoundation 0x00000001816f7a2c __CFRunLoopRun + 1212 (CFRunLoop.c:3000)
4 CoreFoundation 0x000000018170b468 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268)
5 AVFCore 0x000000018ab70d8c -[AVRunLoopCondition _waitInMode:untilDate:] + 412 (AVRunLoopCondition.m:174)
6 AVFCapture 0x00000001a01ea958 -[AVCaptureSession _buildAndRunGraph:] + 1168 (AVCaptureSession.m:3065)
7 AVFCapture 0x00000001a01617d4 -[AVCaptureSession _commitConfiguration] + 148 (AVCaptureSession.m:1012)
8 Foundation 0x0000000182f410dc NSKeyValueNotifyObserver + 292 (NSKeyValueObserving.m:433)
9 Foundation 0x0000000182f2cda0 NSKeyValueDidChange + 356 (NSKeyValueObserving.m:552)
10 Foundation 0x0000000182f66518 NSKeyValueDidChangeWithPerThreadPendingNotifications + 160 (NSKeyValueObserving.m:1209)
11 My_App 0x0000000104d2adc0 closure #1 in CameraScanner.configureWorkItem() + 100 (CameraScanner.swift:192)
12 My_App 0x0000000104d28ac0 thunk for #escaping #callee_guaranteed () -> () + 20 (<compiler-generated>:0)
13 libdispatch.dylib 0x0000000181406454 _dispatch_block_async_invoke2 + 148 (queue.c:548)
14 libdispatch.dylib 0x00000001813f7670 _dispatch_client_callout + 20 (object.m:560)
15 libdispatch.dylib 0x0000000181405b70 _dispatch_main_queue_callback_4CF + 944 (inline_internal.h:2601)
16 CoreFoundation 0x000000018173dd84 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16 (CFRunLoop.c:1795)
17 CoreFoundation 0x00000001816f7f5c __CFRunLoopRun + 2540 (CFRunLoop.c:3144)
18 CoreFoundation 0x000000018170b468 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268)
19 GraphicsServices 0x000000019d29738c GSEventRunModal + 164 (GSEvent.c:2200)
20 UIKitCore 0x00000001840ad088 -[UIApplication _run] + 1100 (UIApplication.m:3493)
21 UIKitCore 0x0000000183e2b958 UIApplicationMain + 2092 (UIApplication.m:5046)
22 My_App 0x0000000104c56034 main + 68 (LAContextExtension.swift:12)
23 dyld 0x0000000104fa5aa4 start + 520 (dyldMain.cpp:879)
Thread 1:
0 libsystem_pthread.dylib 0x00000001f2156e8c start_wqthread + 0
Thread 2 name:
Thread 2:
0 libsqlite3.dylib 0x00000001a0080294 tokenExpr + 268 (sqlite3.c:0)
1 libsqlite3.dylib 0x00000001a0080204 tokenExpr + 124 (sqlite3.c:165844)
2 libsqlite3.dylib 0x000000019ffb5254 yy_reduce + 2448 (sqlite3.c:169951)
3 libsqlite3.dylib 0x000000019ffb38ec sqlite3RunParser + 796 (sqlite3.c:170882)
4 libsqlite3.dylib 0x000000019ffb2f80 sqlite3Prepare + 432 (sqlite3.c:139396)
5 libsqlite3.dylib 0x000000019ffb2c24 sqlite3LockAndPrepare + 244 (sqlite3.c:139474)
6 My_App 0x0000000104db66dc -[APMSqliteStore prepareSQL:error:] + 236
7 My_App 0x0000000104db72e8 -[APMSqliteStore upsertStatementForRecord:inTableWithName:error:] + 572
8 My_App 0x0000000104db4dec -[APMSqliteStore upsertRecord:inTableWithName:error:] + 200
9 My_App 0x0000000104d5464c -[APMDatabase insertDataType:inTableWithName:error:] + 144
10 My_App 0x0000000104d4a050 -[APMDatabase insertRawEvent:metadataFingerprint:isRealtime:error:] + 684
11 My_App 0x0000000104d7bc90 -[APMMeasurement+ 1244304 (Event) writeEvent:isPublicEvent:isRealtime:] + 1944
12 My_App 0x0000000104d78fa8 __49-[APMMeasurement+ 1232808 (Event) writeEventOnWorkerQueue:]_block_invoke + 604
13 My_App 0x0000000104db6110 -[APMSqliteStore performTransactionWithError:block:] + 176
14 My_App 0x0000000104d488d4 -[APMDatabase performTransaction:] + 48
15 My_App 0x0000000104d78c6c -[APMMeasurement+ 1231980 (Event) writeEventOnWorkerQueue:] + 820
16 My_App 0x0000000104d787c8 -[APMMeasurement+ 1230792 (Event) handleEventOnWorkerQueue:] + 540
17 My_App 0x0000000104d86bfc -[APMMeasurement logEventOnWorkerQueue:notifyEventListeners:] + 76
18 My_App 0x0000000104d86bac -[APMMeasurement logEventOnWorkerQueueWithOrigin:isPublicEvent:name:parameters:timestamp:enabled:ignoreEnabled:ignoreInterceptor:interceptor:addedScreenParameters:] + 708
19 My_App 0x0000000104d86840 __151-[APMMeasurement logEventWithOrigin:isPublicEvent:name:parameters:timestamp:enabled:ignoreEnabled:ignoreInterceptor:interceptor:addedScreenParameters:]_block_invoke + 68
20 My_App 0x0000000104dab210 __51-[APMScheduler scheduleOnWorkerQueueBlockID:block:]_block_invoke + 44
21 libdispatch.dylib 0x00000001813f5924 _dispatch_call_block_and_release + 32 (init.c:1517)
22 libdispatch.dylib 0x00000001813f7670 _dispatch_client_callout + 20 (object.m:560)
23 libdispatch.dylib 0x00000001813fedf4 _dispatch_lane_serial_drain + 672 (inline_internal.h:2601)
24 libdispatch.dylib 0x00000001813ff968 _dispatch_lane_invoke + 392 (queue.c:3937)
25 libdispatch.dylib 0x000000018140a1b8 _dispatch_workloop_worker_thread + 656 (queue.c:6727)
26 libsystem_pthread.dylib 0x00000001f21570f4 _pthread_wqthread + 288 (pthread.c:2599)
27 libsystem_pthread.dylib 0x00000001f2156e94 start_wqthread + 8
Thread 3:
0 libsystem_pthread.dylib 0x00000001f2156e8c start_wqthread + 0
Thread 4 name:
Thread 4:
0 libsystem_kernel.dylib 0x00000001b8cb9504 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001b8cb9b9c mach_msg + 76 (mach_msg.c:119)
2 CoreFoundation 0x00000001816f3738 __CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2646)
3 CoreFoundation 0x00000001816f7a2c __CFRunLoopRun + 1212 (CFRunLoop.c:3000)
4 CoreFoundation 0x000000018170b468 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268)
5 Foundation 0x0000000182f27c94 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 236 (NSRunLoop.m:373)
6 Foundation 0x0000000182f68dc8 -[NSRunLoop(NSRunLoop) runUntilDate:] + 92 (NSRunLoop.m:420)
7 UIKitCore 0x0000000184026230 -[UIEventFetcher threadMain] + 524 (UIEventFetcher.m:1167)
8 Foundation 0x0000000182f7740c __NSThread__start__ + 808 (NSThread.m:972)
9 libsystem_pthread.dylib 0x00000001f21579a4 _pthread_start + 148 (pthread.c:891)
10 libsystem_pthread.dylib 0x00000001f2156ea0 thread_start + 8
Thread 5:
0 libsystem_pthread.dylib 0x00000001f2156e8c start_wqthread + 0
Thread 6 name:
Thread 6 Crashed:
0 libsystem_kernel.dylib 0x00000001b8cbf964 __pthread_kill + 8
1 libsystem_pthread.dylib 0x00000001f215d378 pthread_kill + 268 (pthread.c:1668)
2 libsystem_c.dylib 0x000000018c648f50 abort + 164 (abort.c:118)
3 libc++abi.dylib 0x000000019a0c8bc4 abort_message + 132 (abort_message.cpp:78)
4 libc++abi.dylib 0x000000019a0b9fd8 demangling_terminate_handler() + 332 (cxa_default_handlers.cpp:71)
5 libobjc.A.dylib 0x0000000199fc6e34 _objc_terminate() + 144 (objc-exception.mm:701)
6 libc++abi.dylib 0x000000019a0c7f58 std::__terminate(void (*)()) + 20 (cxa_handlers.cpp:59)
7 libc++abi.dylib 0x000000019a0c7ef4 std::terminate() + 64 (cxa_handlers.cpp:88)
8 libdispatch.dylib 0x00000001813f7684 _dispatch_client_callout + 40 (object.m:563)
9 libdispatch.dylib 0x00000001813fedf4 _dispatch_lane_serial_drain + 672 (inline_internal.h:2601)
10 libdispatch.dylib 0x00000001813ff968 _dispatch_lane_invoke + 392 (queue.c:3937)
11 libdispatch.dylib 0x000000018140a1b8 _dispatch_workloop_worker_thread + 656 (queue.c:6727)
12 libsystem_pthread.dylib 0x00000001f21570f4 _pthread_wqthread + 288 (pthread.c:2599)
13 libsystem_pthread.dylib 0x00000001f2156e94 start_wqthread + 8
Thread 7:
0 libsystem_pthread.dylib 0x00000001f2156e8c start_wqthread + 0
Thread 8 name:
Thread 8:
0 libsystem_kernel.dylib 0x00000001b8cb9504 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001b8cb9b9c mach_msg + 76 (mach_msg.c:119)
2 CoreFoundation 0x00000001816f3738 __CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2646)
3 CoreFoundation 0x00000001816f7a2c __CFRunLoopRun + 1212 (CFRunLoop.c:3000)
4 CoreFoundation 0x000000018170b468 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268)
5 CFNetwork 0x000000018217f3f0 +[__CFN_CoreSchedulingSetRunnable _run:] + 464 (CoreSchedulingSet.mm:1372)
6 Foundation 0x0000000182f7740c __NSThread__start__ + 808 (NSThread.m:972)
7 libsystem_pthread.dylib 0x00000001f21579a4 _pthread_start + 148 (pthread.c:891)
8 libsystem_pthread.dylib 0x00000001f2156ea0 thread_start + 8
Thread 9 name:
Thread 9:
0 libsystem_kernel.dylib 0x00000001b8cb9504 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001b8cb9b9c mach_msg + 76 (mach_msg.c:119)
2 CoreFoundation 0x00000001816f3738 __CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2646)
3 CoreFoundation 0x00000001816f7a2c __CFRunLoopRun + 1212 (CFRunLoop.c:3000)
4 CoreFoundation 0x000000018170b468 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268)
5 AudioSession 0x000000018ab1e308 CADeprecated::GenericRunLoopThread::Entry(void*) + 164 (GenericRunLoopThread.h:95)
6 AudioSession 0x000000018ab27d64 CADeprecated::CAPThread::Entry(CADeprecated::CAPThread*) + 92 (CAPThread.cpp:324)
7 libsystem_pthread.dylib 0x00000001f21579a4 _pthread_start + 148 (pthread.c:891)
8 libsystem_pthread.dylib 0x00000001f2156ea0 thread_start + 8
Thread 6 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000000
x4: 0x000000019a0cc0ad x5: 0x000000016b582440 x6: 0x000000000000006e x7: 0x0000000000000800
x8: 0xa0731984927acb78 x9: 0xa0731985f922fb78 x10: 0x0000000000000002 x11: 0x000000000000000b
x12: 0x00000000f381e80f x13: 0x000000007381e800 x14: 0x0000000000000010 x15: 0x0000000000000002
x16: 0x0000000000000148 x17: 0x000000016b583000 x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x0000000000003703 x21: 0x000000016b5830e0 x22: 0x0000000000000000 x23: 0x000000016b5830e0
x24: 0x00000002817abee8 x25: 0x0000000000000000 x26: 0x0000000000000114 x27: 0x0000000000000000
x28: 0x0000000282ccc840 fp: 0x000000016b5823b0 lr: 0x00000001f215d378
sp: 0x000000016b582390 pc: 0x00000001b8cbf964 cpsr: 0x40000000
esr: 0x56000080 Address size fault
Binary Images:
0x104c4c000 - 0x104e0ffff My_App arm64 <dee02279d86431709c9bd750b7483261> /private/var/containers/Bundle/Application/212B5311-CCE3-46F1-9F94-11BB09B4391D/My_App.app/My_App
0x104f8c000 - 0x104fe3fff dyld arm64e <f94ccc7a6d1a33c7997ff611a6caa7e0> /usr/lib/dyld
0x1813f3000 - 0x181439fff libdispatch.dylib arm64e <edd169e1d0db3808a19e99c1cd5a1c4c> /usr/lib/system/libdispatch.dylib
0x1816ec000 - 0x181b3ffff CoreFoundation arm64e <16faa70c278c3561859ecec407c2dc7c> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
0x181f05000 - 0x1823c9fff CFNetwork arm64e <b63d7160ebc33de7b98bca51e08b72f1> /System/Library/Frameworks/CFNetwork.framework/CFNetwork
0x182f0f000 - 0x183215fff Foundation arm64e <9618b2f2a4c23e07b7eed8d9e1bdeaec> /System/Library/Frameworks/Foundation.framework/Foundation
0x183b93000 - 0x18541dfff UIKitCore arm64e <cd7f7ba2a2c63727aff69baab60cc6ab> /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore
0x18ab18000 - 0x18ab41fff AudioSession arm64e <8fa06a47169f3f56bc5b2ad366ad8f9e> /System/Library/PrivateFrameworks/AudioSession.framework/AudioSession
0x18ab42000 - 0x18ad54fff AVFCore arm64e <f013e5685ba83213b017ab4381c03131> /System/Library/PrivateFrameworks/AVFCore.framework/AVFCore
0x18c629000 - 0x18c6a7fff libsystem_c.dylib arm64e <f3afe30409793cba8338bebe9722ecd8> /usr/lib/system/libsystem_c.dylib
0x199fab000 - 0x199fe4fff libobjc.A.dylib arm64e <73e920f0e7ce394197d87a10dd2cd390> /usr/lib/libobjc.A.dylib
0x19a0b5000 - 0x19a0cefff libc++abi.dylib arm64e <71b1e39fb291315daf46a4343e707387> /usr/lib/libc++abi.dylib
0x19d296000 - 0x19d29efff GraphicsServices arm64e <064a1bb60e413ad2a402fb563fc141f5> /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
0x19ffa9000 - 0x1a013bfff libsqlite3.dylib arm64e <adece8478f3b3ba494e3901286e0af41> /usr/lib/libsqlite3.dylib
0x1a013c000 - 0x1a0238fff AVFCapture arm64e <2b0d03c3a03c371e946dc36ef8318451> /System/Library/PrivateFrameworks/AVFCapture.framework/AVFCapture
0x1b8cb8000 - 0x1b8cebfff libsystem_kernel.dylib arm64e <eb3e47f3395335839feefb6cff8a8d7a> /usr/lib/system/libsystem_kernel.dylib
0x1f2156000 - 0x1f2161fff libsystem_pthread.dylib arm64e <c5c27e9d955739c9b9c65f6e7323ee1c> /usr/lib/system/libsystem_pthread.dylib
EOF
In the crash log above, Hardware Model is iPhone12,5.
Why is there this discrepancy between the two? Just to mention, the above crash report was symoblicated using Xcode itself and then I copied it from Finder window. I have not used symoblicatecrash tool in Terminal. But using that too, it is the same.
Also, can someone help with the actual crash in this case? We have a CameraScanner class where we have implemented a feature to scan QRCode using AVCaptureSession. If required, I can copy some code too.

IOS Crashing on Testflight but works on emulator

I have a serious issue guys. I have been building a flutter app which has been working well on emulator. However, while building for test flight, it keeps crashing.
I have tried a lot of things which includes regenerating the folder, flutter clean etc but it keeps crashing on real devices on test flight. This is painful to see as I don't have any way to debug this. I attached crash report though. Can someone relate with this?
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 0x00000001bda2aa48 __pthread_kill + 8
1 libsystem_pthread.dylib 0x00000001dde4a8d8 pthread_kill + 208 (pthread.c:1609)
2 libsystem_c.dylib 0x000000018e9910c0 abort + 120 (abort.c:118)
3 Flutter 0x0000000102189b2c 0x101ea8000 + 3021612
4 Flutter 0x0000000102189c5c 0x101ea8000 + 3021916
5 Flutter 0x0000000102381100 0x101ea8000 + 5083392
6 Flutter 0x00000001021eba54 0x101ea8000 + 3422804
7 Flutter 0x0000000101eb7a10 0x101ea8000 + 64016
8 Flutter 0x0000000101eccaf8 0x101ea8000 + 150264
9 Flutter 0x0000000101ecc934 0x101ea8000 + 149812
10 UIKitCore 0x0000000186d35d8c -[UINib instantiateWithOwner:options:] + 2292 (UINib.m:390)
11 UIKitCore 0x00000001868d87dc -[UIStoryboard __reallyInstantiateViewControllerWithIdentifier:creator:storyboardSegueTemplate:sender:] + 280 (UIStoryboard.m:233)
12 UIKitCore 0x00000001868d8678 -[UIStoryboard _instantiateViewControllerWithIdentifier:creator:storyboardSegueTemplate:sender:] + 124 (UIStoryboard.m:212)
13 UIKitCore 0x00000001868dbaa8 -[UIApplication _loadMainStoryboardFileNamed:bundle:] + 180 (UIApplication.m:4665)
14 UIKitCore 0x000000018694fecc -[UIApplication _loadMainInterfaceFile] + 276 (UIApplication.m:0)
15 UIKitCore 0x0000000186cf7718 -[UIApplication _runWithMainScene:transitionContext:completion:] + 972 (UIApplication.m:4407)
16 UIKitCore 0x0000000186b639ec -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 148 (_UISceneLifecycleMultiplexer.m:452)
17 UIKitCore 0x00000001869c6b00 _UIScenePerformActionsWithLifecycleActionMask + 96 (_UISceneLifecycleState.m:109)
18 UIKitCore 0x0000000186aeb9f4 __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke + 196 (_UISceneLifecycleMultiplexer.m:565)
19 UIKitCore 0x0000000186c02204 -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 240 (_UISceneLifecycleMultiplexer.m:514)
20 UIKitCore 0x0000000186e2f064 -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 732 (_UISceneLifecycleMultiplexer.m:564)
21 UIKitCore 0x0000000186dbedac -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 336 (_UISceneLifecycleMultiplexer.m:470)
22 UIKitCore 0x00000001869c79e8 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block... + 188 (_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction.m:73)
23 UIKitCore 0x0000000186a842f8 +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:actions:completion:] + 812 (BSAnimationSettings+UIKit.m:50)
24 UIKitCore 0x00000001869c9778 _UISceneSettingsDiffActionPerformChangesWithTransitionContext + 248 (_UISceneSettingsDiffAction.m:23)
25 UIKitCore 0x0000000186aaf530 -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 356 (_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction.m:58)
26 UIKitCore 0x0000000186f0bbec __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke.573 + 772 (UIScene.m:1775)
27 UIKitCore 0x00000001869f7f80 -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 248 (UIScene.m:1476)
28 UIKitCore 0x0000000186a3a3ec -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 264 (UIScene.m:1742)
29 UIKitCore 0x0000000186b68684 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 548 (UIApplication.m:3900)
30 UIKitCore 0x0000000186aad94c -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 360 (UIApplicationSceneClientAgent.m:45)
31 FrontBoardServices 0x0000000194f4afc4 -[FBSScene _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 412 (FBSScene.m:439)
32 FrontBoardServices 0x0000000194f6d550 __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke.180 + 100 (FBSWorkspaceScenesClient.m:384)
33 FrontBoardServices 0x0000000194f2d714 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 232 (FBSWorkspace.m:352)
Thread 1:
0 libsystem_pthread.dylib 0x00000001dde3ea9c _pthread_cond_updateval + 268 (pthread_cond.c:992)
Thread 2:
0 libsystem_pthread.dylib 0x00000001dde3ea9c _pthread_cond_updateval + 268 (pthread_cond.c:992)
Thread 3:
0 libsystem_pthread.dylib 0x00000001dde3ea9c _pthread_cond_updateval + 268 (pthread_cond.c:992)
Thread 4 name:
Thread 4:
0 libsystem_kernel.dylib 0x00000001bda24b70 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001bda25194 mach_msg + 72 (mach_msg.c:119)
2 CoreFoundation 0x00000001844caad0 __CFRunLoopServiceMachPort + 368 (CFRunLoop.c:2646)
3 CoreFoundation 0x00000001844cebb8 __CFRunLoopRun + 1184 (CFRunLoop.c:3000)
4 CoreFoundation 0x00000001844e1d8c CFRunLoopRunSpecific + 572 (CFRunLoop.c:3268)
5 Foundation 0x0000000185c20b6c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 232 (NSRunLoop.m:373)
6 Foundation 0x0000000185c5fd6c -[NSRunLoop(NSRunLoop) runUntilDate:] + 88 (NSRunLoop.m:420)
7 UIKitCore 0x0000000186c94950 -[UIEventFetcher threadMain] + 512 (UIEventFetcher.m:1167)
8 Foundation 0x0000000185c6d64c __NSThread__start__ + 776 (NSThread.m:915)
9 libsystem_pthread.dylib 0x00000001dde40458 _pthread_start + 116 (pthread.c:890)
10 libsystem_pthread.dylib 0x00000001dde3eab0 thread_start + 8
Thread 5 name:
Thread 5:
0 libsystem_kernel.dylib 0x00000001bda25754 __ulock_wait + 8
1 libdispatch.dylib 0x00000001841f1de0 _dlock_wait + 52 (lock.c:326)
2 libdispatch.dylib 0x00000001841f1bb8 _dispatch_thread_event_wait_slow$VARIANT$armv81 + 52 (lock.c:366)
3 libdispatch.dylib 0x0000000184204560 __DISPATCH_WAIT_FOR_QUEUE__ + 336 (lock.h:330)
4 libdispatch.dylib 0x000000018420415c _dispatch_sync_f_slow + 136 (queue.c:1762)
5 UIKitCore 0x0000000186b7e10c __37-[_UIRemoteKeyboards startConnection]_block_invoke_3 + 112 (_UIRemoteKeyboards.m:1065)
6 CoreFoundation 0x00000001844e48e0 __invoking___ + 144
7 CoreFoundation 0x00000001845005b8 -[NSInvocation invoke] + 300 (NSForwarding.m:3378)
8 Foundation 0x0000000185c3c910 __NSXPCCONNECTION_IS_CALLING_OUT_TO_REPLY_BLOCK__ + 20 (NSXPCConnection.m:170)
9 Foundation 0x0000000185c5c0fc -[NSXPCConnection _decodeAndInvokeReplyBlockWithEvent:sequence:replyInfo:] + 552 (NSXPCConnection.m:316)
10 Foundation 0x0000000185c3875c __88-[NSXPCConnection _sendInvocation:orArguments:count:methodSignature:selector:withProxy:]_block_invoke_3 + 208 (NSXPCConnection.m:1630)
11 libxpc.dylib 0x00000001dde74cc8 _xpc_connection_reply_callout + 60 (serializer.c:119)
12 libxpc.dylib 0x00000001dde69004 _xpc_connection_call_reply_async + 76 (connection.c:833)
13 libdispatch.dylib 0x0000000184222368 _dispatch_client_callout3 + 16 (object.m:586)
14 libdispatch.dylib 0x00000001841f6808 _dispatch_mach_msg_async_reply_invoke$VARIANT$armv81 + 344 (mach.c:2464)
15 libdispatch.dylib 0x00000001841fd2e8 _dispatch_lane_serial_drain$VARIANT$armv81 + 300 (inline_internal.h:0)
16 libdispatch.dylib 0x00000001841fdeec _dispatch_lane_invoke$VARIANT$armv81 + 440 (queue.c:3937)
17 libdispatch.dylib 0x000000018420776c _dispatch_workloop_worker_thread + 616 (queue.c:6732)
18 libsystem_pthread.dylib 0x00000001dde3ef38 _pthread_wqthread + 284 (pthread.c:2495)
19 libsystem_pthread.dylib 0x00000001dde3eaa4 start_wqthread + 8
Thread 6:
0 libsystem_pthread.dylib 0x00000001dde3ea9c _pthread_cond_updateval + 268 (pthread_cond.c:992)
Thread 7 name:
Thread 7:
0 libsystem_kernel.dylib 0x00000001bda24b70 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001bda25194 mach_msg + 72 (mach_msg.c:119)
2 CoreFoundation 0x00000001844caad0 __CFRunLoopServiceMachPort + 368 (CFRunLoop.c:2646)
3 CoreFoundation 0x00000001844cebb8 __CFRunLoopRun + 1184 (CFRunLoop.c:3000)
4 CoreFoundation 0x00000001844e1d8c CFRunLoopRunSpecific + 572 (CFRunLoop.c:3268)
5 Flutter 0x000000010218de08 0x101ea8000 + 3038728
6 Flutter 0x000000010218d6c4 0x101ea8000 + 3036868
7 libsystem_pthread.dylib 0x00000001dde40458 _pthread_start + 116 (pthread.c:890)
8 libsystem_pthread.dylib 0x00000001dde3eab0 thread_start + 8
Thread 8 name:
Thread 8:
0 libsystem_kernel.dylib 0x00000001bda24b70 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001bda25194 mach_msg + 72 (mach_msg.c:119)
2 CoreFoundation 0x00000001844caad0 __CFRunLoopServiceMachPort + 368 (CFRunLoop.c:2646)
3 CoreFoundation 0x00000001844cebb8 __CFRunLoopRun + 1184 (CFRunLoop.c:3000)
4 CoreFoundation 0x00000001844e1d8c CFRunLoopRunSpecific + 572 (CFRunLoop.c:3268)
5 Flutter 0x000000010218de08 0x101ea8000 + 3038728
6 Flutter 0x000000010218d6c4 0x101ea8000 + 3036868
7 libsystem_pthread.dylib 0x00000001dde40458 _pthread_start + 116 (pthread.c:890)
8 libsystem_pthread.dylib 0x00000001dde3eab0 thread_start + 8
Thread 9 name:
Thread 9:
0 libsystem_kernel.dylib 0x00000001bda24b70 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001bda25194 mach_msg + 72 (mach_msg.c:119)
2 CoreFoundation 0x00000001844caad0 __CFRunLoopServiceMachPort + 368 (CFRunLoop.c:2646)
3 CoreFoundation 0x00000001844cebb8 __CFRunLoopRun + 1184 (CFRunLoop.c:3000)
4 CoreFoundation 0x00000001844e1d8c CFRunLoopRunSpecific + 572 (CFRunLoop.c:3268)
5 Flutter 0x000000010218de08 0x101ea8000 + 3038728
6 Flutter 0x000000010218d6c4 0x101ea8000 + 3036868
7 libsystem_pthread.dylib 0x00000001dde40458 _pthread_start + 116 (pthread.c:890)
8 libsystem_pthread.dylib 0x00000001dde3eab0 thread_start + 8
Thread 10 name:
Thread 10:
0 libsystem_kernel.dylib 0x00000001bda25550 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001dde3f96c _pthread_cond_wait$VARIANT$armv81 + 1216 (pthread_cond.c:636)
2 libc++.1.dylib 0x000000019b6572b8 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 24 (__threading_support:437)
3 Flutter 0x00000001021887bc 0x101ea8000 + 3016636
4 libsystem_pthread.dylib 0x00000001dde40458 _pthread_start + 116 (pthread.c:890)
5 libsystem_pthread.dylib 0x00000001dde3eab0 thread_start + 8
Thread 11 name:
Thread 11:
0 libsystem_kernel.dylib 0x00000001bda25550 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001dde3f96c _pthread_cond_wait$VARIANT$armv81 + 1216 (pthread_cond.c:636)
2 libc++.1.dylib 0x000000019b6572b8 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 24 (__threading_support:437)
3 Flutter 0x00000001021887bc 0x101ea8000 + 3016636
4 libsystem_pthread.dylib 0x00000001dde40458 _pthread_start + 116 (pthread.c:890)
5 libsystem_pthread.dylib 0x00000001dde3eab0 thread_start + 8
Thread 12 name:
Thread 12:
0 libsystem_kernel.dylib 0x00000001bda25550 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001dde3f96c _pthread_cond_wait$VARIANT$armv81 + 1216 (pthread_cond.c:636)
2 libc++.1.dylib 0x000000019b6572b8 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 24 (__threading_support:437)
3 Flutter 0x00000001021887bc 0x101ea8000 + 3016636
4 libsystem_pthread.dylib 0x00000001dde40458 _pthread_start + 116 (pthread.c:890)
5 libsystem_pthread.dylib 0x00000001dde3eab0 thread_start + 8
Thread 13 name:
Thread 13:
0 libsystem_kernel.dylib 0x00000001bda25550 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001dde3f96c _pthread_cond_wait$VARIANT$armv81 + 1216 (pthread_cond.c:636)
2 libc++.1.dylib 0x000000019b6572b8 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 24 (__threading_support:437)
3 Flutter 0x00000001021887bc 0x101ea8000 + 3016636
4 libsystem_pthread.dylib 0x00000001dde40458 _pthread_start + 116 (pthread.c:890)
5 libsystem_pthread.dylib 0x00000001dde3eab0 thread_start + 8
Thread 14 name:
Thread 14:
0 libsystem_kernel.dylib 0x00000001bda25550 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001dde3f96c _pthread_cond_wait$VARIANT$armv81 + 1216 (pthread_cond.c:636)
2 libc++.1.dylib 0x000000019b6572b8 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 24 (__threading_support:437)
3 Flutter 0x00000001021887bc 0x101ea8000 + 3016636
4 libsystem_pthread.dylib 0x00000001dde40458 _pthread_start + 116 (pthread.c:890)
5 libsystem_pthread.dylib 0x00000001dde3eab0 thread_start + 8
Thread 15 name:
Thread 15:
0 libsystem_kernel.dylib 0x00000001bda25550 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001dde3f96c _pthread_cond_wait$VARIANT$armv81 + 1216 (pthread_cond.c:636)
2 libc++.1.dylib 0x000000019b6572b8 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 24 (__threading_support:437)
3 Flutter 0x00000001021887bc 0x101ea8000 + 3016636
4 libsystem_pthread.dylib 0x00000001dde40458 _pthread_start + 116 (pthread.c:890)
5 libsystem_pthread.dylib 0x00000001dde3eab0 thread_start + 8
Thread 16 name:
Thread 16:
0 libsystem_kernel.dylib 0x00000001bda26358 kevent + 8
1 Flutter 0x00000001022d694c 0x101ea8000 + 4385100
2 Flutter 0x00000001023040d4 0x101ea8000 + 4571348
3 libsystem_pthread.dylib 0x00000001dde40458 _pthread_start + 116 (pthread.c:890)
4 libsystem_pthread.dylib 0x00000001dde3eab0 thread_start + 8
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000000
x4: 0x0000000000000140 x5: 0x0000000101847f20 x6: 0x000000000000001c x7: 0x000000000000003e
x8: 0x0000000100f88580 x9: 0x1586ebb33258f53a x10: 0x00000000000007fd x11: 0x0000000000000001
x12: 0x0000000000000014 x13: 0x00000000a6e2280d x14: 0x00000000a7023000 x15: 0x0000000000023000
x16: 0x0000000000000148 x17: 0x0000000000003edc x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x0000000000000103 x21: 0x0000000100f88660 x22: 0x000000016f1829f8 x23: 0x0000000103034e00
x24: 0x0000000281323014 x25: 0x0000000281323002 x26: 0x0000000102635000 x27: 0x000000010300e5f8
x28: 0x0000000281322fc0 fp: 0x000000016f182990 lr: 0x00000001dde4a8d8
sp: 0x000000016f182970 pc: 0x00000001bda2aa48 cpsr: 0x40000000
esr: 0x56000080 Address size fault
Binary Images:
0x100c78000 - 0x100c9bfff Runner arm64 <e654fed9801037009c71928b20d4856b> /private/var/containers/Bundle/Application/C5CB602E-8193-491A-8CC2-510494B02AE7/Runner.app/Runner
0x100f28000 - 0x100f7bfff dyld arm64 <d7a0282e93de3a1e981327e84517cc96> /usr/lib/dyld
0x101ea8000 - 0x1025c7fff Flutter arm64 <f7e47c9752253d4e8010581aeb852efb> /private/var/containers/Bundle/Application/C5CB602E-8193-491A-8CC2-510494B02AE7/Runner.app/Frameworks/Flutter.framework/Flutter
0x1841be000 - 0x184240fff libdispatch.dylib arm64 <5d722afcfb8c3769bf66167bb94a6133> /usr/lib/system/libdispatch.dylib
0x1844c4000 - 0x1848fefff CoreFoundation arm64 <fe94d75f5f1d3127ba500161d8817ee6> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
0x185c09000 - 0x185ee7fff Foundation arm64 <b17c0d3bcabb321290560791b2521900> /System/Library/Frameworks/Foundation.framework/Foundation
0x186829000 - 0x187fb0fff UIKitCore arm64 <4c9b5192c562355cbfca71961f92935e> /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore
0x18e972000 - 0x18e9ecfff libsystem_c.dylib arm64 <b88a565bccaf3f569089e56cdcf1b5e6> /usr/lib/system/libsystem_c.dylib
0x194f24000 - 0x194fc2fff FrontBoardServices arm64 <0d3af6437c5b34afac62d438b1d74315>

Crash: Assertion failed: (!_tlsResumeBlock), function _handleTLSEvent for build released through testflight in iOS

I've released my app (iOS 10+) to pilot groups through testflight and recently I've been getting crash reports which points to some _handleTLSEvent. My app also has crashlytics installed which says the crash description as
Assertion failed: (!_tlsResumeBlock), function _handleTLSEvent, file
/BuildRoot/Library/Caches/com.apple.xbs/Sources/CFNetwork/CFNetwork-889.9/Connection/TCPIOConnection.cpp,
line 4628.
But I'm unable to pin point the root cause of the crash. Below is the crash log
OS Version: iPhone OS 11.1
Baseband Version: n/a
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 9
Thread 0 name:
Thread 0:
0 UIFoundation 0x000000018bd6a4a8 -[NSStringDrawingContext dealloc] + 100 (NSStringDrawing.m:126)
1 UIFoundation 0x000000018bd6a49c -[NSStringDrawingContext dealloc] + 88 (NSStringDrawing.m:125)
2 UIKit 0x000000018ac4fd24 -[UILabel _drawTextInRect:baselineCalculationOnly:] + 3940 (UILabel.m:3034)
3 UIKit 0x000000018acba7a0 -[UILabel drawTextInRect:] + 904 (UILabel.m:2620)
4 UIKit 0x000000018acba3c0 -[UIView(CALayerDelegate) drawLayer:inContext:] + 408 (UIView.m:14812)
5 QuartzCore 0x00000001857efa9c -[CALayer drawInContext:] + 296 (CALayer.mm:8884)
6 QuartzCore 0x00000001856eabf4 CABackingStoreUpdate_ + 232 (CABackingStore.cpp:1149)
7 QuartzCore 0x00000001857f5780 invocation function for block in CA::Layer::display_() + 52 (CALayer.mm:8741)
8 QuartzCore 0x00000001857ef4c8 -[CALayer _display] + 1672 (CALayer.mm:8739)
9 QuartzCore 0x0000000185762b50 CA::Context::commit_transaction(CA::Transaction*) + 520 (CALayer.mm:2371)
10 QuartzCore 0x0000000185788eb4 CA::Transaction::commit() + 540 (CATransactionInternal.mm:425)
11 QuartzCore 0x00000001856dda04 CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 928 (CADisplay.mm:1457)
12 IOKit 0x0000000181a6c1cc IODispatchCalloutFromCFMessage + 392 (IOKitLib.c:1216)
13 CoreFoundation 0x0000000181790010 __CFMachPortPerform + 188 (CFMachPort.c:689)
14 CoreFoundation 0x00000001817aa96c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 56 (CFRunLoop.c:1998)
15 CoreFoundation 0x00000001817aa070 __CFRunLoopDoSource1 + 440 (CFRunLoop.c:2135)
16 CoreFoundation 0x00000001817a7b44 __CFRunLoopRun + 2196 (CFRunLoop.c:3150)
17 CoreFoundation 0x00000001816c7fb8 CFRunLoopRunSpecific + 436 (CFRunLoop.c:3245)
18 GraphicsServices 0x000000018355ff84 GSEventRunModal + 100 (GSEvent.c:2245)
19 UIKit 0x000000018ac9c2f4 UIApplicationMain + 208 (UIApplication.m:3949)
20 My App 0x000000010075b514 main + 92 (main.m:14)
21 libdyld.dylib 0x00000001811ea56c start + 4
Thread 1 name:
Thread 1:
0 libsystem_kernel.dylib 0x00000001812f8bc4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001812f8a3c mach_msg + 72 (mach_msg.c:103)
2 CoreFoundation 0x00000001817a9c74 __CFRunLoopServiceMachPort + 196 (CFRunLoop.c:2613)
3 CoreFoundation 0x00000001817a7840 __CFRunLoopRun + 1424 (CFRunLoop.c:2969)
4 CoreFoundation 0x00000001816c7fb8 CFRunLoopRunSpecific + 436 (CFRunLoop.c:3245)
5 Foundation 0x00000001820f16e4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304 (NSRunLoop.m:367)
6 Foundation 0x0000000182110afc -[NSRunLoop(NSRunLoop) runUntilDate:] + 96 (NSRunLoop.m:411)
7 UIKit 0x000000018b7fb2f4 -[UIEventFetcher threadMain] + 136 (UIEventFetcher.m:436)
8 Foundation 0x00000001821f2860 __NSThread__start__ + 996 (NSThread.m:1181)
9 libsystem_pthread.dylib 0x000000018142c31c _pthread_body + 308 (pthread.c:740)
10 libsystem_pthread.dylib 0x000000018142c1e8 _pthread_start + 312 (pthread.c:799)
11 libsystem_pthread.dylib 0x000000018142ac28 thread_start + 4
Thread 2 name:
Thread 2:
0 libsystem_kernel.dylib 0x00000001812f8bc4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001812f8a3c mach_msg + 72 (mach_msg.c:103)
2 My App 0x00000001008abf20 CLSMachExceptionServer + 100
3 libsystem_pthread.dylib 0x000000018142c31c _pthread_body + 308 (pthread.c:740)
4 libsystem_pthread.dylib 0x000000018142c1e8 _pthread_start + 312 (pthread.c:799)
5 libsystem_pthread.dylib 0x000000018142ac28 thread_start + 4
Thread 3 name:
Thread 3:
0 libsystem_kernel.dylib 0x00000001812f8bc4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001812f8a3c mach_msg + 72 (mach_msg.c:103)
2 CoreFoundation 0x00000001817a9c74 __CFRunLoopServiceMachPort + 196 (CFRunLoop.c:2613)
3 CoreFoundation 0x00000001817a7840 __CFRunLoopRun + 1424 (CFRunLoop.c:2969)
4 CoreFoundation 0x00000001816c7fb8 CFRunLoopRunSpecific + 436 (CFRunLoop.c:3245)
5 CFNetwork 0x0000000181e32264 +[NSURLConnection(Loader) _resourceLoadLoop:] + 404 (NSURLConnection.mm:367)
6 Foundation 0x00000001821f2860 __NSThread__start__ + 996 (NSThread.m:1181)
7 libsystem_pthread.dylib 0x000000018142c31c _pthread_body + 308 (pthread.c:740)
8 libsystem_pthread.dylib 0x000000018142c1e8 _pthread_start + 312 (pthread.c:799)
9 libsystem_pthread.dylib 0x000000018142ac28 thread_start + 4
Thread 4:
0 libsystem_kernel.dylib 0x0000000181319150 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x000000018142ed30 _pthread_cond_wait$VARIANT$mp + 640 (pthread_cond.c:579)
2 libc++.1.dylib 0x00000001809d2f34 std::__1::condition_variable::__do_timed_wait(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) + 96 (__threading_support:284)
3 JavaScriptCore 0x0000000188a75dd0 std::__1::cv_status std::__1::condition_variable::wait_until<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > > const&) + 124 (__mutex_base:0)
4 JavaScriptCore 0x0000000188a75ca4 std::__1::cv_status std::__1::condition_variable_any::wait_until<std::__1::unique_lock<bmalloc::Mutex>, std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >(std::__1::unique_lock<bmalloc::Mutex>&, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > > const&) + 108 (condition_variable:224)
5 JavaScriptCore 0x0000000188a75b28 bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>::threadRunLoop() + 280 (condition_variable:235)
6 JavaScriptCore 0x0000000188a75e20 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (*)(bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>*), bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>*> >(void*) + 44 (type_traits:4291)
7 libsystem_pthread.dylib 0x000000018142c31c _pthread_body + 308 (pthread.c:740)
8 libsystem_pthread.dylib 0x000000018142c1e8 _pthread_start + 312 (pthread.c:799)
9 libsystem_pthread.dylib 0x000000018142ac28 thread_start + 4
Thread 5 name:
Thread 5:
0 libsystem_kernel.dylib 0x0000000181319150 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x000000018142ed30 _pthread_cond_wait$VARIANT$mp + 640 (pthread_cond.c:579)
2 WebCore 0x0000000189551690 SendDelegateMessage(NSInvocation*) + 588 (WebCoreThread.mm:782)
3 CoreFoundation 0x00000001818073bc ___forwarding___ + 624 (NSForwarding.m:3259)
4 CoreFoundation 0x00000001816ed01c _CF_forwarding_prep_0 + 92
5 WebKitLegacy 0x000000018a959ec4 WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction(WebCore::NavigationAction const&, WebCore::ResourceRequest const&, bool, WebCore::FormState*, WTF::Function<void (WebCore::PolicyAction)>&&) + 416 (WebFrameLoaderClient.mm:902)
6 WebCore 0x000000018a22611c WebCore::PolicyChecker::checkNavigationPolicy(WebCore::ResourceRequest const&, bool, WebCore::DocumentLoader*, WebCore::FormState*, WTF::Function<void (WebCore::ResourceRequest const&, WebCore::FormState*, bool)>) + 1380 (PolicyChecker.cpp:150)
7 WebCore 0x0000000189a0a324 WebCore::FrameLoader::loadWithDocumentLoader(WebCore::DocumentLoader*, WebCore::FrameLoadType, WebCore::FormState*, WebCore::AllowNavigationToInvalidURL) + 1252 (FrameLoader.cpp:1502)
8 WebCore 0x0000000189a09d44 WebCore::FrameLoader::load(WebCore::FrameLoadRequest&&) + 580 (FrameLoader.cpp:1379)
9 WebKitLegacy 0x000000018a8b6a94 -[WebFrame loadRequest:] + 320 (WebFrame.mm:2480)
10 WebCore 0x000000018a67423c HandleRunSource(void*) + 688 (WebCoreThreadRun.cpp:98)
11 CoreFoundation 0x00000001817aa2e8 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24 (CFRunLoop.c:1982)
12 CoreFoundation 0x00000001817aa268 __CFRunLoopDoSource0 + 88 (CFRunLoop.c:2017)
13 CoreFoundation 0x00000001817a9af0 __CFRunLoopDoSources0 + 204 (CFRunLoop.c:2053)
14 CoreFoundation 0x00000001817a76c8 __CFRunLoopRun + 1048 (CFRunLoop.c:2920)
15 CoreFoundation 0x00000001816c7fb8 CFRunLoopRunSpecific + 436 (CFRunLoop.c:3245)
16 WebCore 0x000000018953be04 RunWebThread(void*) + 456 (WebCoreThread.mm:694)
17 libsystem_pthread.dylib 0x000000018142c31c _pthread_body + 308 (pthread.c:740)
18 libsystem_pthread.dylib 0x000000018142c1e8 _pthread_start + 312 (pthread.c:799)
19 libsystem_pthread.dylib 0x000000018142ac28 thread_start + 4
Thread 6:
0 libsystem_pthread.dylib 0x000000018142ac1c start_wqthread + 0
Thread 7:
0 libsystem_pthread.dylib 0x000000018142ac1c start_wqthread + 0
Thread 8:
0 libsystem_pthread.dylib 0x000000018142ac1c start_wqthread + 0
Thread 9 name:
Thread 9 Crashed:
0 libsystem_kernel.dylib 0x0000000181319348 __pthread_kill + 8
1 libsystem_pthread.dylib 0x000000018142d344 pthread_kill$VARIANT$mp + 396 (pthread.c:1484)
2 libsystem_c.dylib 0x000000018128905c __abort + 152 (abort.c:128)
3 libsystem_c.dylib 0x0000000181288fc4 abort + 152 (abort.c:99)
4 libsystem_c.dylib 0x000000018125ca9c __assert_rtn + 316 (assert.c:91)
5 CFNetwork 0x0000000181f138cc TCPIOConnection::_handleTLSEvent(nw_tls_context*, tls_handshake_message_t, void () block_pointer, bool) + 772 (TCPIOConnection.cpp:4628)
6 libnetwork.dylib 0x00000001826ee964 __tcp_connection_set_tls_message_handler_on_nw_connection_block_invoke + 168 (tcp_connection.m:1799)
7 libboringssl.dylib 0x00000001825c6cf4 ___boringssl_context_certificate_request_callback_block_invoke + 160 (boringssl_session.c:2451)
8 libdispatch.dylib 0x0000000181185088 _dispatch_call_block_and_release + 24 (init.c:994)
9 libdispatch.dylib 0x0000000181185048 _dispatch_client_callout + 16 (object.m:502)
10 libdispatch.dylib 0x000000018118ee48 _dispatch_queue_serial_drain$VARIANT$mp + 528 (inline_internal.h:2500)
11 libdispatch.dylib 0x000000018118f7d8 _dispatch_queue_invoke$VARIANT$mp + 340 (queue.c:5302)
12 libdispatch.dylib 0x000000018118ed00 _dispatch_queue_serial_drain$VARIANT$mp + 200 (inline_internal.h:2539)
13 libdispatch.dylib 0x000000018118f7d8 _dispatch_queue_invoke$VARIANT$mp + 340 (queue.c:5302)
14 libdispatch.dylib 0x0000000181190200 _dispatch_root_queue_drain_deferred_wlh$VARIANT$mp + 400 (queue.c:5920)
15 libdispatch.dylib 0x00000001811984a0 _dispatch_workloop_worker_thread$VARIANT$mp + 644 (source.c:2515)
16 libsystem_pthread.dylib 0x000000018142afd0 _pthread_wqthread + 932 (pthread.c:2207)
17 libsystem_pthread.dylib 0x000000018142ac20 start_wqthread + 4
Thread 10:
0 libsystem_kernel.dylib 0x00000001812f8c18 semaphore_timedwait_trap + 8
1 libdispatch.dylib 0x00000001811874d0 _dispatch_sema4_timedwait$VARIANT$mp + 84 (lock.c:149)
2 libdispatch.dylib 0x0000000181187d40 _dispatch_semaphore_wait_slow + 72 (semaphore.c:127)
3 libdispatch.dylib 0x00000001811936ac _dispatch_worker_thread + 256 (queue.c:6179)
4 libsystem_pthread.dylib 0x000000018142c31c _pthread_body + 308 (pthread.c:740)
5 libsystem_pthread.dylib 0x000000018142c1e8 _pthread_start + 312 (pthread.c:799)
6 libsystem_pthread.dylib 0x000000018142ac28 thread_start + 4
Thread 11:
0 libsystem_kernel.dylib 0x00000001812f8c18 semaphore_timedwait_trap + 8
1 libdispatch.dylib 0x00000001811874d0 _dispatch_sema4_timedwait$VARIANT$mp + 84 (lock.c:149)
2 libdispatch.dylib 0x0000000181187d40 _dispatch_semaphore_wait_slow + 72 (semaphore.c:127)
3 libdispatch.dylib 0x00000001811936ac _dispatch_worker_thread + 256 (queue.c:6179)
4 libsystem_pthread.dylib 0x000000018142c31c _pthread_body + 308 (pthread.c:740)
5 libsystem_pthread.dylib 0x000000018142c1e8 _pthread_start + 312 (pthread.c:799)
6 libsystem_pthread.dylib 0x000000018142ac28 thread_start + 4
Thread 9 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000001
x4: 0x0000000000000000 x5: 0x0000000000989680 x6: 0x0000000000000000 x7: 0x0000000000000403
x8: 0x000000000c000000 x9: 0x0000000004000000 x10: 0x00000000000003e8 x11: 0x000000000000000a
x12: 0x0000000000000000 x13: 0x0000000000000034 x14: 0x00000010082d1529 x15: 0x0000000000000000
x16: 0x0000000000000148 x17: 0x00000001811b2ebc x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x000000016f98f000 x21: 0x0000000000001214 x22: 0x000000000000cabf x23: 0x000000016f98f0e0
x24: 0x00000001b07ee000 x25: 0x0000000000000000 x26: 0x0000000000000000 x27: 0x0000000000000000
x28: 0x00000001c18f7f00 fp: 0x000000016f98e4c0 lr: 0x000000018142d344
sp: 0x000000016f98e490 pc: 0x0000000181319348 cpsr: 0x00000000
As per the log to me it seems to be crashing during some TLS handshake connection but I'm kind of stuck here as I couldn't reproduce this crash and when I checked with my client they couldn't reproduce it either, they say it happens occasionally. If anyone can determine the root cause of this crash by looking at the below log or point me in right direction as to how to proceed next that would be great.

Crash with termination reason 0xdead10cc

What is the cause of this crash, please?
Incident Identifier: A176CFB8-6BB7-4515-A4A2-82D2B962E097
CrashReporter Key: f02957b828fe4090389c1282ca8e38393b4e133d
Hardware Model: iPhone9,4
Process: OneMessenger [10627]
Path: /private/var/containers/Bundle/Application/03E067E9-E2C1-43F4-AC53-4E4F58131FF3/OneMessenger.app/OneMessenger
Identifier: com.onem.adhoc
Version: 158 (1.0.4)
Code Type: ARM-64 (Native)
Role: Non UI
Parent Process: launchd [1]
Coalition: com.onem.adhoc [3747]
Date/Time: 2017-05-10 17:37:48.6201 -0700
Launch Time: 2017-05-10 17:37:46.7161 -0700
OS Version: iPhone OS 10.3.1 (14E304)
Report Version: 104
Exception Type: EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace SPRINGBOARD, Code 0xdead10cc
Triggered by Thread: 0
Thread 0 name:
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x000000018a337224 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x000000018a33709c mach_msg + 72 (mach_msg.c:103)
2 CoreFoundation 0x000000018b308e88 __CFRunLoopServiceMachPort + 192 (CFRunLoop.c:2527)
3 CoreFoundation 0x000000018b306adc __CFRunLoopRun + 1060 (CFRunLoop.c:2870)
4 CoreFoundation 0x000000018b236d94 CFRunLoopRunSpecific + 424 (CFRunLoop.c:3113)
5 GraphicsServices 0x000000018cca0074 GSEventRunModal + 100 (GSEvent.c:2245)
6 UIKit 0x00000001914ef130 UIApplicationMain + 208 (UIApplication.m:4089)
7 OneMessenger 0x00000001004ff1b0 main + 88 (main.m:16)
8 libdyld.dylib 0x000000018a24559c start + 4
Thread 1:
0 libsystem_pthread.dylib 0x000000018a41ad78 start_wqthread + 0 (pthread.c:2333)
Thread 2:
0 libsystem_kernel.dylib 0x000000018a355a88 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x000000018a41b274 _pthread_wqthread + 1260 (pthread.c:2205)
2 libsystem_pthread.dylib 0x000000018a41ad7c start_wqthread + 4
Thread 3:
0 libsystem_pthread.dylib 0x000000018a41ad78 start_wqthread + 0 (pthread.c:2333)
Thread 4 name:
Thread 4:
0 libsystem_kernel.dylib 0x000000018a337224 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x000000018a33709c mach_msg + 72 (mach_msg.c:103)
2 CoreFoundation 0x000000018b308e88 __CFRunLoopServiceMachPort + 192 (CFRunLoop.c:2527)
3 CoreFoundation 0x000000018b306adc __CFRunLoopRun + 1060 (CFRunLoop.c:2870)
4 CoreFoundation 0x000000018b236d94 CFRunLoopRunSpecific + 424 (CFRunLoop.c:3113)
5 Foundation 0x000000018bd50d64 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304 (NSRunLoop.m:367)
6 Foundation 0x000000018bd71b34 -[NSRunLoop(NSRunLoop) runUntilDate:] + 96 (NSRunLoop.m:411)
7 UIKit 0x0000000191e795f8 -[UIEventFetcher threadMain] + 136 (UIEventFetcher.m:313)
8 Foundation 0x000000018be4e2c8 __NSThread__start__ + 996 (NSThread.m:1163)
9 libsystem_pthread.dylib 0x000000018a41d75c _pthread_body + 240 (pthread.c:697)
10 libsystem_pthread.dylib 0x000000018a41d66c _pthread_start + 284 (pthread.c:744)
11 libsystem_pthread.dylib 0x000000018a41ad84 thread_start + 4
Thread 5 name:
Thread 5:
0 libsystem_kernel.dylib 0x000000018a3558e8 __ulock_wait + 8
1 libdispatch.dylib 0x000000018a22577c _dispatch_ulock_wait + 48 (lock.c:327)
2 libdispatch.dylib 0x000000018a2258a4 _dispatch_thread_event_wait_slow + 36 (lock.c:515)
3 libdispatch.dylib 0x000000018a2234f0 _dispatch_barrier_sync_f_slow + 236 (lock.h:392)
4 libcorecrypto.dylib 0x000000018a1efd50 ccrng_cryptographic_generate + 200 (ccrng_cryptographic.c:196)
5 libcorecrypto.dylib 0x000000018a1d8434 ccn_random_bits + 52 (ccn_random_bits.c:17)
6 libcorecrypto.dylib 0x000000018a1b9fb0 ccec_generate_scalar_fips_retry + 108 (ccec_generate_scalar_fips_retry.c:39)
7 libcorecrypto.dylib 0x000000018a1f1514 ccec_generate_key_internal_fips + 148 (ccec_generate_key_internal_fips.c:31)
8 libcorecrypto.dylib 0x000000018a1c912c ccec_generate_key_fips + 24 (ccec_generate_key_fips.c:19)
9 libsystem_coretls.dylib 0x000000018a2f7660 sslEcdhCreateKey + 76 (sslCrypto.c:199)
10 libsystem_coretls.dylib 0x000000018a2fb16c SSLEncodeKeyExchange + 792 (sslKeyExchange.c:1367)
11 libsystem_coretls.dylib 0x000000018a2fcd4c SSLAdvanceHandshake + 2132 (sslHandshake.c:1214)
12 libsystem_coretls.dylib 0x000000018a3021c0 tls_handshake_continue + 40 (tls_handshake.c:334)
13 libnetwork.dylib 0x0000000197fa83a8 __nw_coretls_callback_handshake_message_block_invoke_3 + 76 (protocol_coretls.c:780)
14 libdispatch.dylib 0x000000018a2129e0 _dispatch_call_block_and_release + 24 (init.c:963)
15 libdispatch.dylib 0x000000018a2129a0 _dispatch_client_callout + 16 (object.m:473)
16 libdispatch.dylib 0x000000018a220ad4 _dispatch_queue_serial_drain + 928 (inline_internal.h:2431)
17 libdispatch.dylib 0x000000018a2162cc _dispatch_queue_invoke + 884 (queue.c:4853)
18 libdispatch.dylib 0x000000018a222a50 _dispatch_root_queue_drain + 540 (inline_internal.h:2468)
19 libdispatch.dylib 0x000000018a2227d0 _dispatch_worker_thread3 + 124 (queue.c:5550)
20 libsystem_pthread.dylib 0x000000018a41b1d0 _pthread_wqthread + 1096 (pthread.c:2196)
21 libsystem_pthread.dylib 0x000000018a41ad7c start_wqthread + 4
Thread 6:
0 libsystem_pthread.dylib 0x000000018a41ad78 start_wqthread + 0 (pthread.c:2333)
Thread 7 name:
Thread 7:
0 libsystem_kernel.dylib 0x000000018a337224 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x000000018a33709c mach_msg + 72 (mach_msg.c:103)
2 CoreFoundation 0x000000018b308e88 __CFRunLoopServiceMachPort + 192 (CFRunLoop.c:2527)
3 CoreFoundation 0x000000018b306adc __CFRunLoopRun + 1060 (CFRunLoop.c:2870)
4 CoreFoundation 0x000000018b236d94 CFRunLoopRunSpecific + 424 (CFRunLoop.c:3113)
5 Foundation 0x000000018bd50d64 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304 (NSRunLoop.m:367)
6 Foundation 0x000000018bda56b4 -[NSRunLoop(NSRunLoop) run] + 88 (NSRunLoop.m:389)
7 OneMessenger 0x000000010056e0a8 +[GAI threadMain:] + 64
8 Foundation 0x000000018be4e2c8 __NSThread__start__ + 996 (NSThread.m:1163)
9 libsystem_pthread.dylib 0x000000018a41d75c _pthread_body + 240 (pthread.c:697)
10 libsystem_pthread.dylib 0x000000018a41d66c _pthread_start + 284 (pthread.c:744)
11 libsystem_pthread.dylib 0x000000018a41ad84 thread_start + 4
Thread 8 name:
Thread 8:
0 libsystem_kernel.dylib 0x000000018a337224 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x000000018a33709c mach_msg + 72 (mach_msg.c:103)
2 CoreFoundation 0x000000018b308e88 __CFRunLoopServiceMachPort + 192 (CFRunLoop.c:2527)
3 CoreFoundation 0x000000018b306adc __CFRunLoopRun + 1060 (CFRunLoop.c:2870)
4 CoreFoundation 0x000000018b236d94 CFRunLoopRunSpecific + 424 (CFRunLoop.c:3113)
5 CFNetwork 0x000000018ba42ca4 +[NSURLConnection(Loader) _resourceLoadLoop:] + 404 (NSURLConnection.mm:364)
6 Foundation 0x000000018be4e2c8 __NSThread__start__ + 996 (NSThread.m:1163)
7 libsystem_pthread.dylib 0x000000018a41d75c _pthread_body + 240 (pthread.c:697)
8 libsystem_pthread.dylib 0x000000018a41d66c _pthread_start + 284 (pthread.c:744)
9 libsystem_pthread.dylib 0x000000018a41ad84 thread_start + 4
Thread 9:
0 libsystem_pthread.dylib 0x000000018a41ad78 start_wqthread + 0 (pthread.c:2333)
Thread 10:
0 libsystem_kernel.dylib 0x000000018a355a88 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x000000018a41b0a0 _pthread_wqthread + 792 (pthread.c:2129)
2 libsystem_pthread.dylib 0x000000018a41ad7c start_wqthread + 4
Thread 11 name:
Thread 11:
0 libsystem_kernel.dylib 0x000000018a3558e8 __ulock_wait + 8
1 libdispatch.dylib 0x000000018a22577c _dispatch_ulock_wait + 48 (lock.c:327)
2 libdispatch.dylib 0x000000018a2258a4 _dispatch_thread_event_wait_slow + 36 (lock.c:515)
3 libdispatch.dylib 0x000000018a2234f0 _dispatch_barrier_sync_f_slow + 236 (lock.h:392)
4 OneMessenger 0x0000000100429538 +[DataBase getDeliveredInfoForMsgId:] + 136 (DataBase.m:8598)
5 OneMessenger 0x0000000100495708 -[SingleWebSocket messageViewedWithDictionary:] + 828 (SingleWebSocket.m:9584)
6 OneMessenger 0x000000010044ab18 -[SingleWebSocket websocketDidReceiveMessageWithSocket:text:] + 3672 (SingleWebSocket.m:854)
7 OneMessenger 0x00000001005332b0 specialized WebSocket.(processResponse(WebSocket.WSResponse) -> Bool).(closure #1) + 320 (WebSocket.swift:833)
8 OneMessenger 0x0000000100534a54 partial apply for WebSocket.(processResponse(WebSocket.WSResponse) -> Bool).(closure #1) + 64
9 libdispatch.dylib 0x000000018a2129e0 _dispatch_call_block_and_release + 24 (init.c:963)
10 libdispatch.dylib 0x000000018a2129a0 _dispatch_client_callout + 16 (object.m:473)
11 libdispatch.dylib 0x000000018a220ad4 _dispatch_queue_serial_drain + 928 (inline_internal.h:2431)
12 libdispatch.dylib 0x000000018a2162cc _dispatch_queue_invoke + 884 (queue.c:4853)
13 libdispatch.dylib 0x000000018a220fa8 _dispatch_queue_override_invoke + 344 (queue.c:4890)
14 libdispatch.dylib 0x000000018a222a50 _dispatch_root_queue_drain + 540 (inline_internal.h:2468)
15 libdispatch.dylib 0x000000018a2227d0 _dispatch_worker_thread3 + 124 (queue.c:5550)
16 libsystem_pthread.dylib 0x000000018a41b1d0 _pthread_wqthread + 1096 (pthread.c:2196)
17 libsystem_pthread.dylib 0x000000018a41ad7c start_wqthread + 4
Thread 12 name:
Thread 12:
0 libsystem_kernel.dylib 0x000000018a337224 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x000000018a33709c mach_msg + 72 (mach_msg.c:103)
2 CoreFoundation 0x000000018b308e88 __CFRunLoopServiceMachPort + 192 (CFRunLoop.c:2527)
3 CoreFoundation 0x000000018b306adc __CFRunLoopRun + 1060 (CFRunLoop.c:2870)
4 CoreFoundation 0x000000018b236d94 CFRunLoopRunSpecific + 424 (CFRunLoop.c:3113)
5 AVFAudio 0x00000001a53d3540 GenericRunLoopThread::Entry(void*) + 164 (GenericRunLoopThread.h:106)
6 AVFAudio 0x00000001a53f9814 CAPThread::Entry(CAPThread*) + 84
7 libsystem_pthread.dylib 0x000000018a41d75c _pthread_body + 240 (pthread.c:697)
8 libsystem_pthread.dylib 0x000000018a41d66c _pthread_start + 284 (pthread.c:744)
9 libsystem_pthread.dylib 0x000000018a41ad84 thread_start + 4
Thread 13 name:
Thread 13:
0 libsystem_kernel.dylib 0x000000018a337224 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x000000018a33709c mach_msg + 72 (mach_msg.c:103)
2 CoreFoundation 0x000000018b308e88 __CFRunLoopServiceMachPort + 192 (CFRunLoop.c:2527)
3 CoreFoundation 0x000000018b306adc __CFRunLoopRun + 1060 (CFRunLoop.c:2870)
4 CoreFoundation 0x000000018b236d94 CFRunLoopRunSpecific + 424 (CFRunLoop.c:3113)
5 CoreFoundation 0x000000018b31678c _legacyStreamRunLoop_workThread + 268 (CFStream.c:1775)
6 libsystem_pthread.dylib 0x000000018a41d75c _pthread_body + 240 (pthread.c:697)
7 libsystem_pthread.dylib 0x000000018a41d66c _pthread_start + 284 (pthread.c:744)
8 libsystem_pthread.dylib 0x000000018a41ad84 thread_start + 4
Thread 14 name:
Thread 14:
0 libsystem_kernel.dylib 0x000000018a35523c __select + 8
1 CoreFoundation 0x000000018b30fca8 __CFSocketManager + 632 (CFSocket.c:2241)
2 libsystem_pthread.dylib 0x000000018a41d75c _pthread_body + 240 (pthread.c:697)
3 libsystem_pthread.dylib 0x000000018a41d66c _pthread_start + 284 (pthread.c:744)
4 libsystem_pthread.dylib 0x000000018a41ad84 thread_start + 4
Thread 15 name:
Thread 15:
0 libsystem_c.dylib 0x000000018a2734d8 confstr + 488 (confstr.c:225)
1 Foundation 0x000000018bd68240 NSTemporaryDirectory + 56 (NSPathUtilities.m:1826)
2 Foundation 0x000000018bd68240 NSTemporaryDirectory + 56 (NSPathUtilities.m:1826)
3 Foundation 0x000000018bd67a94 -[NSFileManager _URLForReplacingItemAtURL:error:] + 112 (NSFileManager.m:2747)
4 Foundation 0x000000018be2ed64 _NSCreateTemporaryFile_Protected + 504 (NSPlatform.m:1021)
5 Foundation 0x000000018bd66dc4 _NSWriteDataToFileWithExtendedAttributes + 356 (NSPlatform.m:1194)
6 Foundation 0x000000018be4b0c4 writeStringToURLOrPath + 224 (NSString.m:1556)
7 OneMessenger 0x00000001009fa024 +[FIRApp writeString:toURL:] + 96
8 OneMessenger 0x00000001009f79ac __32+[FIRApp addAppToAppDictionary:]_block_invoke + 192
9 OneMessenger 0x00000001009fcca4 -[FIRClearcutLogger sendNextPendingRequestWithCompletionHandler:] + 672
10 libdispatch.dylib 0x000000018a2129e0 _dispatch_call_block_and_release + 24 (init.c:963)
11 libdispatch.dylib 0x000000018a2129a0 _dispatch_client_callout + 16 (object.m:473)
12 libdispatch.dylib 0x000000018a220ad4 _dispatch_queue_serial_drain + 928 (inline_internal.h:2431)
13 libdispatch.dylib 0x000000018a2162cc _dispatch_queue_invoke + 884 (queue.c:4853)
14 libdispatch.dylib 0x000000018a220fa8 _dispatch_queue_override_invoke + 344 (queue.c:4890)
15 libdispatch.dylib 0x000000018a222a50 _dispatch_root_queue_drain + 540 (inline_internal.h:2468)
16 libdispatch.dylib 0x000000018a2227d0 _dispatch_worker_thread3 + 124 (queue.c:5550)
17 libsystem_pthread.dylib 0x000000018a41b1d0 _pthread_wqthread + 1096 (pthread.c:2196)
18 libsystem_pthread.dylib 0x000000018a41ad7c start_wqthread + 4
Thread 16 name:
Thread 16:
0 libsystem_kernel.dylib 0x000000018a3394dc fsync + 8
1 libsqlite3.dylib 0x000000018b8b704c unixSync + 220 (sqlite3.c:33772)
2 libsqlite3.dylib 0x000000018b8b6a5c sqlite3PagerCommitPhaseOne + 1428 (sqlite3.c:18932)
3 libsqlite3.dylib 0x000000018b8a35a0 sqlite3BtreeCommitPhaseOne + 180 (sqlite3.c:66409)
4 libsqlite3.dylib 0x000000018b872d68 sqlite3VdbeHalt + 2508 (sqlite3.c:77161)
5 libsqlite3.dylib 0x000000018b89cb7c sqlite3VdbeExec + 56292 (sqlite3.c:82886)
6 libsqlite3.dylib 0x000000018b88e0e0 sqlite3_step + 528 (sqlite3.c:80263)
7 OneMessenger 0x00000001003fc2bc __25+[DataBase executeQuery:]_block_invoke + 72 (DataBase.m:1072)
8 libdispatch.dylib 0x000000018a2129e0 _dispatch_call_block_and_release + 24 (init.c:963)
9 libdispatch.dylib 0x000000018a2129a0 _dispatch_client_callout + 16 (object.m:473)
10 libdispatch.dylib 0x000000018a220ad4 _dispatch_queue_serial_drain + 928 (inline_internal.h:2431)
11 libdispatch.dylib 0x000000018a2162cc _dispatch_queue_invoke + 884 (queue.c:4853)
12 libdispatch.dylib 0x000000018a220fa8 _dispatch_queue_override_invoke + 344 (queue.c:4890)
13 libdispatch.dylib 0x000000018a222a50 _dispatch_root_queue_drain + 540 (inline_internal.h:2468)
14 libdispatch.dylib 0x000000018a2227d0 _dispatch_worker_thread3 + 124 (queue.c:5550)
15 libsystem_pthread.dylib 0x000000018a41b1d0 _pthread_wqthread + 1096 (pthread.c:2196)
16 libsystem_pthread.dylib 0x000000018a41ad7c start_wqthread + 4
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000010004005 x1: 0x0000000007000806 x2: 0x0000000000000000 x3: 0x0000000000000c00
x4: 0x0000000000002403 x5: 0x00000000ffffffff x6: 0x0000000000000000 x7: 0x0000000000000000
x8: 0x00000000fffffbbf x9: 0x0000000007000000 x10: 0x0000000007000100 x11: 0x0000000000001cc8
x12: 0x0001440000014503 x13: 0x0000000000000000 x14: 0x0001450000014500 x15: 0x0000000000000000
x16: 0xffffffffffffffe1 x17: 0x000000018b237294 x18: 0x0000000000000000 x19: 0x0000000000000000
x20: 0x00000000ffffffff x21: 0x0000000000002403 x22: 0x0000000000000c00 x23: 0x000000016fd02dd8
x24: 0x0000000007000806 x25: 0x0000000000000000 x26: 0x0000000007000806 x27: 0x0000000000000c00
x28: 0x0000000000000001 fp: 0x000000016fd02ce0 lr: 0x000000018a33709c
sp: 0x000000016fd02c90 pc: 0x000000018a337224 cpsr: 0x60000000
You need to look at the "Termination Reason". Your crash has the code 0xdead10cc.
According to Apple iOS docs, this means your "application has been terminated by the OS because it held on to a file lock or sqlite database lock during suspension."
See: https://developer.apple.com/library/content/technotes/tn2151/_index.html
For when Apple breaks that link, the full title of this tech note is Technical Note TN2151: Understanding and Analyzing Application Crash Reports.
Updated link Oct 2020: https://developer.apple.com/documentation/xcode/diagnosing_issues_using_crash_reports_and_device_logs/understanding_the_exception_types_in_a_crash_report
For when Apple breaks this new link, the new document is titled, "Understanding the Exception Types in a Crash Report", and it is contained under the hierarchy Documentation > Xcode > Diagnosing Issues Using Crash Reports and Device Logs.

presentViewController crash due to KERN_INVALID_ADDRESS

I want to present a viewController using the following code.
Due to some other reasons, I need to get synchrolock before presenting the controller.
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
LogInfo(#"get synchrolock On a background thread");
[RuiKlasseBaseViewController waitSemaphore];
dispatch_async(dispatch_get_main_queue(), ^{
LogInfo(#"presentViewController On main thread");
if (self.view.window) {
TeachingViewController*teachingController=[self.storyboard instantiateViewControllerWithIdentifier:#"Teaching"];
[self presentViewController:teachingController animated:YES completion:releaseSynchrolock];
} else {
LogInfo(#"release synchrolock");
[RuiKlasseBaseViewController signalSemaphore];
[self hidetital];
}
});
});
but sometimes crashed at line:
[self presentViewController:teachingController animated:YES completion:releaseSynchrolock];
crash log:
Incident Identifier: B006117F-5F84-47B1-8B38-12BBD67D6383
CrashReporter Key: 95d234d099f2443ad742fad4e44bedb9c9dd5341
Hardware Model: iPad4,4
Process: MyApp [235]
Path: /private/var/mobile/Containers/Bundle/Application/C476541C-FA4B-479E-8744-18213785C697/MyApp.app/MyApp
Identifier: com.test.myapp
Version: 1180 (2.0.190)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
Date/Time: 2015-03-09 13:54:49.910 +0800
Launch Time: 2015-03-09 13:36:19.134 +0800
OS Version: iOS 8.1.2 (12B440)
Report Version: 105
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x00000000000000a4
Triggered by Thread: 15
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 CoreFoundation 0x000000018538180c -[CFPrefsSearchListSource generationCountFromListOfSources:count:allowFetching:] + 112
1 CoreFoundation 0x0000000185381db8 -[CFPrefsSearchListSource alreadylocked_copyDictionary] + 152
2 CoreFoundation 0x0000000185381db8 -[CFPrefsSearchListSource alreadylocked_copyDictionary] + 152
3 CoreFoundation 0x0000000185380fcc -[CFPrefsSearchListSource alreadylocked_copyValueForKey:] + 44
4 CoreFoundation 0x000000018540f248 ___CFPreferencesCopyAppValueWithContainer_block_invoke + 68
5 CoreFoundation 0x0000000185380120 +[CFPrefsSearchListSource withSearchListForIdentifier:container:perform:] + 576
6 CoreFoundation 0x000000018540f1b8 _CFPreferencesCopyAppValueWithContainer + 196
7 Foundation 0x00000001861bdc28 -[NSUserDefaults(NSUserDefaults) objectForKey:] + 36
8 WebKitLegacy 0x0000000193f6e244 -[WebPreferences _valueForKey:] + 264
9 WebKitLegacy 0x0000000193f6e0ec -[WebPreferences _integerValueForKey:] + 24
10 WebKitLegacy 0x0000000193f749ec -[WebView(WebPrivate) _preferencesChanged:] + 5636
11 WebKitLegacy 0x0000000193f702d0 -[WebView(WebPrivate) _commonInitializationWithFrameName:groupName:] + 2332
12 WebKitLegacy 0x0000000193fe0ef4 -[WebView(WebPrivate) _initWithFrame:frameName:groupName:] + 148
13 UIKit 0x0000000189ce9f30 -[UIWebDocumentView initWithWebView:frame:] + 336
14 UIKit 0x0000000189ce9b88 -[UIWebBrowserView initWithWebView:frame:] + 52
15 UIKit 0x0000000189ce9ac8 -[UIWebBrowserView initWithFrame:] + 48
16 UIKit 0x0000000189f58d5c -[UIWebView _webViewCommonInitWithWebView:scalesPageToFit:] + 268
17 UIKit 0x0000000189f596e4 -[UIWebView initWithCoder:] + 120
18 UIKit 0x000000018a068d94 UINibDecoderDecodeObjectForValue + 808
19 UIKit 0x000000018a068a50 -[UINibDecoder decodeObjectForKey:] + 340
20 UIKit 0x0000000189f901b8 -[UIRuntimeConnection initWithCoder:] + 124
21 UIKit 0x000000018a068d94 UINibDecoderDecodeObjectForValue + 808
22 UIKit 0x000000018a068d34 UINibDecoderDecodeObjectForValue + 712
23 UIKit 0x000000018a068a50 -[UINibDecoder decodeObjectForKey:] + 340
24 UIKit 0x0000000189f8f640 -[UINib instantiateWithOwner:options:] + 1096
25 UIKit 0x0000000189e94270 -[UIViewController _loadViewFromNibNamed:bundle:] + 280
26 UIKit 0x0000000189b84840 -[UIViewController loadViewIfRequired] + 84
27 UIKit 0x0000000189b847ac -[UIViewController view] + 28
28 UIKit 0x000000018a275c30 -[_UIFullscreenPresentationController _setPresentedViewController:] + 72
29 UIKit 0x0000000189e7f1c4 -[UIPresentationController initWithPresentedViewController:presentingViewController:] + 116
30 UIKit 0x0000000189e9a264 -[UIViewController _presentViewController:withAnimationController:completion:] + 1968
31 UIKit 0x0000000189e9c67c __62-[UIViewController presentViewController:animated:completion:]_block_invoke + 116
32 UIKit 0x0000000189c71cec -[UIViewController presentViewController:animated:completion:] + 212
33 MyApp 0x00000001002a4438 __32-[LessonViewController shangke:]_block_invoke_2 (LessonViewController.m:656)
34 libdispatch.dylib 0x00000001964313a8 _dispatch_call_block_and_release + 20
35 libdispatch.dylib 0x0000000196431368 _dispatch_client_callout + 12
36 libdispatch.dylib 0x000000019643597c _dispatch_main_queue_callback_4CF + 928
37 CoreFoundation 0x0000000185389fa0 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 8
38 CoreFoundation 0x0000000185388048 __CFRunLoopRun + 1488
39 CoreFoundation 0x00000001852b50a0 CFRunLoopRunSpecific + 392
40 GraphicsServices 0x000000018e41b5a0 GSEventRunModal + 164
41 UIKit 0x0000000189bea3bc UIApplicationMain + 1484
42 MyApp 0x000000010024fc44 main (main.m:16)
43 libdyld.dylib 0x000000019645aa04 start + 0
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x0000000196558c94 kevent64 + 8
1 libdispatch.dylib 0x000000019644097c _dispatch_mgr_invoke + 272
2 libdispatch.dylib 0x00000001964333b0 _dispatch_mgr_thread + 48
Thread 2 name: AFNetworking
Thread 2:
0 libsystem_kernel.dylib 0x0000000196558e7c mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000196558cf4 mach_msg + 68
2 CoreFoundation 0x0000000185389ecc __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000185387e20 __CFRunLoopRun + 936
4 CoreFoundation 0x00000001852b50a0 CFRunLoopRunSpecific + 392
5 Foundation 0x00000001861bd800 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 312
6 Foundation 0x0000000186217ef4 -[NSRunLoop(NSRunLoop) run] + 92
7 MyApp 0x00000001000c9398 +[AFURLConnectionOperation networkRequestThreadEntryPoint:] (AFURLConnectionOperation.m:193)
8 Foundation 0x00000001862a5c08 __NSThread__main__ + 1068
9 libsystem_pthread.dylib 0x000000019660fe7c _pthread_body + 160
10 libsystem_pthread.dylib 0x000000019660fdd8 _pthread_start + 156
11 libsystem_pthread.dylib 0x000000019660cfac thread_start + 0
Thread 3 name: com.apple.NSURLConnectionLoader
Thread 3:
0 libsystem_kernel.dylib 0x0000000196558e7c mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000196558cf4 mach_msg + 68
2 CoreFoundation 0x0000000185389ecc __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000185387e20 __CFRunLoopRun + 936
4 CoreFoundation 0x00000001852b50a0 CFRunLoopRunSpecific + 392
5 CFNetwork 0x0000000184dba4e4 +[NSURLConnection(Loader) _resourceLoadLoop:] + 436
6 Foundation 0x00000001862a5c08 __NSThread__main__ + 1068
7 libsystem_pthread.dylib 0x000000019660fe7c _pthread_body + 160
8 libsystem_pthread.dylib 0x000000019660fdd8 _pthread_start + 156
9 libsystem_pthread.dylib 0x000000019660cfac thread_start + 0
Thread 4 name: com.apple.CFSocket.private
Thread 4:
0 libsystem_kernel.dylib 0x0000000196573498 __select + 8
1 CoreFoundation 0x000000018538f8c4 __CFSocketManager + 656
2 libsystem_pthread.dylib 0x000000019660fe7c _pthread_body + 160
3 libsystem_pthread.dylib 0x000000019660fdd8 _pthread_start + 156
4 libsystem_pthread.dylib 0x000000019660cfac thread_start + 0
Thread 5 name: WebThread
Thread 5:
0 libsystem_kernel.dylib 0x0000000196558e7c mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000196558cf4 mach_msg + 68
2 CoreFoundation 0x0000000185389ecc __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000185387e20 __CFRunLoopRun + 936
4 CoreFoundation 0x00000001852b50a0 CFRunLoopRunSpecific + 392
5 WebCore 0x00000001930ec854 RunWebThread(void*) + 464
6 libsystem_pthread.dylib 0x000000019660fe7c _pthread_body + 160
7 libsystem_pthread.dylib 0x000000019660fdd8 _pthread_start + 156
8 libsystem_pthread.dylib 0x000000019660cfac thread_start + 0
Thread 6 name: JavaScriptCore::BlockFree
Thread 6:
0 libsystem_kernel.dylib 0x0000000196573078 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x000000019660efe0 _pthread_cond_wait + 620
2 libc++.1.dylib 0x0000000195580cac std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 52
3 JavaScriptCore 0x00000001868415f8 JSC::BlockAllocator::blockFreeingThreadMain() + 228
4 JavaScriptCore 0x000000018683cb7c WTF::wtfThreadEntryPoint(void*) + 20
5 libsystem_pthread.dylib 0x000000019660fe7c _pthread_body + 160
6 libsystem_pthread.dylib 0x000000019660fdd8 _pthread_start + 156
7 libsystem_pthread.dylib 0x000000019660cfac thread_start + 0
Thread 7 name: JavaScriptCore::Marking
Thread 7:
0 libsystem_kernel.dylib 0x0000000196573078 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x000000019660efe0 _pthread_cond_wait + 620
2 libc++.1.dylib 0x0000000195580cac std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 52
3 JavaScriptCore 0x0000000186aea8b8 JSC::GCThread::waitForNextPhase() + 152
4 JavaScriptCore 0x0000000186aea95c JSC::GCThread::gcThreadMain() + 88
5 JavaScriptCore 0x000000018683cb7c WTF::wtfThreadEntryPoint(void*) + 20
6 libsystem_pthread.dylib 0x000000019660fe7c _pthread_body + 160
7 libsystem_pthread.dylib 0x000000019660fdd8 _pthread_start + 156
8 libsystem_pthread.dylib 0x000000019660cfac thread_start + 0
Thread 8 name: WebCore: CFNetwork Loader
Thread 8:
0 libsystem_kernel.dylib 0x0000000196558e7c mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000196558cf4 mach_msg + 68
2 CoreFoundation 0x0000000185389ecc __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000185387e20 __CFRunLoopRun + 936
4 CoreFoundation 0x00000001852b50a0 CFRunLoopRunSpecific + 392
5 WebCore 0x0000000193120670 WebCore::runLoaderThread(void*) + 284
6 JavaScriptCore 0x000000018683cb7c WTF::wtfThreadEntryPoint(void*) + 20
7 libsystem_pthread.dylib 0x000000019660fe7c _pthread_body + 160
8 libsystem_pthread.dylib 0x000000019660fdd8 _pthread_start + 156
9 libsystem_pthread.dylib 0x000000019660cfac thread_start + 0
Thread 9:
0 libsystem_kernel.dylib 0x0000000196558e7c mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000196558cf4 mach_msg + 68
2 CoreFoundation 0x0000000185389ecc __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000185387e20 __CFRunLoopRun + 936
4 CoreFoundation 0x00000001852b50a0 CFRunLoopRunSpecific + 392
5 CoreFoundation 0x00000001853071f8 CFRunLoopRun + 108
6 CoreMotion 0x0000000185cb298c 0x185c70000 + 272780
7 libsystem_pthread.dylib 0x000000019660fe7c _pthread_body + 160
8 libsystem_pthread.dylib 0x000000019660fdd8 _pthread_start + 156
9 libsystem_pthread.dylib 0x000000019660cfac thread_start + 0
Thread 10:
0 libsystem_kernel.dylib 0x0000000196573c78 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x000000019660d390 _pthread_wqthread + 988
2 libsystem_pthread.dylib 0x000000019660cfa4 start_wqthread + 0
Thread 11 name: Dispatch queue: cocoa.lumberjack
Thread 11:
0 libsystem_kernel.dylib 0x0000000196558eb8 semaphore_wait_trap + 8
1 libdispatch.dylib 0x000000019643ed98 _dispatch_group_wait_slow + 244
2 MyApp 0x0000000100137d18 +[DDLog lt_log:] (DDLog.m:665)
3 MyApp 0x0000000100136370 __40+[DDLog queueLogMessage:asynchronously:]_block_invoke (DDLog.m:286)
4 libdispatch.dylib 0x00000001964313a8 _dispatch_call_block_and_release + 20
5 libdispatch.dylib 0x0000000196431368 _dispatch_client_callout + 12
6 libdispatch.dylib 0x000000019643b4bc _dispatch_queue_drain + 1212
7 libdispatch.dylib 0x0000000196434470 _dispatch_queue_invoke + 128
8 libdispatch.dylib 0x000000019643d220 _dispatch_root_queue_drain + 660
9 libdispatch.dylib 0x000000019643e758 _dispatch_worker_thread3 + 104
10 libsystem_pthread.dylib 0x000000019660d2e0 _pthread_wqthread + 812
11 libsystem_pthread.dylib 0x000000019660cfa4 start_wqthread + 0
Thread 12 name: Dispatch queue: com.apple.root.default-qos.overcommit
Thread 12:
0 libsystem_kernel.dylib 0x0000000196573c78 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000196611838 _pthread_workqueue_addthreads + 60
2 libdispatch.dylib 0x000000019643cbf8 _dispatch_queue_wakeup_global_slow + 80
3 libdispatch.dylib 0x000000019643d1e4 _dispatch_root_queue_drain + 600
4 libdispatch.dylib 0x000000019643e758 _dispatch_worker_thread3 + 104
5 libsystem_pthread.dylib 0x000000019660d2e0 _pthread_wqthread + 812
6 libsystem_pthread.dylib 0x000000019660cfa4 start_wqthread + 0
Thread 13:
0 libsystem_kernel.dylib 0x0000000196573c78 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x000000019660d390 _pthread_wqthread + 988
2 libsystem_pthread.dylib 0x000000019660cfa4 start_wqthread + 0
Thread 14 name: Dispatch queue: com.apple.root.default-qos
Thread 14:
0 libsystem_kernel.dylib 0x0000000196572420 __connect + 8
1 MyApp 0x00000001001e3d44 -[CommandSender sendUsingTCPForCommand:withObj:] (CommandSender.m:154)
2 MyApp 0x00000001001e3254 __47-[CommandSender sendCommandType:using:withObj:]_block_invoke (CommandSender.m:43)
3 libdispatch.dylib 0x00000001964313a8 _dispatch_call_block_and_release + 20
4 libdispatch.dylib 0x0000000196431368 _dispatch_client_callout + 12
5 libdispatch.dylib 0x000000019643d408 _dispatch_root_queue_drain + 1148
6 libdispatch.dylib 0x000000019643e758 _dispatch_worker_thread3 + 104
7 libsystem_pthread.dylib 0x000000019660d2e0 _pthread_wqthread + 812
8 libsystem_pthread.dylib 0x000000019660cfa4 start_wqthread + 0
Thread 15 Crashed:
0 QuartzCore 0x00000001894d67ec CA::Layer::collect_animations_(double, double*, CA::Layer::CollectAnimationsData*) + 76
1 QuartzCore 0x00000001894d6930 CA::Layer::collect_animations_(double, double*, CA::Layer::CollectAnimationsData*) + 400
2 QuartzCore 0x00000001894d6930 CA::Layer::collect_animations_(double, double*, CA::Layer::CollectAnimationsData*) + 400
3 QuartzCore 0x00000001894d6930 CA::Layer::collect_animations_(double, double*, CA::Layer::CollectAnimationsData*) + 400
4 QuartzCore 0x00000001894d6930 CA::Layer::collect_animations_(double, double*, CA::Layer::CollectAnimationsData*) + 400
5 QuartzCore 0x00000001894d6790 CA::Layer::collect_animations(CA::Transaction*, double, double*) + 36
6 QuartzCore 0x00000001894d406c CA::Context::commit_transaction(CA::Transaction*) + 1400
7 QuartzCore 0x00000001894d3988 CA::Transaction::commit() + 432
8 QuartzCore 0x0000000189504028 CA::Transaction::release_thread(void*) + 200
9 libsystem_pthread.dylib 0x000000019660e3dc _pthread_tsd_cleanup + 196
10 libsystem_pthread.dylib 0x000000019660e0a8 _pthread_exit + 136
11 libsystem_pthread.dylib 0x000000019660f32c pthread_exit + 40
12 Foundation 0x00000001861d6ffc +[NSThread exit] + 12
13 Foundation 0x00000001862a5c20 __NSThread__main__ + 1092
14 libsystem_pthread.dylib 0x000000019660fe7c _pthread_body + 160
15 libsystem_pthread.dylib 0x000000019660fdd8 _pthread_start + 156
16 libsystem_pthread.dylib 0x000000019660cfac thread_start + 0
Thread 16:
0 libsystem_kernel.dylib 0x0000000196573c78 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x000000019660d390 _pthread_wqthread + 988
2 libsystem_pthread.dylib 0x000000019660cfa4 start_wqthread + 0
Thread 15 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x000000014f939200 x2: 0x00000001063eb910 x3: 0x00000001063f3970
x4: 0x0000000003000001 x5: 0x0000000000000000 x6: 0x0000000000000000 x7: 0x0000000000000000
x8: 0x0000000000000001 x9: 0x0000000000000008 x10: 0x0000000000000001 x11: 0x0000000000004800
x12: 0x0000000000000000 x13: 0x0000000102a4d688 x14: 0x0000000000000000 x15: 0x0000000000000000
x16: 0x000000019657dd74 x17: 0x0000000195dffea0 x18: 0x0000000000000000 x19: 0x00000001063eb910
x20: 0x0000000000000004 x21: 0x00000001063eb718 x22: 0x0000000197313000 x23: 0x0000000000000000
x24: 0x0000000000000001 x25: 0x00000001063eb718 x26: 0x0000000102b4a084 x27: 0x0000000000000003
x28: 0x0000000000000001 fp: 0x00000001063eb6f0 lr: 0x00000001894d6934
sp: 0x00000001063eb650 pc: 0x00000001894d67ec cpsr: 0x20000000
Any help is much appreciated.
Thanks.

Resources