CALayer dealloc crash in secondary thread - ios

I received the following crashlog, and I'm having some trouble figuring out in what part of my app its happening.
Hardware Model: iPad2,4
Process: MYAPP [129]
Path: /var/mobile/Applications/FC5BD37F-838A-4CDD-8158-5A2B6F34C3AB/MYAPP.app/MYAPP
Identifier: com.myapp
Version: 4.0
Code Type: ARM
Parent Process: launchd [1]
Exception Type: SIGSEGV
Exception Codes: SEGV_ACCERR at 0x8
Crashed Thread: 6
Thread 0:
0 libz.1.dylib 0x38b9a3c8 _zError + 1159
1 ImageIO 0x2e9755b9 <redacted> + 308
2 ImageIO 0x2e973155 <redacted> + 2400
3 ImageIO 0x2e97227f <redacted> + 542
4 CoreGraphics 0x2dcaf44d _CGImageProviderCopyImageBlockSetWithOptions + 136
5 QuartzCore 0x300e9105 <redacted> + 684
6 QuartzCore 0x300e85af <redacted> + 290
7 QuartzCore 0x300e8e47 <redacted> + 18
8 QuartzCore 0x300bd201 <redacted> + 384
9 QuartzCore 0x300bc6e7 <redacted> + 238
10 QuartzCore 0x300bc4ef <redacted> + 314
11 QuartzCore 0x300b621d <redacted> + 56
12 CoreFoundation 0x2dbf32a5 <redacted> + 20
13 CoreFoundation 0x2dbf0c49 <redacted> + 284
14 CoreFoundation 0x2dbf0f8b <redacted> + 730
15 CoreFoundation 0x2db5bf0f _CFRunLoopRunSpecific + 522
16 CoreFoundation 0x2db5bcf3 _CFRunLoopRunInMode + 106
17 GraphicsServices 0x32a55663 _GSEventRunModal + 138
18 UIKit 0x304a716d _UIApplicationMain + 1136
19 MYAPP 0x000b7177 __mh_execute_header + 29047
20 libdyld.dylib 0x38c19ab7 <redacted> + 2
Thread 1:
0 libsystem_kernel.dylib 0x38cbc808 _kevent64 + 24
1 libdispatch.dylib 0x38bfde03 <redacted> + 38
Thread 2:
0 libsystem_kernel.dylib 0x38ccfc70 ___workq_kernreturn + 8
1 libsystem_pthread.dylib 0x38d36a98 _start_wqthread + 8
Thread 3:
0 libsystem_kernel.dylib 0x38ccfc70 ___workq_kernreturn + 8
1 libsystem_pthread.dylib 0x38d36a98 _start_wqthread + 8
Thread 4:
0 libsystem_kernel.dylib 0x38cbca58 _mach_msg_trap + 20
1 CoreFoundation 0x2dbf289b <redacted> + 154
2 CoreFoundation 0x2dbf0fc1 <redacted> + 784
3 CoreFoundation 0x2db5bf0f _CFRunLoopRunSpecific + 522
4 CoreFoundation 0x2db5bcf3 _CFRunLoopRunInMode + 106
5 Foundation 0x2e59b087 +[NSURLConnection _resourceLoadLoop:] + 318
6 Foundation 0x2e610a5f <redacted> + 1062
7 libsystem_pthread.dylib 0x38d38919 <redacted> + 140
8 libsystem_pthread.dylib 0x38d3888b __pthread_start + 102
9 libsystem_pthread.dylib 0x38d36aa4 _thread_start + 8
Thread 5:
0 libsystem_kernel.dylib 0x38ccfc70 ___workq_kernreturn + 8
1 libsystem_pthread.dylib 0x38d36a98 _start_wqthread + 8
Thread 6 Crashed:
0 QuartzCore 0x300c0376 <redacted> + 5
1 QuartzCore 0x300bfe63 <redacted> + 142
2 QuartzCore 0x300bfb13 -[CALayer dealloc] + 142
3 QuartzCore 0x300bf881 <redacted> + 136
4 QuartzCore 0x300bc547 <redacted> + 402
5 QuartzCore 0x3011dfa1 <redacted> + 576
6 libdispatch.dylib 0x38bfbad7 <redacted> + 222
7 libdispatch.dylib 0x38bfbd29 <redacted> + 56
8 libsystem_pthread.dylib 0x38d36bd3 __pthread_wqthread + 298
9 libsystem_pthread.dylib 0x38d36a98 _start_wqthread + 8
Thread 7:
0 libsystem_kernel.dylib 0x38cbca58 _mach_msg_trap + 20
1 CoreFoundation 0x2dbf289b <redacted> + 154
2 CoreFoundation 0x2dbf0fc1 <redacted> + 784
3 CoreFoundation 0x2db5bf0f _CFRunLoopRunSpecific + 522
4 CoreFoundation 0x2db5bcf3 _CFRunLoopRunInMode + 106
5 WebCore 0x3603011b <redacted> + 418
6 libsystem_pthread.dylib 0x38d38919 <redacted> + 140
7 libsystem_pthread.dylib 0x38d3888b __pthread_start + 102
8 libsystem_pthread.dylib 0x38d36aa4 _thread_start + 8
Thread 8:
0 libsystem_kernel.dylib 0x38cbca58 _mach_msg_trap + 20
1 CoreFoundation 0x2dbf289b <redacted> + 154
2 CoreFoundation 0x2dbf0fc1 <redacted> + 784
3 CoreFoundation 0x2db5bf0f _CFRunLoopRunSpecific + 522
4 CoreFoundation 0x2db5bcf3 _CFRunLoopRunInMode + 106
5 Foundation 0x2e54e1eb -[NSRunLoop runMode:beforeDate:] + 254
6 Foundation 0x2e59f0a1 -[NSRunLoop run] + 80
7 MYAPP 0x002c533d +[AFURLConnectionOperation networkRequestThreadEntryPoint:] + 80
8 Foundation 0x2e610a5f <redacted> + 1062
9 libsystem_pthread.dylib 0x38d38919 <redacted> + 140
10 libsystem_pthread.dylib 0x38d3888b __pthread_start + 102
11 libsystem_pthread.dylib 0x38d36aa4 _thread_start + 8
Thread 9:
0 libsystem_kernel.dylib 0x38ccf434 ___select + 20
1 libsystem_pthread.dylib 0x38d38919 <redacted> + 140
2 libsystem_pthread.dylib 0x38d3888b __pthread_start + 102
3 libsystem_pthread.dylib 0x38d36aa4 _thread_start + 8
Thread 10:
0 libsystem_kernel.dylib 0x38ccef2c ___psynch_cvwait + 24
1 libsystem_pthread.dylib 0x38d38d65 _pthread_cond_wait + 40
2 JavaScriptCore 0x2eb88ee9 <redacted> + 208
3 JavaScriptCore 0x2eb8653b <redacted> + 14
4 libsystem_pthread.dylib 0x38d38919 <redacted> + 140
5 libsystem_pthread.dylib 0x38d3888b __pthread_start + 102
6 libsystem_pthread.dylib 0x38d36aa4 _thread_start + 8
Thread 11:
0 libsystem_kernel.dylib 0x38ccef2c ___psynch_cvwait + 24
1 libsystem_pthread.dylib 0x38d38d65 _pthread_cond_wait + 40
2 JavaScriptCore 0x2ed2440b <redacted> + 78
3 JavaScriptCore 0x2ed24465 <redacted> + 52
4 JavaScriptCore 0x2eb8653b <redacted> + 14
5 libsystem_pthread.dylib 0x38d38919 <redacted> + 140
6 libsystem_pthread.dylib 0x38d3888b __pthread_start + 102
7 libsystem_pthread.dylib 0x38d36aa4 _thread_start + 8
Thread 12:
0 libsystem_kernel.dylib 0x38cbca58 _mach_msg_trap + 20
1 CoreFoundation 0x2dbf289b <redacted> + 154
2 CoreFoundation 0x2dbf0fc1 <redacted> + 784
3 CoreFoundation 0x2db5bf0f _CFRunLoopRunSpecific + 522
4 CoreFoundation 0x2db5bcf3 _CFRunLoopRunInMode + 106
5 WebCore 0x36078b17 <redacted> + 254
6 JavaScriptCore 0x2eb8653b <redacted> + 14
7 libsystem_pthread.dylib 0x38d38919 <redacted> + 140
8 libsystem_pthread.dylib 0x38d3888b __pthread_start + 102
9 libsystem_pthread.dylib 0x38d36aa4 _thread_start + 8
Thread 13:
0 libsystem_kernel.dylib 0x38ccef2c ___psynch_cvwait + 24
1 libsystem_pthread.dylib 0x38d38d65 _pthread_cond_wait + 40
2 JavaScriptCore 0x2eb88ee9 <redacted> + 208
3 JavaScriptCore 0x2eb8653b <redacted> + 14
4 libsystem_pthread.dylib 0x38d38919 <redacted> + 140
5 libsystem_pthread.dylib 0x38d3888b __pthread_start + 102
6 libsystem_pthread.dylib 0x38d36aa4 _thread_start + 8
Thread 14:
0 libsystem_kernel.dylib 0x38ccef2c ___psynch_cvwait + 24
1 libsystem_pthread.dylib 0x38d38d65 _pthread_cond_wait + 40
2 JavaScriptCore 0x2ed2440b <redacted> + 78
3 JavaScriptCore 0x2ed24465 <redacted> + 52
4 JavaScriptCore 0x2eb8653b <redacted> + 14
5 libsystem_pthread.dylib 0x38d38919 <redacted> + 140
6 libsystem_pthread.dylib 0x38d3888b __pthread_start + 102
7 libsystem_pthread.dylib 0x38d36aa4 _thread_start + 8
Thread 15:
0 libsystem_kernel.dylib 0x38ccfc70 ___workq_kernreturn + 8
1 libsystem_pthread.dylib 0x38d36a98 _start_wqthread + 8
Thread 16:
0 libsystem_kernel.dylib 0x38cbca58 _mach_msg_trap + 20
1 CoreFoundation 0x2dbf289b <redacted> + 154
2 CoreFoundation 0x2dbf0fc1 <redacted> + 784
3 CoreFoundation 0x2db5bf0f _CFRunLoopRunSpecific + 522
4 CoreFoundation 0x2db9fa03 _CFRunLoopRun + 98
5 CoreMotion 0x2e2193ad _CLSF_thorntonUpdate_6x6 + 56957
6 libsystem_pthread.dylib 0x38d38919 <redacted> + 140
7 libsystem_pthread.dylib 0x38d3888b __pthread_start + 102
8 libsystem_pthread.dylib 0x38d36aa4 _thread_start + 8
Thread 6 crashed with ARM Thread State:
pc: 0x300c0376 r7: 0x03389d68 sp: 0x03389d0c r0: 0x00000000
r1: 0x16b1d800 r2: 0x00000002 r3: 0x300c435d r4: 0x16b1d800
r5: 0x00000000 r6: 0x17a3e820 r8: 0x03389d20 r9: 0x17200020
r10: 0x39202310 r11: 0x00000000 ip: 0x3ac7ebc8 lr: 0x300c02ab
cpsr: 0x60000030
I noticed that there's a -[CALayer dealloc] call on the crashed thread, so I'm guessing that I accidentally called some UI update from a secondary thread.
So here are my questions: Am I right to assume the problem is updating UI from a secondary thread? And if so, can this crashlog help me figure out where in my code the mistake is?

Related

Can't understand symbolicated crash report

I have downloaded symbolicated crash report using Xcode but unable to understand it as in backtrace it shows below method where it crashed:
-[UIView(Internal) _addSubview:positioned:relativeTo:] + 132 (UIView.m:16297). However, I can't find that specific method in my code where exception occurred. Below is the crash report:
Incident Identifier: 36EACC3D-E19F-4F23-B788-CD18C8D21052
Hardware Model: iPad13,4
Process: SuperApp [1625]
Path: /private/var/containers/Bundle/Application/5AEC3228-FC0F-48FA-9812-276AAD48B44D/SuperApp.app/SuperApp
Identifier: sa.com.stc.SuperMobileApp
Version: 1.0 (1.4.0)
AppStoreTools: 12E262
AppVariant: 1:iPad13,4:14
Beta: YES
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: sa.com.stc.SuperMobileApp [793]
Date/Time: 2021-06-20 17:34:25.7885 +0300
Launch Time: 2021-06-19 22:08:42.5573 +0300
OS Version: iPhone OS 15.0 (19A5261w)
Release Type: Beta
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x18082ff90 __exceptionPreprocess + 220 (NSException.m:199)
1 libobjc.A.dylib 0x198eeb21c objc_exception_throw + 60 (objc-exception.mm:565)
2 CoreFoundation 0x1808bcce0 +[NSException raise:format:] + 112 (NSException.m:155)
3 UIKitCore 0x182c4a458 -[UIView(Internal) _addSubview:positioned:relativeTo:] + 132 (UIView.m:16297)
4 UIKitCore 0x182ff5638 __53-[_UINavigationParallaxTransition animateTransition:]_block_invoke_2 + 1304 (_UINavigationParallaxTransition.m:383)
5 UIKitCore 0x182c2acf4 +[UIView(Animation) performWithoutAnimation:] + 104 (UIView.m:14461)
6 UIKitCore 0x183144bb8 __53-[_UINavigationParallaxTransition animateTransition:]_block_invoke + 260 (_UINavigationParallaxTransition.m:319)
7 UIKitCore 0x182e91458 +[UIView _performBlockDelayingTriggeringResponderEvents:forScene:] + 252 (UIView.m:15984)
8 UIKitCore 0x182fb249c -[_UINavigationParallaxTransition animateTransition:] + 1092 (_UINavigationParallaxTransition.m:317)
9 UIKitCore 0x182f276ec ___UIViewControllerTransitioningRunCustomTransition_block_invoke_2 + 76 (UIViewControllerTransitioning.m:0)
10 UIKitCore 0x182ecee34 +[UIKeyboardSceneDelegate _pinInputViewsForKeyboardSceneDelegate:onBehalfOfResponder:duringBlock:] + 172 (UIKeyboardSceneDelegate.m:1968)
11 UIKitCore 0x1834cd880 ___UIViewControllerTransitioningRunCustomTransition_block_invoke.663 + 204 (UIViewControllerTransitioning.m:1258)
12 UIKitCore 0x182da8914 +[UIView(Animation) _setAlongsideAnimations:toRunByEndOfBlock:] + 204 (UIView.m:14416)
13 UIKitCore 0x182da879c _UIViewControllerTransitioningRunCustomTransition + 628 (UIViewControllerTransitioning.m:1249)
14 UIKitCore 0x182e60ed8 -[UINavigationController _startCustomTransition:] + 3412 (UINavigationController.m:2224)
15 UIKitCore 0x182d2bbec -[UINavigationController _startDeferredTransitionIfNeeded:] + 692 (UINavigationController.m:7291)
16 UIKitCore 0x182d29e28 -[UINavigationController __viewWillLayoutSubviews] + 168 (UINavigationController.m:7596)
17 UIKitCore 0x182d66bf0 -[UILayoutContainerView layoutSubviews] + 228 (UILayoutContainerView.m:88)
18 UIKitCore 0x182be1498 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2768 (UIView.m:18074)
19 QuartzCore 0x184440f10 CA::Layer::layout_if_needed(CA::Transaction*) + 536 (CALayer.mm:10004)
20 QuartzCore 0x18444f664 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 144 (CALayer.mm:2476)
21 QuartzCore 0x184479fa8 CA::Context::commit_transaction(CA::Transaction*, double, double*) + 480 (CAContextInternal.mm:2549)
22 QuartzCore 0x1844b8910 CA::Transaction::commit() + 680 (CATransactionInternal.mm:449)
23 QuartzCore 0x184617394 CA::Transaction::flush_as_runloop_observer(bool) + 72 (CATransactionInternal.mm:941)
24 CoreFoundation 0x1807dbd04 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 36 (CFRunLoop.c:1799)
25 CoreFoundation 0x18076a334 __CFRunLoopDoObservers + 572 (CFRunLoop.c:1912)
26 CoreFoundation 0x1807c89c0 __CFRunLoopRun + 1052 (CFRunLoop.c:2958)
27 CoreFoundation 0x1807d631c CFRunLoopRunSpecific + 600 (CFRunLoop.c:3247)
28 GraphicsServices 0x19c174600 GSEventRunModal + 164 (GSEvent.c:2200)
29 UIKitCore 0x182fae9b0 -[UIApplication _run] + 1084 (UIApplication.m:3409)
30 UIKitCore 0x182fae424 UIApplicationMain + 2204 (UIApplication.m:4949)
31 SuperApp 0x1028eec30 main + 68 (AppDelegate.swift:24)
32 dyld 0x102f2121c start + 520 (dyldMain.cpp:857)
Thread 0 name:
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x00000001b63471f4 __pthread_kill + 8
1 libsystem_pthread.dylib 0x00000001f0e0123c pthread_kill + 268 (pthread.c:1609)
2 libsystem_c.dylib 0x000000018b8b2500 __abort + 128 (abort.c:155)
3 libsystem_c.dylib 0x000000018b8b2480 abort + 176 (abort.c:126)
4 libc++abi.dylib 0x0000000198ff0a7c abort_message + 132 (abort_message.cpp:78)
5 libc++abi.dylib 0x0000000198fe19b8 demangling_terminate_handler() + 352 (cxa_default_handlers.cpp:67)
6 libobjc.A.dylib 0x0000000198eef2fc _objc_terminate() + 144 (objc-exception.mm:701)
7 SuperApp 0x0000000102ae3b00 CLSTerminateHandler+ 2079488 () + 348
8 libc++abi.dylib 0x0000000198fefe10 std::__terminate(void (*)()) + 20 (cxa_handlers.cpp:59)
9 libc++abi.dylib 0x0000000198ff2dc4 __cxa_rethrow + 148 (cxa_exception.cpp:616)
10 libobjc.A.dylib 0x0000000198eeb1d4 objc_exception_rethrow + 44 (objc-exception.mm:604)
11 CoreFoundation 0x00000001807d6408 CFRunLoopRunSpecific + 836 (CFRunLoop.c:3262)
12 GraphicsServices 0x000000019c174600 GSEventRunModal + 164 (GSEvent.c:2200)
13 UIKitCore 0x0000000182fae9b0 -[UIApplication _run] + 1084 (UIApplication.m:3409)
14 UIKitCore 0x0000000182fae424 UIApplicationMain + 2204 (UIApplication.m:4949)
15 SuperApp 0x00000001028eec30 main + 68 (AppDelegate.swift:24)
16 dyld 0x0000000102f2121c start + 520 (dyldMain.cpp:857)
Thread 1 name:
Thread 1:
0 libsystem_kernel.dylib 0x00000001b6321b78 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001b6320edc mach_msg + 76 (mach_msg.c:119)
2 CoreFoundation 0x00000001807c94c8 __CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2641)
3 CoreFoundation 0x00000001807c8a60 __CFRunLoopRun + 1212 (CFRunLoop.c:2979)
4 CoreFoundation 0x00000001807d631c CFRunLoopRunSpecific + 600 (CFRunLoop.c:3247)
5 Foundation 0x0000000181f7b018 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 232 (NSRunLoop.m:377)
6 Foundation 0x0000000181f7aee4 -[NSRunLoop(NSRunLoop) runUntilDate:] + 92 (NSRunLoop.m:424)
7 UIKitCore 0x0000000182c92cec -[UIEventFetcher threadMain] + 524 (UIEventFetcher.m:1054)
8 Foundation 0x0000000181fe5a04 __NSThread__start__ + 864 (NSThread.m:742)
9 libsystem_pthread.dylib 0x00000001f0e00220 _pthread_start + 148 (pthread.c:890)
10 libsystem_pthread.dylib 0x00000001f0e0962c thread_start + 8
Thread 2 name:
Thread 2:
0 libsystem_kernel.dylib 0x00000001b6321b78 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001b6320edc mach_msg + 76 (mach_msg.c:119)
2 CoreFoundation 0x00000001807c94c8 __CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2641)
3 CoreFoundation 0x00000001807c8a60 __CFRunLoopRun + 1212 (CFRunLoop.c:2979)
4 CoreFoundation 0x00000001807d631c CFRunLoopRunSpecific + 600 (CFRunLoop.c:3247)
5 AudioSession 0x00000001897e5330 CADeprecated::GenericRunLoopThread::Entry(void*) + 164 (GenericRunLoopThread.h:95)
6 AudioSession 0x00000001897eae58 CADeprecated::CAPThread::Entry(CADeprecated::CAPThread*) + 92 (CAPThread.cpp:324)
7 libsystem_pthread.dylib 0x00000001f0e00220 _pthread_start + 148 (pthread.c:890)
8 libsystem_pthread.dylib 0x00000001f0e0962c thread_start + 8
Thread 3 name:
Thread 3:
0 libsystem_kernel.dylib 0x00000001b63474ec select$DARWIN_EXTSN + 8
1 WebRTC 0x0000000103b18d5c 0x103ac0000 + 363868
2 WebRTC 0x0000000103b1e95c 0x103ac0000 + 387420
3 WebRTC 0x0000000103b1de94 0x103ac0000 + 384660
4 WebRTC 0x0000000103b1f2e4 0x103ac0000 + 389860
5 libsystem_pthread.dylib 0x00000001f0e00220 _pthread_start + 148 (pthread.c:890)
6 libsystem_pthread.dylib 0x00000001f0e0962c thread_start + 8
Thread 4 name:
Thread 4:
0 libsystem_kernel.dylib 0x00000001b6346f8c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001f0e03e28 _pthread_cond_wait + 1240 (pthread_cond.c:636)
2 WebRTC 0x0000000103b24604 0x103ac0000 + 411140
3 WebRTC 0x0000000103b244e0 0x103ac0000 + 410848
4 WebRTC 0x0000000103b11884 0x103ac0000 + 333956
5 WebRTC 0x0000000103b1e95c 0x103ac0000 + 387420
6 WebRTC 0x0000000103b1de94 0x103ac0000 + 384660
7 WebRTC 0x0000000103b1f2e4 0x103ac0000 + 389860
8 libsystem_pthread.dylib 0x00000001f0e00220 _pthread_start + 148 (pthread.c:890)
9 libsystem_pthread.dylib 0x00000001f0e0962c thread_start + 8
Thread 5 name:
Thread 5:
0 libsystem_kernel.dylib 0x00000001b6346f8c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001f0e03e28 _pthread_cond_wait + 1240 (pthread_cond.c:636)
2 WebRTC 0x0000000103b24614 0x103ac0000 + 411156
3 WebRTC 0x0000000103b244e0 0x103ac0000 + 410848
4 WebRTC 0x0000000103b11884 0x103ac0000 + 333956
5 WebRTC 0x0000000103b1e95c 0x103ac0000 + 387420
6 WebRTC 0x0000000103b1de94 0x103ac0000 + 384660
7 WebRTC 0x0000000103b1f2e4 0x103ac0000 + 389860
8 libsystem_pthread.dylib 0x00000001f0e00220 _pthread_start + 148 (pthread.c:890)
9 libsystem_pthread.dylib 0x00000001f0e0962c thread_start + 8
Thread 6 name:
Thread 6:
0 libsystem_kernel.dylib 0x00000001b6346f8c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001f0e03e28 _pthread_cond_wait + 1240 (pthread_cond.c:636)
2 WebRTC 0x0000000103b24604 0x103ac0000 + 411140
3 WebRTC 0x0000000103b244e0 0x103ac0000 + 410848
4 WebRTC 0x0000000103bdf4bc 0x103ac0000 + 1176764
5 WebRTC 0x0000000103bdee4c 0x103ac0000 + 1175116
6 WebRTC 0x0000000103b23fcc 0x103ac0000 + 409548
7 libsystem_pthread.dylib 0x00000001f0e00220 _pthread_start + 148 (pthread.c:890)
8 libsystem_pthread.dylib 0x00000001f0e0962c thread_start + 8
Thread 7 name:
Thread 7:
0 libsystem_kernel.dylib 0x00000001b6321b78 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001b6320edc mach_msg + 76 (mach_msg.c:119)
2 SuperApp 0x0000000102ad1320 CLSMachExceptionServer + 100
3 libsystem_pthread.dylib 0x00000001f0e00220 _pthread_start + 148 (pthread.c:890)
4 libsystem_pthread.dylib 0x00000001f0e0962c thread_start + 8
Thread 8 name:
Thread 8:
0 libsystem_kernel.dylib 0x00000001b6321b78 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001b6320edc mach_msg + 76 (mach_msg.c:119)
2 CoreFoundation 0x00000001807c94c8 __CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2641)
3 CoreFoundation 0x00000001807c8a60 __CFRunLoopRun + 1212 (CFRunLoop.c:2979)
4 CoreFoundation 0x00000001807d631c CFRunLoopRunSpecific + 600 (CFRunLoop.c:3247)
5 CFNetwork 0x00000001811bae6c +[__CFN_CoreSchedulingSetRunnable _run:] + 464 (CoreSchedulingSet.mm:1372)
6 Foundation 0x0000000181fe5a04 __NSThread__start__ + 864 (NSThread.m:742)
7 libsystem_pthread.dylib 0x00000001f0e00220 _pthread_start + 148 (pthread.c:890)
8 libsystem_pthread.dylib 0x00000001f0e0962c thread_start + 8
Thread 9 name:
Thread 9:
0 libsystem_kernel.dylib 0x00000001b63474ec select$DARWIN_EXTSN + 8
1 CoreFoundation 0x00000001808068a8 __CFSocketManager + 648 (CFSocket.c:1343)
2 libsystem_pthread.dylib 0x00000001f0e00220 _pthread_start + 148 (pthread.c:890)
3 libsystem_pthread.dylib 0x00000001f0e0962c thread_start + 8
Thread 10 name:
Thread 10:
0 libsystem_kernel.dylib 0x00000001b6321b78 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001b6320edc mach_msg + 76 (mach_msg.c:119)
2 CoreFoundation 0x00000001807c94c8 __CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2641)
3 CoreFoundation 0x00000001807c8a60 __CFRunLoopRun + 1212 (CFRunLoop.c:2979)
4 CoreFoundation 0x00000001807d631c CFRunLoopRunSpecific + 600 (CFRunLoop.c:3247)
5 Foundation 0x0000000181f7b018 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 232 (NSRunLoop.m:377)
6 CocoaAsyncSocket 0x000000010323e0b4 +[GCDAsyncSocket cfstreamThread:] + 376 (GCDAsyncSocket.m:7655)
7 Foundation 0x0000000181fe5a04 __NSThread__start__ + 864 (NSThread.m:742)
8 libsystem_pthread.dylib 0x00000001f0e00220 _pthread_start + 148 (pthread.c:890)
9 libsystem_pthread.dylib 0x00000001f0e0962c thread_start + 8
Thread 11:
0 libsystem_pthread.dylib 0x00000001f0e09618 start_wqthread + 0
Thread 12:
0 libsystem_pthread.dylib 0x00000001f0e09618 start_wqthread + 0
Thread 13:
0 libsystem_pthread.dylib 0x00000001f0e09618 start_wqthread + 0
Thread 14 name:
Thread 14:
0 libsystem_kernel.dylib 0x00000001b6349068 kevent_id + 8
1 libdispatch.dylib 0x000000018047774c _dispatch_kq_poll + 220 (event_kevent.c:750)
2 libdispatch.dylib 0x0000000180478210 _dispatch_event_loop_wait_for_ownership + 436 (event_kevent.c:2203)
3 libdispatch.dylib 0x0000000180463eb0 __DISPATCH_WAIT_FOR_QUEUE__ + 364 (queue.c:1670)
4 libdispatch.dylib 0x0000000180463a38 _dispatch_sync_f_slow + 164 (queue.c:1751)
5 CoreData 0x0000000187b8b77c -[NSManagedObjectContext performBlockAndWait:] + 268 (NSManagedObjectContext.m:4015)
6 ChatCore 0x00000001043d8d5c specialized NSManagedObjectContext.fetch<A>(where:sortedBy:) + 468 (NSManagedObjectContext+ChatCore.swift:112)
7 ChatCore 0x0000000104363cd0 CoreDataMessageStorage.fetchSentUnreadMessages(forConversationWith:currentUser:) + 792 (CoreDataMessageStorage.swift:663)
8 ChatCore 0x00000001043ce87c ChatMessageStore.fetchSentUnreadMessages(forConversationWith:currentUser:) + 32 (ChatMessageStore.swift:158)
9 ChatCore 0x00000001043ce87c closure #3 in XMPPConversationHistoryModule.xmppMessageArchiveModule(_:didFinishArchiveFor:) + 64 (XMPPConversationHistoryModule.swift:137)
10 ChatCore 0x00000001043ce87c thunk for #callee_guaranteed (#guaranteed XMPPJID) -> (#owned [Message]?, #error #owned Error) + 64 (<compiler-generated>:0)
11 ChatCore 0x00000001043ce87c specialized Optional.flatMap<A>(_:) + 64 (<compiler-generated>:0)
12 ChatCore 0x00000001043ce87c specialized XMPPConversationHistoryModule.xmppMessageArchiveModule(_:didFinishArchiveFor:) + 744 (XMPPConversationHistoryModule.swift:136)
13 ChatCore 0x0000000104372e80 XMPPConversationHistoryModule.xmppMessageArchiveModule(_:didFinishArchiveFor:) + 12 (<compiler-generated>:124)
14 ChatCore 0x0000000104372e80 protocol witness for XMPPMessageArchiveModuleDelegate.xmppMessageArchiveModule(_:didFinishArchiveFor:) in conformance XMPPConversationHistoryModule + 12 (XMPPMessageArchiveModule.swift:0)
15 ChatCore 0x0000000104372e80 specialized XMPPMessageArchiveModule.xmppMessageArchiveManagement(_:didFinishReceivingMessagesWith:for:) + 356
16 ChatCore 0x0000000104371594 XMPPMessageArchiveModule.xmppMessageArchiveManagement(_:didFinishReceivingMessagesWith:for:) + 16 (<compiler-generated>:0)
17 ChatCore 0x0000000104371594 #objc XMPPMessageArchiveModule.xmppMessageArchiveManagement(_:didFinishReceivingMessagesWith:for:) + 96
18 CoreFoundation 0x00000001807c5e04 __invoking___ + 148
19 CoreFoundation 0x000000018076cc3c -[NSInvocation invoke] + 376 (NSForwarding.m:3448)
20 CoreFoundation 0x000000018076c690 -[NSInvocation invokeWithTarget:] + 80 (NSForwarding.m:3549)
21 XMPPFramework 0x0000000104053fac __42-[GCDMulticastDelegate forwardInvocation:]_block_invoke + 40 (GCDMulticastDelegate.m:281)
22 libdispatch.dylib 0x0000000180451c6c _dispatch_call_block_and_release + 32 (init.c:1510)
23 libdispatch.dylib 0x0000000180453a78 _dispatch_client_callout + 20 (object.m:560)
24 libdispatch.dylib 0x000000018045b8bc _dispatch_lane_serial_drain + 692 (inline_internal.h:2603)
25 libdispatch.dylib 0x000000018045c4c4 _dispatch_lane_invoke + 412 (queue.c:3926)
26 libdispatch.dylib 0x00000001804678f4 _dispatch_workloop_worker_thread + 780 (queue.c:6720)
27 libsystem_pthread.dylib 0x00000001f0e02058 _pthread_wqthread + 288 (pthread.c:2496)
28 libsystem_pthread.dylib 0x00000001f0e09620 start_wqthread + 8
Thread 15:
0 libsystem_pthread.dylib 0x00000001f0e09618 start_wqthread + 0
Thread 16:
0 libsystem_pthread.dylib 0x00000001f0e09618 start_wqthread + 0
EOF
Its because this crash is possibly a side effect of your view configuration and happens in an Apple framework, noticed you are also using a beta version, try running the same code in ios 14.6, if you can reproduce the crash with the device connected you can enable the Exception breakpoint in Xcode to isolate the line that triggered the chain of events.

crash when app From background to foreground

crash when applicationWillEnterForeground
tried to use zombie objects,but it not work
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x6565656565656569
VM Region Info: 0x6565656565656569 is not in any region. Bytes after previous region: 7306357445371454826
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
MALLOC_NANO 0000000280000000-00000002a0000000 [512.0M] rw-/rwx SM=PRV
--->
UNUSED SPACE AT END
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 QuartzCore 0x00000001addf8954 CA::Layer::sublayers+ 1411412 () + 52
1 UIKitCore 0x00000001ab8eea9c _makeSubTreePerformSelector + 228
2 UIKitCore 0x00000001ab8eea9c _makeSubTreePerformSelector + 228
3 UIKitCore 0x00000001ab4ada0c -[UIWindow dealloc] + 144
4 libobjc.A.dylib 0x00000001a71aa3a4 _object_remove_assocations + 352
5 libobjc.A.dylib 0x00000001a71a6d20 objc_destructInstance + 100
6 libobjc.A.dylib 0x00000001a71addb8 _objc_rootDealloc + 48
7 QuartzCore 0x00000001adde9dc4 -[CALayer dealloc] + 416
8 QuartzCore 0x00000001add730bc CA::release_objects+ 864444 (X::List<void const*>*) + 32
9 QuartzCore 0x00000001ade00520 CA::Layer::free_transaction+ 1443104 (CA::Transaction*) + 412
10 QuartzCore 0x00000001add73990 CA::Transaction::commit+ 866704 () + 932
11 UIKitCore 0x00000001ab4a25d4 _afterCACommitHandler + 140
12 CoreFoundation 0x00000001a73e9c48 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
13 CoreFoundation 0x00000001a73e4b34 __CFRunLoopDoObservers + 416
14 CoreFoundation 0x00000001a73e5100 __CFRunLoopRun + 1308
15 CoreFoundation 0x00000001a73e48bc CFRunLoopRunSpecific + 464
16 GraphicsServices 0x00000001b124f328 GSEventRunModal + 104
17 UIKitCore 0x00000001ab4796d4 UIApplicationMain + 1936
18 FuturesApp 0x0000000104cde230 main + 6087216 (main.m:14)
19 libdyld.dylib 0x00000001a726f460 start + 4
Thread 1 name: com.apple.uikit.eventfetch-thread
Thread 1:
0 libsystem_kernel.dylib 0x00000001a72435f4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001a7242a60 mach_msg + 72
2 CoreFoundation 0x00000001a73ea068 __CFRunLoopServiceMachPort + 216
3 CoreFoundation 0x00000001a73e5188 __CFRunLoopRun + 1444
4 CoreFoundation 0x00000001a73e48bc CFRunLoopRunSpecific + 464
5 Foundation 0x00000001a7724994 -[NSRunLoop+ 31124 (NSRunLoop) runMode:beforeDate:] + 228
6 Foundation 0x00000001a7724874 -[NSRunLoop+ 30836 (NSRunLoop) runUntilDate:] + 88
7 UIKitCore 0x00000001ab51149c -[UIEventFetcher threadMain] + 152
8 Foundation 0x00000001a78550b0 __NSThread__start__ + 848
9 libsystem_pthread.dylib 0x00000001a71891ec _pthread_start + 124
10 libsystem_pthread.dylib 0x00000001a718caec thread_start + 8
Thread 2 name: JavaScriptCore bmalloc scavenger
Thread 2:
0 libsystem_kernel.dylib 0x00000001a7264c8c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001a71864e0 _pthread_cond_wait$VARIANT$armv81 + 676
2 libc++.1.dylib 0x00000001a72b67a8 std::__1::condition_variable::wait+ 59304 (std::__1::unique_lock<std::__1::mutex>&) + 24
3 JavaScriptCore 0x00000001b60413fc void std::__1::condition_variable_any::wait<std::__1::unique_lock<bmalloc::Mutex> >+ 558076 (std::__1::unique_lock<bmalloc::Mutex>&) + 108
4 JavaScriptCore 0x00000001b6044dcc bmalloc::Scavenger::threadRunLoop+ 572876 () + 200
5 JavaScriptCore 0x00000001b6044ab4 bmalloc::Scavenger::Scavenger+ 572084 (std::__1::lock_guard<bmalloc::Mutex>&) + 0
6 JavaScriptCore 0x00000001b6045dc0 std::__1::__thread_specific_ptr<std::__1::__thread_struct>::set_pointer+ 576960 (std::__1::__thread_struct*) + 0
7 libsystem_pthread.dylib 0x00000001a71891ec _pthread_start + 124
8 libsystem_pthread.dylib 0x00000001a718caec thread_start + 8
Thread 3 name: Dispatch queue: com.apple.root.default-qos
Thread 3:
0 libsystem_kernel.dylib 0x00000001a7264cdc __psynch_mutexwait + 8
1 libsystem_pthread.dylib 0x00000001a71871a0 _pthread_mutex_firstfit_lock_wait + 92
2 libsystem_pthread.dylib 0x00000001a7187110 _pthread_mutex_firstfit_lock_slow$VARIANT$armv81 + 260
3 Foundation 0x00000001a773cdf4 -[NSRecursiveLock lock] + 24
4 FuturesApp 0x00000001056dae30 __24-[TKHeartChecker start:]_block_invoke.91 + 36
5 libdispatch.dylib 0x00000001a7139610 _dispatch_call_block_and_release + 24
6 libdispatch.dylib 0x00000001a713a184 _dispatch_client_callout + 16
7 libdispatch.dylib 0x00000001a7113b7c _dispatch_queue_override_invoke + 668
8 libdispatch.dylib 0x00000001a7120110 _dispatch_root_queue_drain + 344
9 libdispatch.dylib 0x00000001a71208b0 _dispatch_worker_thread2 + 116
10 libsystem_pthread.dylib 0x00000001a7189f64 _pthread_wqthread + 212
11 libsystem_pthread.dylib 0x00000001a718cae0 start_wqthread +
8enter image description here

ios app crashes for only one customer

One of my customers reports consistent crashing, about 75% of the times he performs a particular operation in the app. That operation involves some image processing. He's using an iPhone 4S (the same model I used when developing the app) and iOS 7.1.1. No other customer has reported this issue. He has deleted the app and reinstalled from the App Store. He's using the app's default settings. I cannot recreate the issue.
Thread 8 crashes, but does not show any lines in my code ("gCard"). The issue appears to be "doesNotRecognizeSelector:" in a thread that does not show any lines in my code. I don't understand this. (The app uses brad Larson's GPUImage but I don't know if that's a factor.)
I need help to understand the dump and suggestions on my next step.
{"name":"gCard","bug_type":"109","os_version":"iPhone OS 7.1.1 (11D201)","bundleID":"com.PFM3.Ghost-Card","version":"1.2.1 (1.2.1)","app_name":"gCard"}
Incident Identifier: E85F86F8-0F39-4E55-9EAD-48461F1EF955
CrashReporter Key: 64c031d9f1572910e1137bebea2b9be924396928
Hardware Model: iPhone4,1
Process: gCard [136]
Path: /var/mobile/Applications/4E5D5D22-0202-47DE-B8B2-B9C9D90825B2/gCard.app/gCard
Identifier: com.PFM3.Ghost-Card
Version: 1.2.1 (1.2.1)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2014-06-23 00:03:18.728 -0700
OS Version: iOS 7.1.1 (11D201)
Report Version: 104
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x000000000000defe
Triggered by Thread: 8
Last Exception Backtrace:
0 CoreFoundation 0x2ec27fce __exceptionPreprocess + 126
1 libobjc.A.dylib 0x394a0cca objc_exception_throw + 34
2 CoreFoundation 0x2ec2b962 -[NSObject(NSObject) doesNotRecognizeSelector:] + 198
3 CoreFoundation 0x2ec2a24e ___forwarding___ + 702
4 CoreFoundation 0x2eb797b4 _CF_forwarding_prep_0 + 20
5 UIFoundation 0x36865a20 __NSStringDrawingEngine + 12200
6 UIFoundation 0x368629a2 -[NSString(NSExtendedStringDrawing) drawWithRect:options:attributes:context:] + 146
7 UIKit 0x3145cd1c -[UILabel _drawTextInRect:baselineCalculationOnly:] + 4220
8 UIKit 0x314c3004 -[UILabel drawTextInRect:] + 496
9 UIKit 0x314c2e06 -[UILabel drawRect:] + 74
10 UIKit 0x314c2da0 -[UIView(CALayerDelegate) drawLayer:inContext:] + 368
11 QuartzCore 0x310f02bc -[CALayer drawInContext:] + 96
12 QuartzCore 0x310d9e3a CABackingStoreUpdate_ + 1850
13 QuartzCore 0x311b4d68 ___ZN2CA5Layer8display_Ev_block_invoke + 48
14 QuartzCore 0x310d96ee x_blame_allocations + 78
15 QuartzCore 0x310d9396 CA::Layer::display_() + 1102
16 QuartzCore 0x310bd038 CA::Layer::display_if_needed(CA::Transaction*) + 204
17 QuartzCore 0x310bccd0 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 20
18 QuartzCore 0x310bc6da CA::Context::commit_transaction(CA::Transaction*) + 226
19 QuartzCore 0x310bc4ea CA::Transaction::commit() + 310
20 QuartzCore 0x310e9a7e CA::Transaction::release_thread(void*) + 158
21 libsystem_pthread.dylib 0x39acb688 _pthread_tsd_cleanup + 160
22 libsystem_pthread.dylib 0x39acb406 _pthread_exit + 82
23 libsystem_pthread.dylib 0x39acabe2 _pthread_wqthread + 314
24 libsystem_pthread.dylib 0x39acaa94 start_wqthread + 4
Thread 0:
0 libsystem_kernel.dylib 0x39a50a58 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x39a50854 mach_msg + 44
2 CoreFoundation 0x2ebf2896 __CFRunLoopServiceMachPort + 150
3 CoreFoundation 0x2ebf1002 __CFRunLoopRun + 850
4 CoreFoundation 0x2eb5bf0a CFRunLoopRunSpecific + 518
5 CoreFoundation 0x2eb5bcee CFRunLoopRunInMode + 102
6 GraphicsServices 0x33ab465e GSEventRunModal + 134
7 UIKit 0x314a7168 UIApplicationMain + 1132
8 gCard 0x00089e12 main (main.m:16)
9 libdyld.dylib 0x399adab4 start + 0
Thread 1:
0 libsystem_kernel.dylib 0x39a50808 kevent64 + 24
1 libdispatch.dylib 0x39992078 _dispatch_mgr_invoke + 228
2 libdispatch.dylib 0x39991dfe _dispatch_mgr_thread$VARIANT$mp + 34
Thread 2:
0 libsystem_kernel.dylib 0x39a50a58 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x39a50854 mach_msg + 44
2 CoreFoundation 0x2ebf2896 __CFRunLoopServiceMachPort + 150
3 CoreFoundation 0x2ebf0fbc __CFRunLoopRun + 780
4 CoreFoundation 0x2eb5bf0a CFRunLoopRunSpecific + 518
5 CoreFoundation 0x2eb5bcee CFRunLoopRunInMode + 102
6 Foundation 0x2f54e1e6 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 250
7 Foundation 0x2f59f09c -[NSRunLoop(NSRunLoop) run] + 76
8 gCard 0x000cd8d4 +[AFURLConnectionOperation networkRequestThreadEntryPoint:] (AFURLConnectionOperation.m:151)
9 Foundation 0x2f610a5a __NSThread__main__ + 1058
10 libsystem_pthread.dylib 0x39acc916 _pthread_body + 138
11 libsystem_pthread.dylib 0x39acc886 _pthread_start + 98
12 libsystem_pthread.dylib 0x39acaaa0 thread_start + 4
Thread 3:
0 libsystem_kernel.dylib 0x39a50a58 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x39a50854 mach_msg + 44
2 CoreFoundation 0x2ebf2896 __CFRunLoopServiceMachPort + 150
3 CoreFoundation 0x2ebf0fbc __CFRunLoopRun + 780
4 CoreFoundation 0x2eb5bf0a CFRunLoopRunSpecific + 518
5 CoreFoundation 0x2eb9f9fe CFRunLoopRun + 94
6 CoreMotion 0x2f2193a8 ___lldb_unnamed_function1423$$CoreMotion + 724
7 libsystem_pthread.dylib 0x39acc916 _pthread_body + 138
8 libsystem_pthread.dylib 0x39acc886 _pthread_start + 98
9 libsystem_pthread.dylib 0x39acaaa0 thread_start + 4
Thread 4 name: com.apple.NSURLConnectionLoader
Thread 4:
0 libsystem_kernel.dylib 0x39a50a58 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x39a50854 mach_msg + 44
2 CoreFoundation 0x2ebf2896 __CFRunLoopServiceMachPort + 150
3 CoreFoundation 0x2ebf0fbc __CFRunLoopRun + 780
4 CoreFoundation 0x2eb5bf0a CFRunLoopRunSpecific + 518
5 CoreFoundation 0x2eb5bcee CFRunLoopRunInMode + 102
6 Foundation 0x2f59b082 +[NSURLConnection(Loader) _resourceLoadLoop:] + 314
7 Foundation 0x2f610a5a __NSThread__main__ + 1058
8 libsystem_pthread.dylib 0x39acc916 _pthread_body + 138
9 libsystem_pthread.dylib 0x39acc886 _pthread_start + 98
10 libsystem_pthread.dylib 0x39acaaa0 thread_start + 4
Thread 5 name: com.apple.CFSocket.private
Thread 5:
0 libsystem_kernel.dylib 0x39a63434 __select + 20
1 CoreFoundation 0x2ebf6758 __CFSocketManager + 480
2 libsystem_pthread.dylib 0x39acc916 _pthread_body + 138
3 libsystem_pthread.dylib 0x39acc886 _pthread_start + 98
4 libsystem_pthread.dylib 0x39acaaa0 thread_start + 4
Thread 6:
0 libsystem_kernel.dylib 0x39a63c70 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x39acabda _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x39acaa94 start_wqthread + 4
Thread 7:
0 libsystem_kernel.dylib 0x39a63c70 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x39acabda _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x39acaa94 start_wqthread + 4
Thread 8 Crashed:
0 libsystem_c.dylib 0x39a1404e __abort + 102
1 libsystem_c.dylib 0x39a13fe4 abort + 84
2 libc++abi.dylib 0x38d42cd2 abort_message + 70
3 libc++abi.dylib 0x38d5b6e0 default_terminate_handler() + 248
4 libobjc.A.dylib 0x394a0f62 _objc_terminate() + 190
5 libc++abi.dylib 0x38d591c4 std::__terminate(void (*)()) + 76
6 libc++abi.dylib 0x38d58a18 __cxa_throw + 112
7 libobjc.A.dylib 0x394a0d9e objc_exception_throw + 246
8 CoreFoundation 0x2ec2b962 -[NSObject(NSObject) doesNotRecognizeSelector:] + 198
9 CoreFoundation 0x2ec2a24e ___forwarding___ + 702
10 CoreFoundation 0x2eb797b4 _CF_forwarding_prep_0 + 20
11 UIFoundation 0x36865a20 __NSStringDrawingEngine + 12200
12 UIFoundation 0x368629a2 -[NSString(NSExtendedStringDrawing) drawWithRect:options:attributes:context:] + 146
13 UIKit 0x3145cd1c -[UILabel _drawTextInRect:baselineCalculationOnly:] + 4220
14 UIKit 0x314c3004 -[UILabel drawTextInRect:] + 496
15 UIKit 0x314c2e06 -[UILabel drawRect:] + 74
16 UIKit 0x314c2da0 -[UIView(CALayerDelegate) drawLayer:inContext:] + 368
17 QuartzCore 0x310f02bc -[CALayer drawInContext:] + 96
18 QuartzCore 0x310d9e3c CABackingStoreUpdate_ + 1852
19 QuartzCore 0x311b4d68 ___ZN2CA5Layer8display_Ev_block_invoke + 48
20 QuartzCore 0x310d96f0 x_blame_allocations + 80
21 QuartzCore 0x310d9396 CA::Layer::display_() + 1102
22 QuartzCore 0x310bd038 CA::Layer::display_if_needed(CA::Transaction*) + 204
23 QuartzCore 0x310bccd0 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 20
24 QuartzCore 0x310bc6da CA::Context::commit_transaction(CA::Transaction*) + 226
25 QuartzCore 0x310bc4ea CA::Transaction::commit() + 310
26 QuartzCore 0x310e9a7e CA::Transaction::release_thread(void*) + 158
27 libsystem_pthread.dylib 0x39acb68a _pthread_tsd_cleanup + 162
28 libsystem_pthread.dylib 0x39acb406 _pthread_exit + 82
29 libsystem_pthread.dylib 0x39acabe2 _pthread_wqthread + 314
30 libsystem_pthread.dylib 0x39acaa94 start_wqthread + 4
Thread 8 crashed with ARM Thread State (32-bit):
r0: 0x00000000 r1: 0x00000000 r2: 0x00000000 r3: 0x00000001
r4: 0x06277c84 r5: 0xffffffff r6: 0x00000000 r7: 0x06277c94
r8: 0x1767ed40 r9: 0x39ac7f69 r10: 0x368b94c8 r11: 0x00000000
ip: 0x00000030 sp: 0x06277c7c lr: 0x39a1404f pc: 0x39a1404e
cpsr: 0x40000030
You should/must do all( or nearly all) ui specific operations on the main thread. Possibly you alter the view hierarchy in a block performed on another block.

Game Center causing app crash

My app is crashing when Game Center is logged in, all is fine through the simulator and in sandbox mode on all devices. I have had some negative feedback regarding the crashes so have started to look through it. I thought it was solved so got the update out, but I was wrong.
I have this crash report from my phone but am some what baffled.
Version: 1.4 (1.4)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2014-02-22 09:18:36.959 +0000
OS Version: iOS 7.0.4 (11B554a)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x311eff46 __exceptionPreprocess + 126
1 libobjc.A.dylib 0x3b57f6aa objc_exception_throw + 34
2 CoreFoundation 0x311f38e2 -[NSObject(NSObject) doesNotRecognizeSelector:] + 198
3 CoreFoundation 0x311f21c6 ___forwarding___ + 702
4 CoreFoundation 0x311414d4 __forwarding_prep_0___ + 20
5 CommanderCool 0x000a13a2 0x67000 + 238498
6 CommanderCool 0x00098a30 0x67000 + 203312
7 CommanderCool 0x00098688 0x67000 + 202376
8 CommanderCool 0x000886a6 0x67000 + 136870
9 CommanderCool 0x0008a21a 0x67000 + 143898
10 CommanderCool 0x0009f50a 0x67000 + 230666
11 CommanderCool 0x00082316 0x67000 + 111382
12 CommanderCool 0x0007fa6e 0x67000 + 100974
13 CommanderCool 0x0008198c 0x67000 + 108940
14 CommanderCool 0x00087160 0x67000 + 131424
15 CommanderCool 0x000ce93e 0x67000 + 424254
16 CommanderCool 0x000e000a 0x67000 + 495626
17 QuartzCore 0x336399ca CA::Display::DisplayLinkItem::dispatch() + 94
18 QuartzCore 0x33639774 CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 340
19 IOMobileFramebuffer 0x3621e768 IOMobileFramebufferVsyncNotifyFunc + 100
20 IOKit 0x31ed1a70 IODispatchCalloutFromCFMessage + 244
21 CoreFoundation 0x311afe1c __CFMachPortPerform + 132
22 CoreFoundation 0x311ba9da __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 30
23 CoreFoundation 0x311ba976 __CFRunLoopDoSource1 + 342
24 CoreFoundation 0x311b914a __CFRunLoopRun + 1394
25 CoreFoundation 0x31123c22 CFRunLoopRunSpecific + 518
26 CoreFoundation 0x31123a06 CFRunLoopRunInMode + 102
27 GraphicsServices 0x35e0227e GSEventRunModal + 134
28 UIKit 0x339c7044 UIApplicationMain + 1132
29 CommanderCool 0x0009d31e 0x67000 + 221982
30 CommanderCool 0x0006ef24 0x67000 + 32548
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x3bb3e1fc __pthread_kill + 8
1 libsystem_pthread.dylib 0x3bba7a2e pthread_kill + 54
2 libsystem_c.dylib 0x3baeeff8 abort + 72
3 libc++abi.dylib 0x3ae1dcd2 abort_message + 70
4 libc++abi.dylib 0x3ae366e0 default_terminate_handler() + 248
5 libobjc.A.dylib 0x3b57f91e _objc_terminate() + 190
6 libc++abi.dylib 0x3ae341c4 std::__terminate(void (*)()) + 76
7 libc++abi.dylib 0x3ae33d28 __cxa_rethrow + 96
8 libobjc.A.dylib 0x3b57f7f2 objc_exception_rethrow + 38
9 CoreFoundation 0x31123c98 CFRunLoopRunSpecific + 636
10 CoreFoundation 0x31123a06 CFRunLoopRunInMode + 102
11 GraphicsServices 0x35e0227e GSEventRunModal + 134
12 UIKit 0x339c7044 UIApplicationMain + 1132
13 CommanderCool 0x0009d31e 0x67000 + 221982
14 CommanderCool 0x0006ef24 0x67000 + 32548
Thread 1:
0 libsystem_kernel.dylib 0x3bb2b83c kevent64 + 24
1 libdispatch.dylib 0x3ba76e08 _dispatch_mgr_invoke + 228
2 libdispatch.dylib 0x3ba6639e _dispatch_mgr_thread$VARIANT$up + 34
Thread 2:
0 libsystem_kernel.dylib 0x3bb3ec7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3bba4dc6 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x3bba4c80 start_wqthread + 4
Thread 3:
0 libsystem_kernel.dylib 0x3bb3ec7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3bba4dc6 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x3bba4c80 start_wqthread + 4
Thread 4:
0 libsystem_kernel.dylib 0x3bb2ba8c mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3bb2b888 mach_msg + 44
2 CoreFoundation 0x311ba7be __CFRunLoopServiceMachPort + 150
3 CoreFoundation 0x311b8ee4 __CFRunLoopRun + 780
4 CoreFoundation 0x31123c22 CFRunLoopRunSpecific + 518
5 CoreFoundation 0x31123a06 CFRunLoopRunInMode + 102
6 libAVFAudio.dylib 0x301a6584 GenericRunLoopThread::Entry(void*) + 124
7 libAVFAudio.dylib 0x3019a99c CAPThread::Entry(CAPThread*) + 176
8 libsystem_pthread.dylib 0x3bba6c1a _pthread_body + 138
9 libsystem_pthread.dylib 0x3bba6b8a _pthread_start + 98
10 libsystem_pthread.dylib 0x3bba4c8c thread_start + 4
Thread 5:
0 libsystem_kernel.dylib 0x3bb2ba8c mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3bb2b888 mach_msg + 44
2 AudioToolbox 0x30ba5116 AURemoteIO::IOThread::Run() + 102
3 AudioToolbox 0x30ba8348 AURemoteIO::IOThread::Entry(void*) + 4
4 AudioToolbox 0x30ae5ba8 CAPThread::Entry(CAPThread*) + 208
5 libsystem_pthread.dylib 0x3bba6c1a _pthread_body + 138
6 libsystem_pthread.dylib 0x3bba6b8a _pthread_start + 98
7 libsystem_pthread.dylib 0x3bba4c8c thread_start + 4
Thread 6:
0 libsystem_kernel.dylib 0x3bb2ba8c mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3bb2b888 mach_msg + 44
2 CoreFoundation 0x311ba7be __CFRunLoopServiceMachPort + 150
3 CoreFoundation 0x311b8ee4 __CFRunLoopRun + 780
4 CoreFoundation 0x31123c22 CFRunLoopRunSpecific + 518
5 CoreFoundation 0x31123a06 CFRunLoopRunInMode + 102
6 AudioToolbox 0x30aff754 GenericRunLoopThread::Entry(void*) + 124
7 AudioToolbox 0x30ae5ba8 CAPThread::Entry(CAPThread*) + 208
8 libsystem_pthread.dylib 0x3bba6c1a _pthread_body + 138
9 libsystem_pthread.dylib 0x3bba6b8a _pthread_start + 98
10 libsystem_pthread.dylib 0x3bba4c8c thread_start + 4
Thread 7 name: com.apple.NSURLConnectionLoader
Thread 7:
0 libsystem_kernel.dylib 0x3bb2ba8c mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3bb2b888 mach_msg + 44
2 CoreFoundation 0x311ba7be __CFRunLoopServiceMachPort + 150
3 CoreFoundation 0x311b8ee4 __CFRunLoopRun + 780
4 CoreFoundation 0x31123c22 CFRunLoopRunSpecific + 518
5 CoreFoundation 0x31123a06 CFRunLoopRunInMode + 102
6 Foundation 0x31b5e2f2 +[NSURLConnection(Loader) _resourceLoadLoop:] + 314
7 Foundation 0x31bd3c82 __NSThread__main__ + 1058
8 libsystem_pthread.dylib 0x3bba6c1a _pthread_body + 138
9 libsystem_pthread.dylib 0x3bba6b8a _pthread_start + 98
10 libsystem_pthread.dylib 0x3bba4c8c thread_start + 4
Thread 8 name: com.apple.CFSocket.private
Thread 8:
0 libsystem_kernel.dylib 0x3bb3e440 select$DARWIN_EXTSN + 20
1 CoreFoundation 0x311be680 __CFSocketManager + 480
2 libsystem_pthread.dylib 0x3bba6c1a _pthread_body + 138
3 libsystem_pthread.dylib 0x3bba6b8a _pthread_start + 98
4 libsystem_pthread.dylib 0x3bba4c8c thread_start + 4
Thread 0 crashed with ARM Thread State (32-bit):
r0: 0x00000000 r1: 0x00000000 r2: 0x00000000 r3: 0x00002060
r4: 0x00000006 r5: 0x3d77b18c r6: 0x00000000 r7: 0x27d9c594
r8: 0x1550f940 r9: 0x00000001 r10: 0x0022fc14 r11: 0x00000000
ip: 0x00000148 sp: 0x27d9c588 lr: 0x3bba7a33 pc: 0x3bb3e1fc
cpsr: 0x00000010
Binary Images:
Left out images as file was too big.
I'm using DDGameKitHelper and GKAchievementNotification to handle the game center notifications.

Deciphering a Crash Report - iOS - xCode

I am trying to replicate a bug in my app which is happening for users occasionally. I have the below crash report. Am I right in thinking the app is crashing due to an NSDictionary not having a value for a specific key ? And is there anything else I can deduce from the report ?
Date/Time: 2013-09-19 12:12:54.627 +0800
OS Version: iOS 6.1.3 (10B329)
Report Version: 104
Exception Type: EXC_CRASH (SIGTRAP)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x31bbd3e2 __exceptionPreprocess + 158
1 libobjc.A.dylib 0x39a5795e objc_exception_throw + 26
2 CoreFoundation 0x31b0e876 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 130
3 CoreFoundation 0x31b0e732 +[NSDictionary dictionaryWithObject:forKey:] + 46
4 MyApp 0x00103f34 -[WebViewJavascriptBridge _sendData:responseCallback:handlerName:] (WebViewJavascriptBridge.m:95)
5 MyApp 0x00103d2a -[WebViewJavascriptBridge callHandler:data:responseCallback:] (WebViewJavascriptBridge.m:67)
6 MyApp 0x00103cec -[WebViewJavascriptBridge callHandler:data:] (WebViewJavascriptBridge.m:63)
7 MyApp 0x000c3be2 -[ContractViewController updateHTML] (ContractViewController.m:293)
8 MyApp 0x000c2fec -[ContractViewController startEditableContract] (ContractViewController.m:199)
9 MyApp 0x000c2bc2 -[ContractViewController viewDidLoad] (ContractViewController.m:192)
10 UIKit 0x339eb574 -[UIViewController loadViewIfRequired] + 360
11 UIKit 0x33a401f2 -[UIViewController contentScrollView] + 22
12 UIKit 0x33a40138 -[UINavigationController _computeAndApplyScrollContentInsetDeltaForViewController:] + 24
13 UIKit 0x33a4001c -[UINavigationController _layoutViewController:] + 28
14 UIKit 0x33a3ff48 -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 268
15 UIKit 0x33a3f694 -[UINavigationController _startTransition:fromViewController:toViewController:] + 60
16 UIKit 0x33a3f57c -[UINavigationController _startDeferredTransitionIfNeeded:] + 320
17 UIKit 0x33a2db56 -[UINavigationController pushViewController:transition:forceImmediate:] + 854
18 UIKit 0x33a2d7f6 -[UINavigationController pushViewController:animated:] + 34
19 MyApp 0x000b91dc -[ExhibitorDetailsViewController contractLoadButton:] (ExhibitorDetailsViewController.m:680)
20 UIKit 0x33ab7082 -[UIApplication sendAction:to:from:forEvent:] + 66
21 UIKit 0x33ab7036 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 26
22 UIKit 0x33ab7010 -[UIControl sendAction:to:forEvent:] + 40
23 UIKit 0x33ab68c6 -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 498
24 UIKit 0x33ab6db4 -[UIControl touchesEnded:withEvent:] + 484
25 UIKit 0x339df5f4 -[UIWindow _sendTouchesForEvent:] + 520
26 UIKit 0x339cc8dc -[UIApplication sendEvent:] + 376
27 UIKit 0x339cc1ea _UIApplicationHandleEvent + 6194
28 GraphicsServices 0x356c05f2 _PurpleEventCallback + 586
29 GraphicsServices 0x356c0222 PurpleEventCallback + 30
30 CoreFoundation 0x31b923e2 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 30
31 CoreFoundation 0x31b92386 __CFRunLoopDoSource1 + 134
32 CoreFoundation 0x31b9120a __CFRunLoopRun + 1378
33 CoreFoundation 0x31b04238 CFRunLoopRunSpecific + 352
34 CoreFoundation 0x31b040c4 CFRunLoopRunInMode + 100
35 GraphicsServices 0x356bf336 GSEventRunModal + 70
36 UIKit 0x33a202b4 UIApplicationMain + 1116
37 MyApp 0x00095e02 main (main.m:15)
38 libdyld.dylib 0x39e84b1c start + 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x39f4a838 __kill + 8
1 MyApp 0x00107ed0 TFHandleExceptions + 988
2 CoreFoundation 0x31bbd6cc __handleUncaughtException + 624
3 libobjc.A.dylib 0x39a57a46 _objc_terminate() + 126
4 libc++abi.dylib 0x394a4118 safe_handler_caller(void (*)()) + 76
5 libc++abi.dylib 0x394a41b0 std::terminate() + 16
6 libc++abi.dylib 0x394a5626 __cxa_rethrow + 90
7 libobjc.A.dylib 0x39a579b0 objc_exception_rethrow + 8
8 CoreFoundation 0x31b0429c CFRunLoopRunSpecific + 452
9 CoreFoundation 0x31b040c4 CFRunLoopRunInMode + 100
10 GraphicsServices 0x356bf336 GSEventRunModal + 70
11 UIKit 0x33a202b4 UIApplicationMain + 1116
12 MyApp 0x00095e02 main (main.m:15)
13 libdyld.dylib 0x39e84b1c start + 0
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x39f3b5d0 kevent64 + 24
1 libdispatch.dylib 0x39e76d22 _dispatch_mgr_invoke + 806
2 libdispatch.dylib 0x39e72374 _dispatch_mgr_thread + 32
Thread 2 name: WebThread
Thread 2:
0 libsystem_kernel.dylib 0x39f4b0fc __psynch_mutexwait + 24
1 libsystem_c.dylib 0x39e93e66 pthread_mutex_lock + 390
2 WebCore 0x37aea2b8 _WebTryThreadLock(bool) + 184
3 WebCore 0x37aea1e8 WebRunLoopLock(__CFRunLoopObserver*, unsigned long, void*) + 40
4 CoreFoundation 0x31b9293e __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 18
5 CoreFoundation 0x31b90c34 __CFRunLoopDoObservers + 272
6 CoreFoundation 0x31b91076 __CFRunLoopRun + 974
7 CoreFoundation 0x31b04238 CFRunLoopRunSpecific + 352
8 CoreFoundation 0x31b040c4 CFRunLoopRunInMode + 100
9 WebCore 0x37ae8390 RunWebThread(void*) + 440
10 libsystem_c.dylib 0x39ea40de _pthread_start + 306
11 libsystem_c.dylib 0x39ea3fa4 thread_start + 4
Thread 3 name: com.apple.NSURLConnectionLoader
Thread 3:
0 libsystem_kernel.dylib 0x39f3ae30 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x39f3afd0 mach_msg + 48
2 CoreFoundation 0x31b922b6 __CFRunLoopServiceMachPort + 126
3 CoreFoundation 0x31b9102c __CFRunLoopRun + 900
4 CoreFoundation 0x31b04238 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x31b040c4 CFRunLoopRunInMode + 100
6 Foundation 0x32451888 +[NSURLConnection(Loader) _resourceLoadLoop:] + 304
7 Foundation 0x324d522c __NSThread__main__ + 968
8 libsystem_c.dylib 0x39ea40de _pthread_start + 306
9 libsystem_c.dylib 0x39ea3fa4 thread_start + 4
Thread 4:
0 libsystem_kernel.dylib 0x39f3ae30 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x39f3afd0 mach_msg + 48
2 CoreFoundation 0x31b922b6 __CFRunLoopServiceMachPort + 126
3 CoreFoundation 0x31b9102c __CFRunLoopRun + 900
4 CoreFoundation 0x31b04238 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x31b040c4 CFRunLoopRunInMode + 100
6 Foundation 0x324285be -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 250
7 Foundation 0x324cbc40 -[NSRunLoop(NSRunLoop) run] + 76
8 MyApp 0x0011cf4c -[TFNetworkManager networkRunLoopThreadEntry] + 120
9 Foundation 0x324d522c __NSThread__main__ + 968
10 libsystem_c.dylib 0x39ea40de _pthread_start + 306
11 libsystem_c.dylib 0x39ea3fa4 thread_start + 4
Thread 5 name: com.apple.CFSocket.private
Thread 5:
0 libsystem_kernel.dylib 0x39f4b594 __select + 20
1 CoreFoundation 0x31b96474 __CFSocketManager + 676
2 libsystem_c.dylib 0x39ea40de _pthread_start + 306
3 libsystem_c.dylib 0x39ea3fa4 thread_start + 4
Thread 6 name: JavaScriptCore::BlockFree
Thread 6:
0 libsystem_kernel.dylib 0x39f4b08c __psynch_cvwait + 24
1 libsystem_c.dylib 0x39e9cafc _pthread_cond_wait + 644
2 libsystem_c.dylib 0x39e9c870 pthread_cond_timedwait + 40
3 JavaScriptCore 0x35ab5df6 WTF::ThreadCondition::timedWait(WTF::Mutex&, double) + 102
4 JavaScriptCore 0x35bc8532 JSC::BlockAllocator::blockFreeingThreadMain() + 78
5 JavaScriptCore 0x35bdb030 WTF::wtfThreadEntryPoint(void*) + 12
6 libsystem_c.dylib 0x39ea40de _pthread_start + 306
7 libsystem_c.dylib 0x39ea3fa4 thread_start + 4
Thread 7 name: JavaScriptCore::Marking
Thread 7:
0 libsystem_kernel.dylib 0x39f4b08c __psynch_cvwait + 24
1 libsystem_c.dylib 0x39e9cafc _pthread_cond_wait + 644
2 libsystem_c.dylib 0x39ea6cf8 pthread_cond_wait + 36
3 JavaScriptCore 0x35b5b6dc JSC::SlotVisitor::drainFromShared(JSC::SlotVisitor::SharedDrainMode) + 140
4 JavaScriptCore 0x35b5b620 JSC::MarkStackThreadSharedData::markingThreadMain() + 140
5 JavaScriptCore 0x35bdb030 WTF::wtfThreadEntryPoint(void*) + 12
6 libsystem_c.dylib 0x39ea40de _pthread_start + 306
7 libsystem_c.dylib 0x39ea3fa4 thread_start + 4
Thread 8:
0 libsystem_kernel.dylib 0x39f3ae30 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x39f3afd0 mach_msg + 48
2 CoreFoundation 0x31b922b6 __CFRunLoopServiceMachPort + 126
3 CoreFoundation 0x31b9102c __CFRunLoopRun + 900
4 CoreFoundation 0x31b04238 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x31b040c4 CFRunLoopRunInMode + 100
6 Foundation 0x324285be -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 250
7 Foundation 0x324cbc40 -[NSRunLoop(NSRunLoop) run] + 76
8 MyApp 0x0012e308 +[AFURLConnectionOperation networkRequestThreadEntryPoint:] + 120
9 Foundation 0x324d522c __NSThread__main__ + 968
10 libsystem_c.dylib 0x39ea40de _pthread_start + 306
11 libsystem_c.dylib 0x39ea3fa4 thread_start + 4
Thread 9:
0 libsystem_kernel.dylib 0x39f4bd98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x39e99ad6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x39e997f2 _pthread_wqthread + 362
3 libsystem_c.dylib 0x39e99680 start_wqthread + 4
Thread 10:
0 libsystem_kernel.dylib 0x39f4bd98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x39e99ad6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x39e997f2 _pthread_wqthread + 362
3 libsystem_c.dylib 0x39e99680 start_wqthread + 4
Thread 11:
0 libsystem_kernel.dylib 0x39f4bd98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x39e99ad6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x39e997f2 _pthread_wqthread + 362
3 libsystem_c.dylib 0x39e99680 start_wqthread + 4
Thread 12:
0 libsystem_kernel.dylib 0x39f4bd98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x39e99ad6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x39e997f2 _pthread_wqthread + 362
3 libsystem_c.dylib 0x39e99680 start_wqthread + 4
Thread 0 crashed with ARM Thread State (32-bit):
r0: 0x00000000 r1: 0x00000000 r2: 0x00000001 r3: 0x3ba42fc8
r4: 0xffffffff r5: 0x2fd6c311 r6: 0x2fd6c310 r7: 0x2fd6c9e0
r8: 0x2fd6c340 r9: 0x3ba38898 r10: 0x2fd6c318 r11: 0x00000015
ip: 0x00000025 sp: 0x2fd6c2fc lr: 0x00107ed5 pc: 0x39f4a838
cpsr: 0x00080010
Code which is crashing :
- (void)_sendData:(NSDictionary *)data responseCallback:(WVJBResponseCallback)responseCallback handlerName:(NSString*)handlerName {
NSMutableDictionary* message = [NSMutableDictionary dictionaryWithObject:data forKey:#"data"];
if (responseCallback) {
NSString* callbackId = [NSString stringWithFormat:#"objc_cb_%ld", ++_uniqueId];
_responseCallbacks[callbackId] = [responseCallback copy];
message[#"callbackId"] = callbackId;
}
if (handlerName) {
message[#"handlerName"] = handlerName;
}
[self _queueMessage:message];
}
The crash happens in the file WebViewJavascriptBridge.m in line 95 in the method [WebViewJavascriptBridge _sendData:responseCallback:handlerName:].
That line causes an exception in [__NSPlaceholderDictionary initWithObjects:forKeys:count:]. Since the exception message isn't shown in the crash report, and you don't provide any source code of that place we can only assume what is happening.
One assumption would be, your are creating a dictionary with nil values or keys. But without code or you actually debugging this, this is only an assumption.

Resources