I recently made some changes to my app that was already on the app store, and a couple days later, I find that my new version gets rejected for crashing on launch. Which is strange because I tested it n an ipad air, and iphone 6 and an iphone 5 and it worked on all 3. I got the following crash log from apple and I was wondering if anyone could help me decipher where the error is, as this is my first time having such a nasty error.
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x0000000101380a1c
Termination Signal: Trace/BPT trap: 5
Termination Reason: Namespace SIGNAL, Code 0x5
Terminating Process: exc handler [0]
Triggered by Thread: 0
Filtered syslog:
None found
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 resumeToolkit 0x0000000101380a1c 0x10136c000 + 84508
1 resumeToolkit 0x0000000101380a64 0x10136c000 + 84580
2 UIKit 0x000000018cf15a00 -[UIViewController loadViewIfRequired] + 1040
3 UIKit 0x000000018cf155d8 -[UIViewController view] + 28
4 resumeToolkit 0x000000010138aef4 0x10136c000 + 126708
5 resumeToolkit 0x000000010138a5a0 0x10136c000 + 124320
6 resumeToolkit 0x000000010138a664 0x10136c000 + 124516
7 UIKit 0x000000018cf15a00 -[UIViewController loadViewIfRequired] + 1040
8 UIKit 0x000000018cf155d8 -[UIViewController view] + 28
9 UIKit 0x000000018cf1c1a4 -[UIWindow addRootViewControllerViewIfPossible] + 136
10 UIKit 0x000000018cf19404 -[UIWindow _setHidden:forced:] + 272
11 UIKit 0x000000018cf882e8 -[UIWindow makeKeyAndVisible] + 48
12 resumeToolkit 0x000000010139f4d0 0x10136c000 + 210128
13 resumeToolkit 0x000000010139b464 0x10136c000 + 193636
14 UIKit 0x000000018cf842c4 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 384
15 UIKit 0x000000018d175bc4 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 3436
16 UIKit 0x000000018d17aa14 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1712
17 UIKit 0x000000018d4162a8 __111-[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:]_block_invoke + 800
18 UIKit 0x000000018d6ee100 +[_UICanvas _enqueuePostSettingUpdateTransactionBlock:] + 160
19 UIKit 0x000000018d415f0c -[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:] + 252
20 UIKit 0x000000018d41676c -[__UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:] + 732
21 UIKit 0x000000018db9b7c0 __82-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]_block_invoke + 260
22 UIKit 0x000000018db9b664 -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] + 448
23 UIKit 0x000000018d9092cc __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke + 220
24 UIKit 0x000000018daa23cc _performActionsWithDelayForTransitionContext + 112
25 UIKit 0x000000018d90917c -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] + 252
26 UIKit 0x000000018d6ed760 -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 364
27 UIKit 0x000000018d179158 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 540
28 UIKit 0x000000018d58edbc -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 364
29 FrontBoardServices 0x000000018601e1f0 -[FBSSceneImpl _didCreateWithTransitionContext:completion:] + 364
30 FrontBoardServices 0x0000000186026af8 __56-[FBSWorkspace client:handleCreateScene:withCompletion:]_block_invoke_2 + 224
31 libdispatch.dylib 0x00000001832daa14 _dispatch_client_callout + 16
32 libdispatch.dylib 0x00000001832e2200 _dispatch_block_invoke_direct$VARIANT$mp + 288
33 FrontBoardServices 0x00000001860527f8 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 36
34 FrontBoardServices 0x000000018605249c -[FBSSerialQueue _performNext] + 404
35 FrontBoardServices 0x0000000186052a38 -[FBSSerialQueue _performNextFromRunLoopSource] + 56
36 CoreFoundation 0x000000018390377c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
37 CoreFoundation 0x00000001839036fc __CFRunLoopDoSource0 + 88
38 CoreFoundation 0x0000000183902f84 __CFRunLoopDoSources0 + 204
39 CoreFoundation 0x0000000183900b5c __CFRunLoopRun + 1048
40 CoreFoundation 0x0000000183820c58 CFRunLoopRunSpecific + 436
41 GraphicsServices 0x00000001856ccf84 GSEventRunModal + 100
42 UIKit 0x000000018cf795c4 UIApplicationMain + 236
43 resumeToolkit 0x00000001013750b4 0x10136c000 + 37044
44 libdyld.dylib 0x000000018334056c start + 4
Thread 1:
0 libsystem_kernel.dylib 0x0000000183470d80 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000183582eec _pthread_wqthread + 884
2 libsystem_pthread.dylib 0x0000000183582b6c start_wqthread + 4
Thread 2:
0 libsystem_kernel.dylib 0x0000000183470d80 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000183582eec _pthread_wqthread + 884
2 libsystem_pthread.dylib 0x0000000183582b6c start_wqthread + 4
Thread 3:
0 libsystem_kernel.dylib 0x0000000183470d80 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000183582eec _pthread_wqthread + 884
2 libsystem_pthread.dylib 0x0000000183582b6c start_wqthread + 4
Thread 4 name: com.apple.uikit.eventfetch-thread
Thread 4:
0 libsystem_kernel.dylib 0x000000018344f568 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x000000018344f3e0 mach_msg + 72
2 CoreFoundation 0x0000000183903108 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000183900cd4 __CFRunLoopRun + 1424
4 CoreFoundation 0x0000000183820c58 CFRunLoopRunSpecific + 436
5 Foundation 0x0000000184255594 -[NSRunLoop+ 50580 (NSRunLoop) runMode:beforeDate:] + 304
6 Foundation 0x00000001842749ac -[NSRunLoop+ 178604 (NSRunLoop) runUntilDate:] + 96
7 UIKit 0x000000018dae37a8 -[UIEventFetcher threadMain] + 136
8 Foundation 0x00000001843570f4 __NSThread__start__ + 996
9 libsystem_pthread.dylib 0x00000001835842b4 _pthread_body + 308
10 libsystem_pthread.dylib 0x0000000183584180 _pthread_body + 0
11 libsystem_pthread.dylib 0x0000000183582b74 thread_start + 4
Thread 5:
0 libsystem_kernel.dylib 0x0000000183470d80 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000183582eec _pthread_wqthread + 884
2 libsystem_pthread.dylib 0x0000000183582b6c start_wqthread + 4
Thread 6:
0 libsystem_kernel.dylib 0x000000018344f5bc semaphore_timedwait_trap + 8
1 libdispatch.dylib 0x00000001832dd000 _dispatch_sema4_timedwait$VARIANT$mp + 84
2 libdispatch.dylib 0x00000001832dd870 _dispatch_semaphore_wait_slow + 72
3 libdispatch.dylib 0x00000001832e91d8 _dispatch_worker_thread + 256
4 libsystem_pthread.dylib 0x00000001835842b4 _pthread_body + 308
5 libsystem_pthread.dylib 0x0000000183584180 _pthread_body + 0
6 libsystem_pthread.dylib 0x0000000183582b74 thread_start + 4
Thread 7:
0 libsystem_kernel.dylib 0x00000001834700f0 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x0000000183586ce4 _pthread_cond_wait$VARIANT$mp + 640
2 libc++.1.dylib 0x0000000182b26f34 std::__1::condition_variable::__do_timed_wait+ 32564 (std::__1::unique_lock&, std::__1::chrono::time_point > >) + 96
3 JavaScriptCore 0x000000018acc9168 std::__1::cv_status std::__1::condition_variable::wait_until > >+ 10133864 (std::__1::unique_lock&, std::__1::chrono::time_point > > const&) + 124
4 JavaScriptCore 0x000000018acc903c std::__1::cv_status std::__1::condition_variable_any::wait_until, std::__1::chrono::steady_clock, std::__1::chrono::duration > >+ 10133564 (std::__1::unique_lock&, std::__1::chrono::time_point > > const&) + 108
5 JavaScriptCore 0x000000018acc8ec0 bmalloc::AsyncTask::threadRunLoop+ 10133184 () + 280
6 JavaScriptCore 0x000000018acc91b8 void* std::__1::__thread_proxy >, void (*)(bmalloc::AsyncTask*), bmalloc::AsyncTask*> >+ 10133944 (void*) + 44
7 libsystem_pthread.dylib 0x00000001835842b4 _pthread_body + 308
8 libsystem_pthread.dylib 0x0000000183584180 _pthread_body + 0
9 libsystem_pthread.dylib 0x0000000183582b74 thread_start + 4
Thread 8 name: WebThread
Thread 8:
0 libsystem_kernel.dylib 0x0000000183470138 __psynch_mutexwait + 8
1 libsystem_pthread.dylib 0x0000000183587660 _pthread_mutex_lock_wait + 96
2 libsystem_pthread.dylib 0x00000001835875a4 _pthread_mutex_lock_slow$VARIANT$mp + 264
3 WebCore 0x000000018b797f4c _WebTryThreadLock+ 278348 (bool) + 128
4 WebCore 0x000000018b797eac WebRunLoopLock+ 278188 (__CFRunLoopObserver*, unsigned long, void*) + 44
5 CoreFoundation 0x0000000183902cdc __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
6 CoreFoundation 0x0000000183900694 __CFRunLoopDoObservers + 412
7 CoreFoundation 0x0000000183900e38 __CFRunLoopRun + 1780
8 CoreFoundation 0x0000000183820c58 CFRunLoopRunSpecific + 436
9 WebCore 0x000000018b79584c RunWebThread+ 268364 (void*) + 560
10 libsystem_pthread.dylib 0x00000001835842b4 _pthread_body + 308
11 libsystem_pthread.dylib 0x0000000183584180 _pthread_body + 0
12 libsystem_pthread.dylib 0x0000000183582b74 thread_start + 4
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x000000018dca8460 x2: 0x0000000000000303 x3: 0x000000016ea90b68
x4: 0x0000000000000000 x5: 0x0000000000000000 x6: 0x0000000000000000 x7: 0x000000016ea90fc8
x8: 0x0000000000000000 x9: 0x0000000000000000 x10: 0x0000000000000000 x11: 0x0000010c000001ff
x12: 0x0000000149019000 x13: 0x000005a1b47f9c4f x14: 0xfffffffeb82c60bf x15: 0x000000000000001c
x16: 0x0000000101a3f138 x17: 0x000000018d8ffce0 x18: 0xfffffff01449925c x19: 0x0000000000000000
x20: 0x0000000147d39f40 x21: 0x00000001014f6000 x22: 0x00000001c41e6100 x23: 0x0000000000000001
x24: 0x0000000000000000 x25: 0x00000001c00df170 x26: 0x00000000000003c8 x27: 0x0000000148059978
x28: 0x0000000000000350 fp: 0x000000016ea911c0 lr: 0x0000000101380788
sp: 0x000000016ea91090 pc: 0x0000000101380a1c cpsr: 0x40000000
For anyone still struggling with this, the way I resolved this was by going to window -> organizer and then downloaded the DSYM of the version from which the crash logs were from. My problem was that for some reason the proper DSYM was not being used to symbolicate the code.
Related
I had an app in the App Store with lots of crashes, but I can't reproduce it myself.
I have lots of crash logs but they don't contain a backtrace making it difficult to diagnose the issue.
The crash logs show CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER which possibly could be caused by a notification being sent to a deallocated observer according to other questions on SO.
However the app only runs on iOS 10+, and according to Apple its not necessary to de-register observers from iOS 9 onwards unless they are block observers. Which my app doesn't use so that can't be the cause as far as my own apps notifications are concerned.
Incident Identifier: 77AB1312-9C1F-4BC1-957E-B742856DC635
CrashReporter Key: 6ad59ac64c53d2fc92208e8df23d4ddc8fed39fd
Hardware Model: iPhone10,3
Process: My App [378]
Path: /private/var/containers/Bundle/Application/99C2E2C8-9655-4D07-9608-870B5DD17C21/My app.app/My app
Identifier: com.myapp
OS Version: iPhone OS 10.3.2 (14F89)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.myapp[498]
Date/Time: 2018-06-06 00:18:34.2085 -0700
Launch Time: 2018-06-06 00:17:39.1406 -0700
Baseband Version: 2.03.00
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Thread 0 name:
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x000000018ec4d014 __pthread_kill + 8
1 libsystem_pthread.dylib 0x000000018ed17264 pthread_kill + 112 (pthread.c:1366)
2 libsystem_c.dylib 0x000000018ebc19c4 abort + 140 (abort.c:91)
3 libswiftCore.dylib 0x0000000100ad976c 0x1007ec000 + 3069804
4 libswiftCore.dylib 0x0000000100b0614c 0x1007ec000 + 3252556
5 CoreFoundation 0x000000018fc56f54 ___forwarding___ + 916 (NSForwarding.m:3126)
6 CoreFoundation 0x000000018fb52d4c _CF_forwarding_prep_0 + 92
7 CoreFoundation 0x000000018fbed5f4 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 20 (CFNotificationCenter.c:650)
8 CoreFoundation 0x000000018fbecd08 _CFXRegistrationPost + 400 (CFNotificationCenter.c:164)
9 CoreFoundation 0x000000018fbeca84 ___CFXNotificationPost_block_invoke + 60 (CFNotificationCenter.c:1031)
10 CoreFoundation 0x000000018fc5b7a8 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1412 (CFXNotificationRegistrar.m:163)
11 CoreFoundation 0x000000018fb3095c _CFXNotificationPost + 376 (CFNotificationCenter.c:1028)
12 Foundation 0x0000000190642930 -[NSNotificationCenter postNotificationName:object:userInfo:] + 68 (NSNotification.m:482)
13 UIKit 0x0000000195e07ea8 -[UIApplication _stopDeactivatingForReason:] + 1124 (UIApplication.m:1534)
14 UIKit 0x0000000196005b4c __62-[UIApplication _sceneSettingsPostLifecycleEventDiffInspector]_block_invoke.1259 + 124 (UIApplication.m:3247)
15 FrontBoardServices 0x00000001917e4be8 __52-[FBSSettingsDiffInspector inspectDiff:withContext:]_block_invoke.27 + 204 (FBSSettingsDiffInspector.m:46)
16 Foundation 0x00000001906fc7fc __NSIndexSetEnumerate + 724 (NSIndexSet.m:1347)
17 BaseBoard 0x0000000191757510 -[BSSettingsDiff inspectChangesWithBlock:] + 104 (BSSettingsDiff.m:187)
18 FrontBoardServices 0x00000001917dece4 -[FBSSettingsDiff inspectOtherChangesWithBlock:] + 88 (FBSSettingsDiff.m:65)
19 FrontBoardServices 0x00000001917e49bc -[FBSSettingsDiffInspector inspectDiff:withContext:] + 280 (FBSSettingsDiffInspector.m:44)
20 UIKit 0x00000001960064d4 __70-[UIApplication scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke + 196 (UIApplication.m:3346)
21 UIKit 0x0000000196006124 -[UIApplication scene:didUpdateWithDiff:transitionContext:completion:] + 892 (UIApplication.m:3357)
22 UIKit 0x00000001963407c8 -[UIApplicationSceneClientAgent scene:handleEvent:withCompletion:] + 464 (UIApplicationSceneClientAgent.m:74)
23 FrontBoardServices 0x00000001917ce22c __80-[FBSSceneImpl updater:didUpdateSettings:withDiff:transitionContext:completion:]_block_invoke.376 + 208 (FBSSceneImpl.m:598)
24 FrontBoardServices 0x00000001917fb884 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 36 (FBSSerialQueue.m:158)
25 FrontBoardServices 0x00000001917fb6f0 -[FBSSerialQueue _performNext] + 176 (FBSSerialQueue.m:177)
26 FrontBoardServices 0x00000001917fbaa0 -[FBSSerialQueue _performNextFromRunLoopSource] + 56 (FBSSerialQueue.m:206)
27 CoreFoundation 0x000000018fc0142c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24 (CFRunLoop.c:1943)
28 CoreFoundation 0x000000018fc00d9c __CFRunLoopDoSources0 + 540 (CFRunLoop.c:1989)
29 CoreFoundation 0x000000018fbfe9a8 __CFRunLoopRun + 744 (CFRunLoop.c:2821)
30 CoreFoundation 0x000000018fb2eda4 CFRunLoopRunSpecific + 424 (CFRunLoop.c:3113)
31 GraphicsServices 0x0000000191598074 GSEventRunModal + 100 (GSEvent.c:2245)
32 UIKit 0x0000000195de9058 UIApplicationMain + 208 (UIApplication.m:4089)
33 My App 0x00000001000be2e4 main + 56 (MyFile.swift:17)
34 libdyld.dylib 0x000000018eb3d59c start + 4
hread 1:
0 libsystem_pthread.dylib 0x0000000220f92064 start_wqthread + 0
Thread 2 name:
Thread 2:
0 libsystem_kernel.dylib 0x0000000220ef6ac8 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000220ef6940 mach_msg + 72 (mach_msg.c:103)
2 CoreFoundation 0x000000022131d2f0 __CFRunLoopServiceMachPort + 236 (CFRunLoop.c:2615)
3 CoreFoundation 0x000000022131af80 __CFRunLoopRun + 1404 (CFRunLoop.c:2971)
4 CoreFoundation 0x0000000221254abc CFRunLoopRunSpecific + 436 (CFRunLoop.c:3247)
5 Foundation 0x0000000221cd0544 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 300 (NSRunLoop.m:367)
6 Foundation 0x0000000221cd03f0 -[NSRunLoop(NSRunLoop) runUntilDate:] + 148 (NSRunLoop.m:411)
7 UIKitCore 0x000000024c433a7c -[UIEventFetcher threadMain] + 136 (UIEventFetcher.m:524)
8 Foundation 0x0000000221de0a94 __NSThread__start__ + 1040 (NSThread.m:1175)
9 libsystem_pthread.dylib 0x0000000220f931e4 _pthread_body + 128 (pthread.c:804)
10 libsystem_pthread.dylib 0x0000000220f93164 _pthread_start + 40 (pthread.c:827)
11 libsystem_pthread.dylib 0x0000000220f92070 thread_start + 4
Thread 3 name:
Thread 3:
0 libsystem_kernel.dylib 0x0000000220ef6ac8 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000220ef6940 mach_msg + 72 (mach_msg.c:103)
2 CoreFoundation 0x000000022131d2f0 __CFRunLoopServiceMachPort + 236 (CFRunLoop.c:2615)
3 CoreFoundation 0x000000022131af80 __CFRunLoopRun + 1404 (CFRunLoop.c:2971)
4 CoreFoundation 0x0000000221254abc CFRunLoopRunSpecific + 436 (CFRunLoop.c:3247)
5 CFNetwork 0x0000000221b5fc8c -[__CoreSchedulingSetRunnable runForever] + 212 (CoreSchedulingSet.mm:1365)
6 Foundation 0x0000000221de0a94 __NSThread__start__ + 1040 (NSThread.m:1175)
7 libsystem_pthread.dylib 0x0000000220f931e4 _pthread_body + 128 (pthread.c:804)
8 libsystem_pthread.dylib 0x0000000220f93164 _pthread_start + 40 (pthread.c:827)
9 libsystem_pthread.dylib 0x0000000220f92070 thread_start + 4
Thread 4 name:
Thread 4:
0 libsystem_kernel.dylib 0x0000000220f184ac __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x0000000220f9a638 _pthread_cond_wait$VARIANT$armv81 + 620 (pthread_cond.c:578)
2 libc++.1.dylib 0x00000002205b2e28 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 24 (__threading_support:278)
3 JavaScriptCore 0x0000000228f44524 void std::__1::condition_variable_any::wait<std::__1::unique_lock<bmalloc::Mutex> >(std::__1::unique_lock<bmalloc::Mutex>&) + 104 (condition_variable:204)
4 JavaScriptCore 0x0000000228f48300 bmalloc::Scavenger::threadRunLoop() + 172 (condition_variable:213)
5 JavaScriptCore 0x0000000228f47ac4 bmalloc::Scavenger::threadEntryPoint(bmalloc::Scavenger*) + 12 (Scavenger.cpp:352)
6 JavaScriptCore 0x0000000228f494b8 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::Scavenger*), bmalloc::Scavenger*> >(void*) + 44 (type_traits:4428)
7 libsystem_pthread.dylib 0x0000000220f931e4 _pthread_body + 128 (pthread.c:804)
8 libsystem_pthread.dylib 0x0000000220f93164 _pthread_start + 40 (pthread.c:827)
9 libsystem_pthread.dylib 0x0000000220f92070 thread_start + 4
Thread 5 name:
Thread 5:
0 libsystem_kernel.dylib 0x0000000220efb088 kevent + 8
1 Realm 0x00000001025f112c realm::_impl::ExternalCommitHelper::listen() + 212 (external_commit_helper.cpp:202)
2 Realm 0x00000001025f1d20 std::__1::__async_func<realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&)::$_0>::operator()() + 28 (external_commit_helper.cpp:159)
3 Realm 0x00000001025f1ca8 std::__1::__async_assoc_state<void, std::__1::__async_func<realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&)::$_0> >::__execute() + 28 (future:1039)
4 Realm 0x00000001025f1e58 std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (std::__1::__async_assoc_state<void, std::__1::__async_func<realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&)::$_0> >::*)(), std::__1::__async_assoc_state<void, std::__1::__async_func<realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&)::$_0> >*> >(void*, void*) + 64 (type_traits:4232)
5 libsystem_pthread.dylib 0x0000000220f931e4 _pthread_body + 128 (pthread.c:804)
6 libsystem_pthread.dylib 0x0000000220f93164 _pthread_start + 40 (pthread.c:827)
7 libsystem_pthread.dylib 0x0000000220f92070 thread_start + 4
Thread 6 name:
Thread 6:
0 libsystem_kernel.dylib 0x0000000220ef6ac8 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000220ef6940 mach_msg + 72 (mach_msg.c:103)
2 CoreFoundation 0x000000022131d2f0 __CFRunLoopServiceMachPort + 236 (CFRunLoop.c:2615)
3 CoreFoundation 0x000000022131af80 __CFRunLoopRun + 1404 (CFRunLoop.c:2971)
4 CoreFoundation 0x0000000221254abc CFRunLoopRunSpecific + 436 (CFRunLoop.c:3247)
5 AVFAudio 0x0000000227a31cd0 GenericRunLoopThread::Entry(void*) + 164 (GenericRunLoopThread.h:92)
6 AVFAudio 0x0000000227a5ce94 CAPThread::Entry(CAPThread*) + 88
7 libsystem_pthread.dylib 0x0000000220f931e4 _pthread_body + 128 (pthread.c:804)
8 libsystem_pthread.dylib 0x0000000220f93164 _pthread_start + 40 (pthread.c:827)
9 libsystem_pthread.dylib 0x0000000220f92070 thread_start + 4
Thread 7:
0 libsystem_pthread.dylib 0x0000000220f92064 start_wqthread + 0
Thread 8:
0 libsystem_pthread.dylib 0x0000000220f92064 start_wqthread + 0
Thread 9:
0 libsystem_pthread.dylib 0x0000000220f92064 start_wqthread + 0
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000282a1a766
x4: 0x0000000103938280 x5: 0x0000000000000020 x6: 0x0046000004210103 x7: 0x00000000ffba0038
x8: 0x0000000000000800 x9: 0x0000000220f98b44 x10: 0x0000000220f9408c x11: 0x000000025b529562
x12: 0x000000025b529562 x13: 0x0000000000000018 x14: 0x0000000000000001 x15: 0x0000000000000881
x16: 0x0000000000000148 x17: 0x0000000000000000 x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x0000000259099100 x21: 0x000000000000002d x22: 0x0000000000000303 x23: 0x00000002590991e0
x24: 0x0000000000000000 x25: 0x000000024d2a3912 x26: 0x0000000102eec200 x27: 0x000000025909cf10
x28: 0x0000000000000001 fp: 0x000000016ddd9960 lr: 0x0000000220f98c70
sp: 0x000000016ddd9930 pc: 0x0000000220f186a4 cpsr: 0x00000000
FYI Line 17 of MyFile.swift is just this:
#objc class RealmDatabase : NSObject
{
var configuration:Realm.Configuration? = nil // Line 17
Thats just a declaration of an optional, so I don't see how that could cause any problems.
Are there any other clues as to what the problem could be?
Just a wild stab in the dark:
One reason that this error can happen is due to ARC and weak references.
A common pattern in iOS is the delegate pattern, where a separate object is constructed to handle the messages of another object. These references are often weak, so that you don't get a memory cycle, where two objects own a strong reference to each other.
Now, it could be, somewhere in your code, that you are generating a RealmDatabase instance somewhere, and handing it off to another object as a weak reference. If this is the case, then it will be destroyed by ARC as soon as all the strong references to it are gone: for example, if it is being referenced by a Realm connection instance of some sort, and the connection is dropped.
This is just a wild guess, but if you are dynamically creating RealmDatabase instances when certain events happen, store references to those objects in a stored property on some object, as an optional, to keep them from being destroyed by ARC.
Good luck, and I hope you solve this for your users.
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.
In our production app we do have crash reports on presenting a ViewController from a modally presented `ViewController.
We have a BackgroundForegroundDelegate. Whenever the app enters the background it'll present a Lockscreen on top of the current ViewController.
AppDelegate:
func applicationDidEnterBackground(_ application: UIApplication) {
backgroundForegroundDelegate?.applicationDidEnterBackground()
}
func applicationWillEnterForeground(_ application: UIApplication) {
backgroundForegroundDelegate?.applicationWillEnterForeground()
}
LockScreenViewController:
class LockScreenViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
let blurEffectView = UIVisualEffectView(effect: UIBlurEffect(style: .light))
blurEffectView.frame = self.view.bounds
blurEffectView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
view.addSubview(blurEffectView)
view.sendSubview(toBack: blurEffectView)
}
}
The TabBarController, which is the backgroundForegroundDelegate, will do the following to present that LockScreen:
lazy var lockScreenViewController = UIStoryboard(name: "Login", bundle: nil).instantiateViewController(withIdentifier: "LockScreenViewController")
func applicationDidEnterBackground() {
let visibleViewController = (self.selectedViewController as? UINavigationController)?.visibleViewController
(visibleViewController as? BackgroundForegroundDelegate)?.applicationDidEnterBackground()
lockScreenViewController.modalPresentationStyle = .overFullScreen
let window = UIApplication.shared.keyWindow!
if let modalVC = window.rootViewController?.presentedViewController {
// HERE it does crash
modalVC.present(lockScreenViewController, animated: false,
completion: nil)
} else {
window.rootViewController!.present(lockScreenViewController, animated: false, completion: nil)
}
}
I marked the line where the crashs occured.
We couldn't reproduce it on the same phone with the same OS.
What can go wrong here and how can we make it "safe"?
Crash Report:
Hardware Model: iPhone8,1
Process: MyApp [13594]
Path: /private/var/containers/Bundle/Application/**/MyApp.app/MyApp
Identifier: *hidden*
Version: 1565 (1.2.0)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: *hidden*
Date/Time: 2017-09-24 14:46:10.5972 +0200
Launch Time: 2017-09-24 14:43:55.8968 +0200
OS Version: iPhone OS 11.0 (15A372)
Baseband Version: 4.00.01
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 0x18261fd38 __exceptionPreprocess + 124 (NSException.m:166)
1 libobjc.A.dylib 0x181b34528 objc_exception_throw + 56 (objc-exception.mm:521)
2 UIKit 0x18bda189c -[UIViewController _presentViewController:withAnimationController:completion:] + 4828 (UIViewController.m:6945)
3 UIKit 0x18bda4074 __63-[UIViewController _presentViewController:animated:completion:]_block_invoke_2 + 68 (UIViewController.m:7453)
4 UIKit 0x18ba3ca84 +[UIView(Animation) performWithoutAnimation:] + 104 (UIView.m:11718)
5 UIKit 0x18bda3fc8 __63-[UIViewController _presentViewController:animated:completion:]_block_invoke + 220 (UIViewController.m:7451)
6 UIKit 0x18bda4488 -[UIViewController _performCoordinatedPresentOrDismiss:animated:] + 528 (UIViewController.m:7531)
7 UIKit 0x18bda3ea4 -[UIViewController _presentViewController:animated:completion:] + 188 (UIViewController.m:7462)
8 UIKit 0x18bb0e55c -[UIViewController presentViewController:animated:completion:] + 160 (UIViewController.m:7475)
9 MyApp 0x1041794cc _T013MyApp24TabBarControllerC29applicationDidEnterBackgroundyyF + 472 (TabBarController.swift:81)
10 MyApp 0x10417ace8 _T013MyApp24TabBarControllerCAA28BackgroundForegroundDelegateA2aDP019applicationDidEnterG0yyFTW + 20 (TabBarController.swift:0)
11 MyApp 0x104151aa0 _T013MyApp11AppDelegateC29applicationDidEnterBackgroundySo13UIApplicationCFTo + 192 (AppDelegate.swift:76)
12 UIKit 0x18bc9b648 __47-[UIApplication _applicationDidEnterBackground]_block_invoke + 180 (UIApplication.m:6096)
13 UIKit 0x18bd9e338 +[UIViewController _performWithoutDeferringTransitions:] + 128 (UIViewController.m:6538)
14 UIKit 0x18bc9b538 -[UIApplication _applicationDidEnterBackground] + 104 (UIApplication.m:6088)
15 UIKit 0x18bf2531c -[__UICanvasLifecycleMonitor_Compatability deactivateEventsOnly:withContext:forceExit:completion:] + 860 (_UICanvasLifecycleMonitor.m:375)
16 UIKit 0x18c68d760 __82-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]_block_invoke + 380 (_UIApplicationCanvas.m:0)
17 UIKit 0x18c68d58c -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] + 448 (_UIApplicationCanvas.m:156)
18 UIKit 0x18c4099c0 __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke + 220 (_UICanvasLifecycleSettingsDiffAction.m:210)
19 UIKit 0x18c59efc8 _performActionsWithDelayForTransitionContext + 112 (_UICanvasSettingsDiffAction.m:34)
20 UIKit 0x18c409870 -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] + 252 (_UICanvasLifecycleSettingsDiffAction.m:181)
21 UIKit 0x18c1f3850 -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 364 (_UICanvas.m:517)
22 UIKit 0x18c098bd8 -[UIApplicationSceneClientAgent scene:handleEvent:withCompletion:] + 468 (UIApplicationSceneClientAgent.m:77)
23 FrontBoardServices 0x184cc221c __80-[FBSSceneImpl updater:didUpdateSettings:withDiff:transitionContext:completion:]_block_invoke.362 + 212 (FBSSceneImpl.m:571)
24 libdispatch.dylib 0x181fa5048 _dispatch_client_callout + 16 (object.m:502)
25 libdispatch.dylib 0x181fac6c8 _dispatch_block_invoke_direct$VARIANT$mp + 288 (queue.c:3025)
26 FrontBoardServices 0x184cf5a04 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 36 (FBSSerialQueue.m:164)
27 FrontBoardServices 0x184cf56a8 -[FBSSerialQueue _performNext] + 404 (FBSSerialQueue.m:196)
28 FrontBoardServices 0x184cf5c44 -[FBSSerialQueue _performNextFromRunLoopSource] + 56 (FBSSerialQueue.m:232)
29 CoreFoundation 0x1825c8358 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24 (CFRunLoop.c:1982)
30 CoreFoundation 0x1825c82d8 __CFRunLoopDoSource0 + 88 (CFRunLoop.c:2017)
31 CoreFoundation 0x1825c7b60 __CFRunLoopDoSources0 + 204 (CFRunLoop.c:2053)
32 CoreFoundation 0x1825c5738 __CFRunLoopRun + 1048 (CFRunLoop.c:2920)
33 CoreFoundation 0x1824e62d8 CFRunLoopRunSpecific + 436 (CFRunLoop.c:3245)
34 GraphicsServices 0x184377f84 GSEventRunModal + 100 (GSEvent.c:2245)
35 UIKit 0x18ba92880 UIApplicationMain + 208 (UIApplication.m:3948)
36 MyApp 0x1040c100c main + 56 (ContactsService.swift:16)
37 libdyld.dylib 0x18200a56c start + 4
Thread 0 name:
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x0000000182139348 __pthread_kill + 8
1 libsystem_pthread.dylib 0x000000018224d354 pthread_kill$VARIANT$mp + 396 (pthread.c:1484)
2 libsystem_c.dylib 0x00000001820a8fd8 abort + 140 (abort.c:91)
3 libc++abi.dylib 0x0000000181b0c068 abort_message + 132 (abort_message.cpp:75)
4 libc++abi.dylib 0x0000000181b0c210 default_terminate_handler() + 304 (cxa_default_handlers.cpp:68)
5 libobjc.A.dylib 0x0000000181b34810 _objc_terminate() + 124 (objc-exception.mm:657)
6 libc++abi.dylib 0x0000000181b2454c std::__terminate(void (*)()) + 16 (cxa_handlers.cpp:66)
7 libc++abi.dylib 0x0000000181b245b8 std::terminate() + 60 (cxa_handlers.cpp:97)
8 libdispatch.dylib 0x0000000181fa505c _dispatch_client_callout + 36 (object.m:505)
9 libdispatch.dylib 0x0000000181fac6c8 _dispatch_block_invoke_direct$VARIANT$mp + 288 (queue.c:3025)
10 FrontBoardServices 0x0000000184cf5a04 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 36 (FBSSerialQueue.m:164)
11 FrontBoardServices 0x0000000184cf56a8 -[FBSSerialQueue _performNext] + 404 (FBSSerialQueue.m:196)
12 FrontBoardServices 0x0000000184cf5c44 -[FBSSerialQueue _performNextFromRunLoopSource] + 56 (FBSSerialQueue.m:232)
13 CoreFoundation 0x00000001825c8358 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24 (CFRunLoop.c:1982)
14 CoreFoundation 0x00000001825c82d8 __CFRunLoopDoSource0 + 88 (CFRunLoop.c:2017)
15 CoreFoundation 0x00000001825c7b60 __CFRunLoopDoSources0 + 204 (CFRunLoop.c:2053)
16 CoreFoundation 0x00000001825c5738 __CFRunLoopRun + 1048 (CFRunLoop.c:2920)
17 CoreFoundation 0x00000001824e62d8 CFRunLoopRunSpecific + 436 (CFRunLoop.c:3245)
18 GraphicsServices 0x0000000184377f84 GSEventRunModal + 100 (GSEvent.c:2245)
19 UIKit 0x000000018ba92880 UIApplicationMain + 208 (UIApplication.m:3948)
20 MyApp 0x00000001040c100c main + 56 (ContactsService.swift:16)
21 libdyld.dylib 0x000000018200a56c start + 4
Thread 1 name:
Thread 1:
0 libsystem_kernel.dylib 0x0000000182118bc4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000182118a3c mach_msg + 72 (mach_msg.c:103)
2 CoreFoundation 0x00000001825c7ce4 __CFRunLoopServiceMachPort + 196 (CFRunLoop.c:2613)
3 CoreFoundation 0x00000001825c58b0 __CFRunLoopRun + 1424 (CFRunLoop.c:2969)
4 CoreFoundation 0x00000001824e62d8 CFRunLoopRunSpecific + 436 (CFRunLoop.c:3245)
5 Foundation 0x0000000182f0e6e4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304 (NSRunLoop.m:367)
6 Foundation 0x0000000182f2dafc -[NSRunLoop(NSRunLoop) runUntilDate:] + 96 (NSRunLoop.m:411)
7 UIKit 0x000000018c5de02c -[UIEventFetcher threadMain] + 136 (UIEventFetcher.m:422)
8 Foundation 0x000000018300f860 __NSThread__start__ + 996 (NSThread.m:1181)
9 libsystem_pthread.dylib 0x000000018224c32c _pthread_body + 308 (pthread.c:740)
10 libsystem_pthread.dylib 0x000000018224c1f8 _pthread_start + 312 (pthread.c:799)
11 libsystem_pthread.dylib 0x000000018224ac38 thread_start + 4
Thread 2 name:
Thread 2:
0 libsystem_kernel.dylib 0x0000000182118bc4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000182118a3c mach_msg + 72 (mach_msg.c:103)
2 CoreFoundation 0x00000001825c7ce4 __CFRunLoopServiceMachPort + 196 (CFRunLoop.c:2613)
3 CoreFoundation 0x00000001825c58b0 __CFRunLoopRun + 1424 (CFRunLoop.c:2969)
4 CoreFoundation 0x00000001824e62d8 CFRunLoopRunSpecific + 436 (CFRunLoop.c:3245)
5 Foundation 0x0000000182f0e6e4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304 (NSRunLoop.m:367)
6 Foundation 0x0000000182f6062c -[NSRunLoop(NSRunLoop) run] + 88 (NSRunLoop.m:389)
7 MyApp 0x00000001041c7330 +[GAI threadMain:] + 64 (GAI.m:228)
8 Foundation 0x000000018300f860 __NSThread__start__ + 996 (NSThread.m:1181)
9 libsystem_pthread.dylib 0x000000018224c32c _pthread_body + 308 (pthread.c:740)
10 libsystem_pthread.dylib 0x000000018224c1f8 _pthread_start + 312 (pthread.c:799)
11 libsystem_pthread.dylib 0x000000018224ac38 thread_start + 4
Thread 3:
0 libsystem_kernel.dylib 0x0000000182139dbc __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x000000018224afb0 _pthread_wqthread + 884 (pthread.c:0)
2 libsystem_pthread.dylib 0x000000018224ac30 start_wqthread + 4
Thread 4:
0 libsystem_pthread.dylib 0x000000018224ac2c start_wqthread + 0 (pthread.c:2447)
Thread 5:
0 libsystem_pthread.dylib 0x000000018224ac2c start_wqthread + 0 (pthread.c:2447)
Thread 6 name:
Thread 6:
0 libsystem_kernel.dylib 0x0000000182118bc4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000182118a3c mach_msg + 72 (mach_msg.c:103)
2 libdispatch.dylib 0x0000000181fbacf4 _dispatch_mach_send_and_wait_for_reply + 644 (mach.c:831)
3 libdispatch.dylib 0x0000000181fbb19c dispatch_mach_send_with_result_and_wait_for_reply$VARIANT$mp + 56 (mach.c:1958)
4 libxpc.dylib 0x00000001822879cc xpc_connection_send_message_with_reply_sync + 196 (connection.c:802)
5 BaseBoard 0x0000000184aed634 -[BSXPCMessage sendSynchronouslyToConnection:error:] + 76 (BSXPCMessage.m:189)
6 BaseBoard 0x0000000184ae9dac -[BSBaseXPCClient _sendMessage:withReplyHandler:waitForReply:waitDuration:] + 320 (BSBaseXPCClient.m:233)
7 AssertionServices 0x0000000184b3cc10 -[BKSAssertionClientMultiplexer sendEvent:withAssertionType:forEventType:responseHandler:] + 272 (BKSAssertionClientMultiplexer.m:87)
8 AssertionServices 0x0000000184b36a98 -[BKSProcessAssertionClient sendCreateEvent:error:] + 116 (BKSProcessAssertionClient.m:53)
9 AssertionServices 0x0000000184b3a4c8 -[BKSAssertion _clientQueue_acquireAssertion] + 136 (BKSAssertion.m:293)
10 AssertionServices 0x0000000184b3a0fc __45-[BKSAssertion _registerAssertionAndAcquire:]_block_invoke + 80 (BKSAssertion.m:235)
11 libdispatch.dylib 0x0000000181fa5088 _dispatch_call_block_and_release + 24 (init.c:994)
12 libdispatch.dylib 0x0000000181fa5048 _dispatch_client_callout + 16 (object.m:502)
13 libdispatch.dylib 0x0000000181faee48 _dispatch_queue_serial_drain$VARIANT$mp + 528 (inline_internal.h:2500)
14 libdispatch.dylib 0x0000000181faf7d8 _dispatch_queue_invoke$VARIANT$mp + 340 (queue.c:5302)
15 libdispatch.dylib 0x0000000181fb0200 _dispatch_root_queue_drain_deferred_wlh$VARIANT$mp + 400 (queue.c:5920)
16 libdispatch.dylib 0x0000000181fb84a0 _dispatch_workloop_worker_thread$VARIANT$mp + 644 (source.c:2515)
17 libsystem_pthread.dylib 0x000000018224afe0 _pthread_wqthread + 932 (pthread.c:2207)
18 libsystem_pthread.dylib 0x000000018224ac30 start_wqthread + 4
Thread 7:
0 libsystem_pthread.dylib 0x000000018224ac2c start_wqthread + 0 (pthread.c:2447)
Thread 8 name:
Thread 8:
0 libsystem_kernel.dylib 0x0000000182118bc4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000182118a3c mach_msg + 72 (mach_msg.c:103)
2 CoreFoundation 0x00000001825c7ce4 __CFRunLoopServiceMachPort + 196 (CFRunLoop.c:2613)
3 CoreFoundation 0x00000001825c58b0 __CFRunLoopRun + 1424 (CFRunLoop.c:2969)
4 CoreFoundation 0x00000001824e62d8 CFRunLoopRunSpecific + 436 (CFRunLoop.c:3245)
5 CFNetwork 0x0000000182c4fb40 +[NSURLConnection(Loader) _resourceLoadLoop:] + 404 (NSURLConnection.mm:367)
6 Foundation 0x000000018300f860 __NSThread__start__ + 996 (NSThread.m:1181)
7 libsystem_pthread.dylib 0x000000018224c32c _pthread_body + 308 (pthread.c:740)
8 libsystem_pthread.dylib 0x000000018224c1f8 _pthread_start + 312 (pthread.c:799)
9 libsystem_pthread.dylib 0x000000018224ac38 thread_start + 4
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x00000001c42ea5b7
x4: 0x0000000181b29afd x5: 0x000000016bd425a0 x6: 0x000000000000006e x7: 0xffffffffffffffec
x8: 0x0000000008000000 x9: 0x0000000004000000 x10: 0x000000018225163c x11: 0x0000000000000003
x12: 0xffffffffffffffff x13: 0x0000000000000001 x14: 0x00000001820bf557 x15: 0x0000000000000010
x16: 0x0000000000000148 x17: 0x00000000ffffffff x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x00000001b2fe3b80 x21: 0x000000016bd425a0 x22: 0x0000000000000303 x23: 0x00000001b2fe3c60
x24: 0x0000000000002403 x25: 0x0000000000002303 x26: 0x0000000000000001 x27: 0x0000000000000000
x28: 0x00000001c41fc808 fp: 0x000000016bd42500 lr: 0x000000018224d354
sp: 0x000000016bd424d0 pc: 0x0000000182139348 cpsr: 0x00000000
Every time I need to present multiple modals I end up using addChildViewController() to add the vc's.
The I'm animating the childViewController.view in from the bottom edge of the screen to immitate the systems modal presentation animation. 👍
If you want to use the systems present() method make sure you really present on the top most view controller.
I have a crash that only occurs on Apple review: when they try to login the app crashes.
I tested it with real iPhones in test environment and in Ad-hoc several times and the crash never occurred before.
After the review I made some research and I found some similar things and I have been trying out but I can't event simulate the same issue here (I also tried to change Xcode debug to release and he crash does not happen).
Here is what they said it happened at the review:
Upon further review and a fresh install of your app we continue to
find that your app crashed on an iPad running iOS 8.4 and iPhone
running iOS 8.4 when we:
1. Launch App
2. Input provided demo account credentials
3. Tap "Login"
4. Application crashes.
Here is the symbolicated log:
Last Exception Backtrace:
0 CoreFoundation 0x1820ac2d8 __exceptionPreprocess + 132
1 libobjc.A.dylib 0x193c7c0e4 objc_exception_throw + 60
2 CoreFoundation 0x1820ac198 +[NSException raise:format:arguments:] + 116
3 Foundation 0x182f60ed4 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 112
4 UIKit 0x186b4f1e0 -[UIKeyboardTaskQueue waitUntilAllTasksAreFinished] + 184
5 UIKit 0x186b4f8c8 -[UIKeyboardImpl setDelegate:force:] + 636
6 UIKit 0x186b48b3c -[UIPeripheralHost(UIKitInternal) _reloadInputViewsForResponder:] + 1212
7 UIKit 0x186c2709c -[UIResponder _finishResignFirstResponder] + 184
8 UIKit 0x187277730 -[UITextField _finishResignFirstResponder] + 56
9 UIKit 0x186bced5c -[UIResponder resignFirstResponder] + 320
10 UIKit 0x186c508bc -[UITextField resignFirstResponder] + 124
11 UIKit 0x186d4b170 -[UITextField _setEnabled:animated:] + 128
12 PioNET 0x100051110 -[LoginViewController startLogging] (LoginViewController.m:667)
13 Foundation 0x182faddb8 __NSThread__main__ + 1072
14 libsystem_pthread.dylib 0x1944dbdc8 _pthread_body + 164
15 libsystem_pthread.dylib 0x1944dbd24 _pthread_start + 160
16 libsystem_pthread.dylib 0x1944d8ef8 thread_start + 4
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 PioNET 0x00000001000e3274 +[AFNetworkReachabilityManager sharedManager] (AFNetworkReachabilityManager.m:113)
1 PioNET 0x00000001000dee9c +[AFHTTPRequestOperationManager manager] (AFHTTPRequestOperationManager.m:41)
2 PioNET 0x000000010004db98 -[LoginViewController authentication:andPassword:] (LoginViewController.m:247)
3 PioNET 0x0000000100050cfc -[LoginViewController loginProcess:andPassword:] (LoginViewController.m:641)
4 PioNET 0x00000001000514b4 -[LoginViewController login:] (LoginViewController.m:692)
5 UIKit 0x0000000186b59394 -[UIApplication sendAction:to:from:forEvent:] + 92
6 UIKit 0x0000000186b42470 -[UIControl _sendActionsForEvents:withEvent:] + 608
7 UIKit 0x0000000186b58d30 -[UIControl touchesEnded:withEvent:] + 588
8 UIKit 0x0000000186b589bc -[UIWindow _sendTouchesForEvent:] + 696
9 UIKit 0x0000000186b51ef8 -[UIWindow sendEvent:] + 680
10 UIKit 0x0000000186b2511c -[UIApplication sendEvent:] + 260
11 UIKit 0x0000000186dc62b4 _UIApplicationHandleEventFromQueueEvent + 15420
12 UIKit 0x0000000186b23630 _UIApplicationHandleEventQueue + 1712
13 CoreFoundation 0x000000018206423c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 20
14 CoreFoundation 0x00000001820634e0 __CFRunLoopDoSources0 + 260
15 CoreFoundation 0x0000000182061590 __CFRunLoopRun + 708
16 CoreFoundation 0x0000000181f8d2d0 CFRunLoopRunSpecific + 392
17 GraphicsServices 0x000000018b8bb6f8 GSEventRunModal + 164
18 UIKit 0x0000000186b8af3c UIApplicationMain + 1484
19 PioNET 0x00000001000709b0 main (main.m:14)
20 libdyld.dylib 0x0000000194326a04 start + 0
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x0000000194424c24 kevent64 + 8
1 libdispatch.dylib 0x0000000194309e6c _dispatch_mgr_invoke + 272
2 libdispatch.dylib 0x00000001942fb998 _dispatch_mgr_thread + 48
Thread 2:
0 libsystem_kernel.dylib 0x000000019443fc78 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x00000001944d92d8 _pthread_wqthread + 988
2 libsystem_pthread.dylib 0x00000001944d8eec start_wqthread + 0
Thread 3:
0 libsystem_kernel.dylib 0x000000019443fc78 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x00000001944d92d8 _pthread_wqthread + 988
2 libsystem_pthread.dylib 0x00000001944d8eec start_wqthread + 0
Thread 4:
0 libsystem_kernel.dylib 0x000000019443fc78 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x00000001944d92d8 _pthread_wqthread + 988
2 libsystem_pthread.dylib 0x00000001944d8eec start_wqthread + 0
Thread 5:
0 libsystem_kernel.dylib 0x000000019443fc78 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x00000001944d92d8 _pthread_wqthread + 988
2 libsystem_pthread.dylib 0x00000001944d8eec start_wqthread + 0
Thread 6:
0 libsystem_kernel.dylib 0x000000019443fc78 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x00000001944d92d8 _pthread_wqthread + 988
2 libsystem_pthread.dylib 0x00000001944d8eec start_wqthread + 0
Thread 7 name: com.apple.NSURLConnectionLoader
Thread 7:
0 libsystem_kernel.dylib 0x0000000194424e0c mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000194424c84 mach_msg + 68
2 CoreFoundation 0x0000000182063720 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000182061674 __CFRunLoopRun + 936
4 CoreFoundation 0x0000000181f8d2d0 CFRunLoopRunSpecific + 392
5 CFNetwork 0x0000000181a6a590 +[NSURLConnection(Loader) _resourceLoadLoop:] + 436
6 Foundation 0x0000000182faddb4 __NSThread__main__ + 1068
7 libsystem_pthread.dylib 0x00000001944dbdc4 _pthread_body + 160
8 libsystem_pthread.dylib 0x00000001944dbd20 _pthread_start + 156
9 libsystem_pthread.dylib 0x00000001944d8ef4 thread_start + 0
Thread 8 name: com.apple.CFSocket.private
Thread 8:
0 libsystem_kernel.dylib 0x000000019443f498 __select + 8
1 CoreFoundation 0x0000000182069124 __CFSocketManager + 668
2 libsystem_pthread.dylib 0x00000001944dbdc4 _pthread_body + 160
3 libsystem_pthread.dylib 0x00000001944dbd20 _pthread_start + 156
4 libsystem_pthread.dylib 0x00000001944d8ef4 thread_start + 0
Thread 9:
0 libsystem_kernel.dylib 0x0000000194424e0c mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000194424c84 mach_msg + 68
2 CoreFoundation 0x0000000182063720 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000182061674 __CFRunLoopRun + 936
4 CoreFoundation 0x0000000181f8d2d0 CFRunLoopRunSpecific + 392
5 CoreFoundation 0x0000000181fdf358 CFRunLoopRun + 108
6 CoreMotion 0x00000001829982b8 0x182950000 + 295608
7 libsystem_pthread.dylib 0x00000001944dbdc4 _pthread_body + 160
8 libsystem_pthread.dylib 0x00000001944dbd20 _pthread_start + 156
9 libsystem_pthread.dylib 0x00000001944d8ef4 thread_start + 0
Thread 10 Crashed:
0 libsystem_kernel.dylib 0x000000019443f270 __pthread_kill + 8
1 libsystem_pthread.dylib 0x00000001944dd16c pthread_kill + 108
2 libsystem_c.dylib 0x00000001943b6b14 abort + 108
3 libc++abi.dylib 0x0000000193449414 abort_message + 112
4 libc++abi.dylib 0x0000000193468b88 default_terminate_handler() + 300
5 libobjc.A.dylib 0x0000000193c7c3bc _objc_terminate() + 124
6 libc++abi.dylib 0x0000000193465bb0 std::__terminate(void (*)()) + 12
7 libc++abi.dylib 0x0000000193465474 __cxa_throw + 132
8 libobjc.A.dylib 0x0000000193c7c200 objc_exception_throw + 344
9 CoreFoundation 0x00000001820ac194 +[NSException raise:format:arguments:] + 112
10 Foundation 0x0000000182f60ed0 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 108
11 UIKit 0x0000000186b4f1dc -[UIKeyboardTaskQueue waitUntilAllTasksAreFinished] + 180
12 UIKit 0x0000000186b4f8c4 -[UIKeyboardImpl setDelegate:force:] + 632
13 UIKit 0x0000000186b48b38 -[UIPeripheralHost(UIKitInternal) _reloadInputViewsForResponder:] + 1208
14 UIKit 0x0000000186c27098 -[UIResponder _finishResignFirstResponder] + 180
15 UIKit 0x000000018727772c -[UITextField _finishResignFirstResponder] + 52
16 UIKit 0x0000000186bced58 -[UIResponder resignFirstResponder] + 316
17 UIKit 0x0000000186c508b8 -[UITextField resignFirstResponder] + 120
18 UIKit 0x0000000186d4b16c -[UITextField _setEnabled:animated:] + 124
19 PioNET 0x000000010005110c -[LoginViewController startLogging] (LoginViewController.m:667)
20 Foundation 0x0000000182faddb4 __NSThread__main__ + 1068
21 libsystem_pthread.dylib 0x00000001944dbdc4 _pthread_body + 160
22 libsystem_pthread.dylib 0x00000001944dbd20 _pthread_start + 156
23 libsystem_pthread.dylib 0x00000001944d8ef4 thread_start + 0
Thread 10 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x00000001700ed0b7
x4: 0x0000000193469dfd x5: 0x0000000105476460 x6: 0x000000000000006e x7: 0x0000000000000fa0
x8: 0x0000000008000000 x9: 0x0000000004000000 x10: 0x0000000000000200 x11: 0x0000000000000000
x12: 0x0000000000000000 x13: 0x0000000000000000 x14: 0x0000000000000002 x15: 0x0000000000000000
x16: 0x0000000000000148 x17: 0x0000000000000000 x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x0000000105478000 x21: 0x00000001983f1ce8 x22: 0x0000000170010360 x23: 0x0000000000000000
x24: 0x0000000000000000 x25: 0x0000000000000000 x26: 0x0000000187316681 x27: 0x0000000194c08000
x28: 0x0000000000000110 fp: 0x00000001054763c0 lr: 0x00000001944dd170
sp: 0x00000001054763a0 pc: 0x000000019443f270 cpsr: 0x00000000
Do you use some third party control? It's not rare some controls crash when compiled for release.
You can try to turn off the code optimizations for the release build and test if it crashes.
Looks like it crashed at
0 PioNET 0x00000001000e3274 +[AFNetworkReachabilityManager sharedManager] (AFNetworkReachabilityManager.m:113)
That class, AFNetworkReachabilityManager, has something to do with if the network is reachable or not. Have you tried testing your application under different network situations, like no internet or poor internet connectivity? That might be where they're seeing the crash.
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.