why is xcode 7 not running an app on ios 9? - ios

Lately installed Xcode 7 beta 4.
My app will not run on an iOS 9.0 device, although it will run on an iOS 9.0 simulator, and an iOS 8.4 device (using Xcode 7b4).
Xcode shows "Running %app_name on %device_name", the icon shows up on the device, but does not run, and that's how it stays.
Debug console shows nothing (checked the preferences, also, when using an iOS 8.4 device it shows output log as expected).
Another app that I created runs fine, it's just this app, on iOS9 device (Sim works smoothly).
No exception is thrown, no compilation error... nothing to go on.
Trying to start the app from the phone itself results in a request to send notifications (ok behaviour) and crashes...
Any ideas ?
EDIT:
In the device console output, I these two messages (not always):
Aug 4 11:39:53 iOS-9-test-device syslog_relay(liblockdown.dylib)[117]
: The connection is now invalid. Aug 4 11:39:53
iOS-9-test-device lockbot[79] : got an unknown event
And this is a crash report from the device itself :
Incident Identifier: C6A70E35-2ACD-4A17-959C-547DE3CC39F0 CrashReporter Key: 5c34ba5da623fd5860d5d4059ad9f46615e4e3f9 Hardware Model: iPhone5,1 Process: MyAppName [6737] Path: /var/mobile/Containers/Bundle/Application/099D6717-A7A5-45A5-96DE-92810AE0476A/MyAppName.app/MyAppName Identifier: com.MyOrgName.MyAppName Version: 7 (2.2.10) Code Type: ARM (Native) Parent Process: launchd [1]
Date/Time: 2015-08-04 11:47:38.38 +0300 Launch Time: 2015-08-04 11:47:23.23 +0300 OS Version: iOS 9.0 (13A4254v) Report Version: 105
Exception Type: 00000020 Exception Codes: 0x000000008badf00d Exception Note: SIMULATED (this is NOT a crash) Highlighted by Thread: 0
Application Specific Information: com.MyOrgName.MyAppName failed to scene-create after 14.65s (launch took 0.35s of total time limit
15.00s)
Elapsed total CPU time (seconds): 3.220 (user 3.220, system 0.000), 11% CPU Elapsed application CPU time (seconds): 0.779, 3% CPU
Filtered syslog: None found
Thread 0 name: Dispatch queue: com.apple.main-thread Thread 0: 0 libsystem_kernel.dylib 0x35a09b08 __psynch_mutexwait + 24 1 libsystem_pthread.dylib 0x35a9cad0 _pthread_mutex_lock + 412 2 libc++.1.dylib 0x349bfa60 std::__1::mutex::lock() + 4 3 VectorKit 0x323165be
-[VKTileSetBackedTileSource setStyleManager:] + 222 4 VectorKit 0x320db374 -[VKMapModel createSourceForLayer:tileSet:mode:] + 1260 5 VectorKit 0x320dab7c -[VKMapModel sourceForLayer:mode:] + 228 6 VectorKit 0x320da52a -[VKMapModel configureTileSources] + 402 7 VectorKit 0x32166234 -[VKMapModel forceMapType:animated:] + 5068 8 VectorKit 0x3216a64a -[VKMapModel initShouldRasterize:mapPurpose:tileGroupIdentifier:locale:contentScale:]
+ 3378 9 VectorKit 0x32157a74 -[VKMapCanvas initShouldRasterize:contentScale:target:device:inBackground:locale:] + 680 10 VectorKit 0x320cd1de -[VKMapView initWithGlobe:shouldRasterize:inBackground:] + 846 11 MapKit 0x24e5299a -[MKBasicMapView initWithFrame:andGlobe:shouldRasterize:]
+ 346 12 MapKit 0x24e821a0 -[MKMapView _commonInitFromIB:gestureRecognizerHostView:showsAttribution:] + 976 13 MapKit 0x24e82d28 -[MKMapView initWithCoder:] + 124 14 UIKit 0x27cecd14 UINibDecoderDecodeObjectForValue + 776 15 UIKit 0x27cec9fc -[UINibDecoder decodeObjectForKey:] + 292 16 UIKit 0x27bf794a -[UIRuntimeConnection initWithCoder:] + 110 17 UIKit 0x27cecd14 UINibDecoderDecodeObjectForValue + 776 18 UIKit 0x27cecca6 UINibDecoderDecodeObjectForValue + 666 19 UIKit 0x27cec9fc -[UINibDecoder decodeObjectForKey:] + 292 20 UIKit 0x27bf6ede -[UINib instantiateWithOwner:options:] + 1106 21 UIKit 0x27ad2396 -[UIViewController _loadViewFromNibNamed:bundle:] + 318 22 UIKit 0x278bd842 -[UIViewController loadView]
+ 138 23 UIKit 0x27785fb0 -[UIViewController loadViewIfRequired] + 132 24 UIKit 0x27842a92 -[UINavigationController _layoutViewController:] + 34 25 UIKit 0x27842992 -[UINavigationController
_updateScrollViewFromViewController:toViewController:] + 282 26 UIKit 0x27841d9c -[UINavigationController
_startTransition:fromViewController:toViewController:] + 80 27 UIKit 0x278419f2 -[UINavigationController
_startDeferredTransitionIfNeeded:] + 842 28 UIKit 0x2784163c -[UINavigationController __viewWillLayoutSubviews] + 48 29 UIKit 0x278415b2 -[UILayoutContainerView layoutSubviews] + 210 30 UIKit 0x2778246c
-[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 640 31 QuartzCore 0x27099f64 -[CALayer layoutSublayers] + 124 32 QuartzCore 0x27095714 CA::Layer::layout_if_needed(CA::Transaction*) + 348 33 QuartzCore 0x270955a4 CA::Layer::layout_and_display_if_needed(CA::Transaction*)
+ 12 34 QuartzCore 0x27094b0c CA::Context::commit_transaction(CA::Transaction*) + 364 35 QuartzCore 0x270947ce CA::Transaction::commit() + 586 36 QuartzCore 0x2708e17a CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 134 37 CoreFoundation 0x23638a3a
__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 18 38 CoreFoundation 0x23636d02 __CFRunLoopDoObservers + 278 39 CoreFoundation 0x23587abc CFRunLoopRunSpecific + 544 40 CoreFoundation 0x23587890 CFRunLoopRunInMode + 104 41 UIKit 0x277f2a82 -[UIApplication
_run] + 522 42 UIKit 0x277ed314 UIApplicationMain + 140 43 MyAppName 0x000bb176 main (main.m:16) 44 libdyld.dylib 0x3593a9cc start + 0
Thread 1: 0 libsystem_kernel.dylib 0x35a0a92c
__workq_kernreturn + 8 1 libsystem_pthread.dylib 0x35a9c8c0 _pthread_wqthread + 1032 2 libsystem_pthread.dylib 0x35a9c4a4 start_wqthread + 4
Thread 2 name: Dispatch queue: com.apple.libdispatch-manager Thread 2: 0 libsystem_kernel.dylib 0x35a0b3c0 kevent_qos + 24 1 libdispatch.dylib 0x3591ecfa _dispatch_mgr_invoke + 250 2 libdispatch.dylib 0x3591170a _dispatch_mgr_thread + 34
Thread 3: 0 libsystem_kernel.dylib 0x35a0a92c
__workq_kernreturn + 8 1 libsystem_pthread.dylib 0x35a9c8c0 _pthread_wqthread + 1032 2 libsystem_pthread.dylib 0x35a9c4a4 start_wqthread + 4
Thread 4: 0 libsystem_kernel.dylib 0x35a0a92c
__workq_kernreturn + 8 1 libsystem_pthread.dylib 0x35a9c8c0 _pthread_wqthread + 1032 2 libsystem_pthread.dylib 0x35a9c4a4 start_wqthread + 4
Thread 5 name: com.apple.NSURLConnectionLoader Thread 5: 0 libsystem_kernel.dylib 0x359f60b0 mach_msg_trap + 20 1 libsystem_kernel.dylib 0x359f5eac mach_msg + 36 2 CoreFoundation 0x23638e34 __CFRunLoopServiceMachPort + 132 3 CoreFoundation 0x2363718e __CFRunLoopRun + 1046 4 CoreFoundation 0x23587a9c CFRunLoopRunSpecific + 512 5 CoreFoundation 0x23587890 CFRunLoopRunInMode + 104 6 CFNetwork 0x22f166ea +[NSURLConnection(Loader) _resourceLoadLoop:] + 482 7 Foundation 0x2447eb0e __NSThread__start__ + 1098 8 libsystem_pthread.dylib 0x35a9ea84 _pthread_body + 136 9 libsystem_pthread.dylib 0x35a9e9f6 _pthread_start + 106 10 libsystem_pthread.dylib 0x35a9c4b0 thread_start + 4
Thread 6 name: GAIThread Thread 6: 0 libsystem_kernel.dylib 0x359f60b0 mach_msg_trap + 20 1 libsystem_kernel.dylib 0x359f5eac mach_msg + 36 2 CoreFoundation 0x23638e34 __CFRunLoopServiceMachPort + 132 3 CoreFoundation 0x2363718e __CFRunLoopRun + 1046 4 CoreFoundation 0x23587a9c CFRunLoopRunSpecific + 512 5 CoreFoundation 0x23587890 CFRunLoopRunInMode + 104 6 Foundation 0x243afb44 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 264 7 Foundation 0x243fe8c0 -[NSRunLoop(NSRunLoop) run]
+ 76 8 MyAppName 0x0015ccac +[GAI threadMain:] + 60 9 Foundation 0x2447eb0e __NSThread__start__ + 1098 10 libsystem_pthread.dylib 0x35a9ea84 _pthread_body + 136 11 libsystem_pthread.dylib 0x35a9e9f6 _pthread_start + 106 12 libsystem_pthread.dylib 0x35a9c4b0 thread_start + 4
Thread 7 name: NetworkLoad Thread 7: 0 libsystem_kernel.dylib 0x359f60b0 mach_msg_trap + 20 1 libsystem_kernel.dylib 0x359f5eac mach_msg + 36 2 CoreFoundation 0x23638e34 __CFRunLoopServiceMachPort + 132 3 CoreFoundation 0x2363718e __CFRunLoopRun + 1046 4 CoreFoundation 0x23587a9c CFRunLoopRunSpecific + 512 5 CoreFoundation 0x23587890 CFRunLoopRunInMode + 104 6 GeoServices 0x2c90c76a _runNetworkThread + 462 7 libsystem_pthread.dylib 0x35a9ea84 _pthread_body + 136 8 libsystem_pthread.dylib 0x35a9e9f6 _pthread_start + 106 9 libsystem_pthread.dylib 0x35a9c4b0 thread_start + 4
Thread 8 name: com.apple.CFSocket.private Thread 8: 0 libsystem_kernel.dylib 0x35a09fec __select + 20 1 CoreFoundation 0x2363dd44 __CFSocketManager + 568 2 libsystem_pthread.dylib 0x35a9ea84 _pthread_body + 136 3 libsystem_pthread.dylib 0x35a9e9f6 _pthread_start + 106 4 libsystem_pthread.dylib 0x35a9c4b0 thread_start + 4
No thread state (register information) available

Upgrading to the latest Xcode 7 beta 5 and iOS 9 beta 5 just resolved the issue. Thanks for the help guys.

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.

iOS application - crash random for iOS 11.4

We are having random app crash on button clicking.
here is the crash code - which crash only when the build is downloaded from the "testflight" where as while debugging it don't crash.
# Crashlytics - plaintext stacktrace downloaded by shanigee at Thu, 28 Jun 2018 14:13:01 GMT
# URL:
# Organization: PopWOW
# Platform: ios
# Application: PW Gen
# Version: 0.2.1
# Bundle Identifier: com.Popwow.pwgen
# Issue #: 66
# Issue ID: 5b3155a86007d59fcdd32ee4
# Session ID: bdba8bbbd66e42919f5288faf8b79b48_DNE_0_v2
# Date: 2018-06-28T13:45:00Z
# OS Version: 11.4.0 (15F79)
# Device: iPhone 6s
# RAM Free: 1.5%
# Disk Free: 5.9%
#0. Crashed: com.twitter.crashlytics.ios.exception
0 PopWOW 0x100aebc98 CLSProcessRecordAllThreads (CLSProcess.c:376)
1 PopWOW 0x100aebc98 CLSProcessRecordAllThreads (CLSProcess.c:376)
2 PopWOW 0x100aec10c CLSProcessRecordAllThreads (CLSProcess.c:407)
3 PopWOW 0x100adb74c CLSHandler (CLSHandler.m:26)
4 PopWOW 0x100aea204 __CLSExceptionRecord_block_invoke (CLSException.mm:199)
5 libdispatch.dylib 0x182e30a60 _dispatch_client_callout + 16
6 libdispatch.dylib 0x182e395bc _dispatch_queue_barrier_sync_invoke_and_complete + 56
7 PopWOW 0x100ae9c80 CLSExceptionRecord (CLSException.mm:206)
8 PopWOW 0x100ae9ab0 CLSExceptionRecordNSException (CLSException.mm:102)
9 PopWOW 0x100ae96b0 CLSTerminateHandler() (CLSException.mm:259)
10 libc++abi.dylib 0x1826e937c std::__terminate(void (*)()) + 16
11 libc++abi.dylib 0x1826e8f78 __cxa_rethrow + 144
12 libobjc.A.dylib 0x1826f87ac objc_exception_rethrow + 44
13 CoreFoundation 0x183404e18 CFRunLoopRunSpecific + 664
14 GraphicsServices 0x1853e9020 GSEventRunModal + 100
15 UIKit 0x18d421758 UIApplicationMain + 236
16 PopWOW 0x100503a88 main (UICheckBox.swift:21)
17 libdyld.dylib 0x182e95fc0 start + 4
--
Fatal Exception: NSInvalidArgumentException
0 CoreFoundation 0x18353ed8c __exceptionPreprocess
1 libobjc.A.dylib 0x1826f85ec objc_exception_throw
2 CoreFoundation 0x18354c098 __methodDescriptionForSelector
3 CoreFoundation 0x1835445c8 ___forwarding___
4 CoreFoundation 0x18342a41c _CF_forwarding_prep_0
5 UIKit 0x18dc708a4 __109-[UIView(UIConstraintBasedLayout_EngineDelegate) _invalidateSystemLayoutSizeFittingSizeAtEngineDelegateLevel]_block_invoke
6 UIKit 0x18d57457c _UIViewTopDownSubtreeTraversal
7 UIKit 0x18d189668 -[UIView(UIConstraintBasedLayout_EngineDelegate) _invalidateSystemLayoutSizeFittingSizeAtEngineDelegateLevel]
8 Foundation 0x183e8fb1c -[NSISEngine tryToAddConstraintWithMarker:expression:integralizationAdjustment:mutuallyExclusiveConstraints:]
9 Foundation 0x183e8f720 -[NSLayoutConstraint _addLoweredExpression:toEngine:integralizationAdjustment:lastLoweredConstantWasRounded:mutuallyExclusiveConstraints:]
10 Foundation 0x183e8b26c -[NSLayoutConstraint _addToEngine:integralizationAdjustment:mutuallyExclusiveConstraints:]
11 UIKit 0x18d448338 __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke_2
12 Foundation 0x183e8d500 -[NSISEngine withBehaviors:performModifications:]
13 UIKit 0x18d448178 __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke
14 UIKit 0x18d123e58 -[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]
15 UIKit 0x18d448274 __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke_2
16 Foundation 0x183e8d500 -[NSISEngine withBehaviors:performModifications:]
17 UIKit 0x18d448178 __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke
18 UIKit 0x18d123e58 -[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]
19 UIKit 0x18d448274 __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke_2
20 Foundation 0x183e8d500 -[NSISEngine withBehaviors:performModifications:]
21 UIKit 0x18d448178 __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke
22 UIKit 0x18d123e58 -[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]
23 UIKit 0x18d17526c -[UIView(AdditionalLayoutSupport) _initializeHostedLayoutEngine]
24 UIKit 0x18d1eb118 -[UIView(UIConstraintBasedLayout) _layoutEngine_windowDidChange]
25 UIKit 0x18d13c104 -[UIView(Internal) _didMoveFromWindow:toWindow:]
26 UIKit 0x18d13c2f8 -[UIView(Internal) _didMoveFromWindow:toWindow:]
27 UIKit 0x18d40e184 __45-[UIView(Hierarchy) _postMovedFromSuperview:]_block_invoke
28 Foundation 0x183e8d500 -[NSISEngine withBehaviors:performModifications:]
29 UIKit 0x18d123c40 -[UIView(Hierarchy) _postMovedFromSuperview:]
30 UIKit 0x18d122b60 -[UIView(Internal) _addSubview:positioned:relativeTo:]
31 UIKit 0x18d1dffc0 -[UITableView _addSubview:positioned:relativeTo:]
32 UIKit 0x18d21ee4c -[UIScrollView(UIScrollViewInternal) _addContentSubview:atBack:]
33 UIKit 0x18d1a7464 -[UITableView _addContentSubview:atBack:]
34 UIKit 0x18d459688 __53-[UITableView _configureCellForDisplay:forIndexPath:]_block_invoke
35 UIKit 0x18d10f148 +[UIView(Animation) performWithoutAnimation:]
36 UIKit 0x18d21b470 -[UITableView _configureCellForDisplay:forIndexPath:]
37 UIKit 0x18d21816c -[UITableView _createPreparedCellForGlobalRow:withIndexPath:willDisplay:]
38 UIKit 0x18d217d84 -[UITableView _createPreparedCellForGlobalRow:willDisplay:]
39 UIKit 0x18d216aa0 -[UITableView _updateVisibleCellsNow:isRecursive:]
40 UIKit 0x18d2125ec -[UITableView layoutSubviews]
41 UIKit 0x18d14f6f4 -[UIView(CALayerDelegate) layoutSublayersOfLayer:]
42 QuartzCore 0x1876c5fec -[CALayer layoutSublayers]
43 QuartzCore 0x1876ca17c CA::Layer::layout_if_needed(CA::Transaction*)
44 QuartzCore 0x187636830 CA::Context::commit_transaction(CA::Transaction*)
45 QuartzCore 0x18765e364 CA::Transaction::commit()
46 QuartzCore 0x18765f1e4 CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*)
47 CoreFoundation 0x1834e6910 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__
48 CoreFoundation 0x1834e4238 __CFRunLoopDoObservers
49 CoreFoundation 0x1834e4884 __CFRunLoopRun
50 CoreFoundation 0x183404da8 CFRunLoopRunSpecific
51 GraphicsServices 0x1853e9020 GSEventRunModal
52 UIKit 0x18d421758 UIApplicationMain
53 PopWOW 0x100503a88 main (UICheckBox.swift:21)
54 libdyld.dylib 0x182e95fc0 start
#0. Crashed: com.twitter.crashlytics.ios.exception
0 PopWOW 0x100aebc98 CLSProcessRecordAllThreads (CLSProcess.c:376)
1 PopWOW 0x100aebc98 CLSProcessRecordAllThreads (CLSProcess.c:376)
2 PopWOW 0x100aec10c CLSProcessRecordAllThreads (CLSProcess.c:407)
3 PopWOW 0x100adb74c CLSHandler (CLSHandler.m:26)
4 PopWOW 0x100aea204 __CLSExceptionRecord_block_invoke (CLSException.mm:199)
5 libdispatch.dylib 0x182e30a60 _dispatch_client_callout + 16
6 libdispatch.dylib 0x182e395bc _dispatch_queue_barrier_sync_invoke_and_complete + 56
7 PopWOW 0x100ae9c80 CLSExceptionRecord (CLSException.mm:206)
8 PopWOW 0x100ae9ab0 CLSExceptionRecordNSException (CLSException.mm:102)
9 PopWOW 0x100ae96b0 CLSTerminateHandler() (CLSException.mm:259)
10 libc++abi.dylib 0x1826e937c std::__terminate(void (*)()) + 16
11 libc++abi.dylib 0x1826e8f78 __cxa_rethrow + 144
12 libobjc.A.dylib 0x1826f87ac objc_exception_rethrow + 44
13 CoreFoundation 0x183404e18 CFRunLoopRunSpecific + 664
14 GraphicsServices 0x1853e9020 GSEventRunModal + 100
15 UIKit 0x18d421758 UIApplicationMain + 236
16 PopWOW 0x100503a88 main (UICheckBox.swift:21)
17 libdyld.dylib 0x182e95fc0 start + 4
#1. com.apple.uikit.eventfetch-thread
0 libsystem_kernel.dylib 0x182fa3e08 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x182fa3c80 mach_msg + 72
2 CoreFoundation 0x1834e6e40 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x1834e4908 __CFRunLoopRun + 1568
4 CoreFoundation 0x183404da8 CFRunLoopRunSpecific + 552
5 Foundation 0x183e79674 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
6 Foundation 0x183e7951c -[NSRunLoop(NSRunLoop) runUntilDate:] + 148
7 UIKit 0x18d106768 -[UIEventFetcher threadMain] + 136
8 Foundation 0x183f89efc __NSThread__start__ + 1040
9 libsystem_pthread.dylib 0x183165220 _pthread_body + 272
10 libsystem_pthread.dylib 0x183165110 _pthread_body + 290
11 libsystem_pthread.dylib 0x183163b10 thread_start + 4
#2. com.twitter.crashlytics.ios.MachExceptionServer
0 libsystem_kernel.dylib 0x182fa3e08 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x182fa3c80 mach_msg + 72
2 PopWOW 0x100ad665c CLSMachExceptionServer (CLSMachException.c:180)
3 libsystem_pthread.dylib 0x183165220 _pthread_body + 272
4 libsystem_pthread.dylib 0x183165110 _pthread_body + 290
5 libsystem_pthread.dylib 0x183163b10 thread_start + 4
#3. Thread
0 libsystem_kernel.dylib 0x182fc5d84 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x183163eb4 _pthread_wqthread + 928
2 libsystem_pthread.dylib 0x183163b08 start_wqthread + 4
#4. Thread
0 libsystem_kernel.dylib 0x182fc5d84 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x1831640a0 _pthread_wqthread + 1420
2 libsystem_pthread.dylib 0x183163b08 start_wqthread + 4
#5. com.apple.NSURLConnectionLoader
0 libsystem_kernel.dylib 0x182fa3e08 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x182fa3c80 mach_msg + 72
2 CoreFoundation 0x1834e6e40 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x1834e4908 __CFRunLoopRun + 1568
4 CoreFoundation 0x183404da8 CFRunLoopRunSpecific + 552
5 CFNetwork 0x183d126e0 -[__CoreSchedulingSetRunnable runForever] + 220
6 Foundation 0x183f89efc __NSThread__start__ + 1040
7 libsystem_pthread.dylib 0x183165220 _pthread_body + 272
8 libsystem_pthread.dylib 0x183165110 _pthread_body + 290
9 libsystem_pthread.dylib 0x183163b10 thread_start + 4
#6. com.squareup.SocketRocket.NetworkThread
0 libsystem_kernel.dylib 0x182fa3e08 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x182fa3c80 mach_msg + 72
2 CoreFoundation 0x1834e6e40 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x1834e4908 __CFRunLoopRun + 1568
4 CoreFoundation 0x183404da8 CFRunLoopRunSpecific + 552
5 Foundation 0x183e79674 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
6 PopWOW 0x100c2ac04 -[_FSRRunLoopThread main] + 4338772996
7 Foundation 0x183f89efc __NSThread__start__ + 1040
8 libsystem_pthread.dylib 0x183165220 _pthread_body + 272
9 libsystem_pthread.dylib 0x183165110 _pthread_body + 290
10 libsystem_pthread.dylib 0x183163b10 thread_start + 4
#7. com.apple.CFSocket.private
0 libsystem_kernel.dylib 0x182fc5538 __select + 8
1 CoreFoundation 0x1834ef378 __CFSocketManager + 644
2 libsystem_pthread.dylib 0x183165220 _pthread_body + 272
3 libsystem_pthread.dylib 0x183165110 _pthread_body + 290
4 libsystem_pthread.dylib 0x183163b10 thread_start + 4
#8. Thread
0 libsystem_kernel.dylib 0x182fc5d84 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x183163eb4 _pthread_wqthread + 928
2 libsystem_pthread.dylib 0x183163b08 start_wqthread + 4
#9. Thread
0 libsystem_kernel.dylib 0x182fc5d84 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x183163eb4 _pthread_wqthread + 928
2 libsystem_pthread.dylib 0x183163b08 start_wqthread + 4
#10. Thread
0 libsystem_kernel.dylib 0x182fc5d84 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x183163eb4 _pthread_wqthread + 928
2 libsystem_pthread.dylib 0x183163b08 start_wqthread + 4
Anyone can suggest anything? - it does not crash while debugging ( we even enable NSZombie ) but when pushed to test flight it crash on the flow.
Any highlights or clue for identifying and solving this would be great help.
I don't know if you solved it or this is the correct solution for your problem, but I faced the same issue, so edit my scheme to "release", then found this issue, "was compiled with optimization - stepping may behave oddly; variables may not be available". Then what I did was just changing the optimisation level from build settings to "no optimizaion".. every thing worked fine from then on..

IOS 11 Application Crashes When PushKit Receive Push While App is Terminated

Our application started to act weird when ios 11 update is released. We are using pushkit to receive push notifications related with incoming call and messages.
While the app is not in the background(in terminated state), when a push notification arrives IOS raises our app and execute didFinishLaunching method than notification arrives to didReceiveIncomingPushWithPayload method
However after updating to IOS 11 we found out that while the app is terminated sometimes we cannot receive notifications and when we checked the crashlogs we saw that app is crashing and as the reason IOS says cpu usage but it succesfully executes didFinishLaunching method(we put logs to the end of the method and they are printed)
We dont know what may cause this problem, does anyone have any idea about the changes in IOS 11 to trigger that problem
Below you can find our crashlog
Incident Identifier: 6ED4EB5C-7E9E-4639-860B-312A48C74F49
CrashReporter Key: cbdfc5f8b24a9e7b992bec953fb095b1909482bc
Hardware Model: iPhone9,1
Process: DTimmmr [4534]
Path: /private/var/containers/Bundle/Application/B3B6FE24-DBCE-4966-9C6D-18778F73E668/DTimmmr.app/DTimmmr
Identifier: com.genband.immmrMagenta
Version: 7.3.3.791 (0.94)
Code Type: ARM-64 (Native)
Role: Non UI
Parent Process: launchd [1]
Coalition: com.genband.immmrMagenta [3863]
Date/Time: 2017-11-06 21:58:45.0631 +0300
Launch Time: 2017-11-06 21:58:39.6223 +0300
OS Version: iPhone OS 11.1 (15B93)
Baseband Version: 3.21.01
Report Version: 104
Exception Type: EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace SPRINGBOARD, Code 0x8badf00d
Termination Description: SPRINGBOARD, scene-create watchdog transgression: com.genband.immmrMagenta exhausted CPU time allowance of 3.96 seconds | | Elapsed total CPU time (seconds): 7.920 (user 7.920, system 0.000), 78% CPU | Elapsed application CPU time (seconds): 5.525, 54% CPU |
Triggered by Thread: 0
Filtered syslog:
None found
Thread 0 name: Main Thread Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 CoreUI 0x00000001891f9938 _CUICopySortedKeySignature + 232
1 CoreUI 0x00000001891f9894 _CUICopySortedKeySignature + 68
2 CoreUI 0x00000001891f9c14 CUICopyKeySignatureWithPrefix + 284
3 CoreUI 0x0000000189241680 -[CUIStructuredThemeStore copyKeySignatureForKey:withBytesNoCopy:length:] + 60
4 CoreUI 0x000000018922a0b8 -[CUIMutableStructuredThemeStore renditionWithKey:] + 64
5 CoreUI 0x000000018922a05c -[CUIMutableStructuredThemeStore canGetRenditionWithKey:] + 20
6 CoreUI 0x000000018926d3c0 -[CUICatalog _resolvedRenditionKeyFromThemeRef:withBaseKey:scaleFactor:deviceIdiom:deviceSubtype:displayGamut:layoutDirection:sizeClassHorizontal:sizeClassVertical:memoryClass:graphicsClass:graphicsFallBackOrder:iconSizeIndex:] + 2192
7 CoreUI 0x000000018926cb2c -[CUICatalog _resolvedRenditionKeyForName:scaleFactor:deviceIdiom:deviceSubtype:displayGamut:layoutDirection:sizeClassHorizontal:sizeClassVertical:memoryClass:graphicsClass:graphicsFallBackOrder:withBaseKeySelector:] + 308
8 CoreUI 0x000000018926896c -[CUICatalog _imageWithName:scaleFactor:deviceIdiom:deviceSubtype:displayGamut:layoutDirection:sizeClassHorizontal:sizeClassVertical:memoryClass:graphicsClass:graphicsFallBackOrder:] + 184
9 CoreUI 0x0000000189268acc -[CUICatalog imageWithName:scaleFactor:deviceIdiom:deviceSubtype:displayGamut:layoutDirection:sizeClassHorizontal:sizeClassVertical:memoryClass:graphicsClass:graphicsFallBackOrder:] + 156
10 CoreUI 0x00000001892687a8 -[CUICatalog imageWithName:scaleFactor:deviceIdiom:deviceSubtype:displayGamut:layoutDirection:sizeClassHorizontal:sizeClassVertical:] + 160
11 UIKit 0x000000018bec6a88 -[UIImageAsset imageWithTraitCollection:] + 628
12 UIKit 0x000000018bec7d70 -[_UIPathLazyImageAsset imageWithTraitCollection:] + 400
13 UIKit 0x000000018b4ad594 +[UIImage imageNamed:inBundle:compatibleWithTraitCollection:] + 380
14 UIKit 0x000000018b329160 +[UIImage imageNamed:] + 124
15 DTimmmr 0x000000010465acc8 +[UIStorage loadPixelPreciseImageNamed:] + 3747016 (UIStorage.mm:425)
16 DTimmmr 0x000000010461b2b8 -[WelcomeScreenViewController viewDidLoad] + 3486392 (WelcomeScreenViewController.mm:47)
17 UIKit 0x000000018b208f08 -[UIViewController loadViewIfRequired] + 1040
18 UIKit 0x000000018b2b05f8 -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 76
19 UIKit 0x000000018b2afa98 -[UINavigationController _startTransition:fromViewController:toViewController:] + 196
20 UIKit 0x000000018b2af49c -[UINavigationController _startDeferredTransitionIfNeeded:] + 1168
21 UIKit 0x000000018b2aef18 -[UINavigationController __viewWillLayoutSubviews] + 164
22 UIKit 0x000000018b2aee18 -[UILayoutContainerView layoutSubviews] + 188
23 UIKit 0x000000018b478f74 _runAfterCACommitDeferredBlocks + 292
24 UIKit 0x000000018b46c318 _cleanUpAfterCAFlushAndRunDeferredBlocks + 288
25 UIKit 0x000000018b48418c __34-[UIApplication _firstCommitBlock]_block_invoke_2 + 152
26 CoreFoundation 0x0000000181d7a0fc __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 20
27 CoreFoundation 0x0000000181d799cc __CFRunLoopDoBlocks + 288
28 CoreFoundation 0x0000000181d776dc __CFRunLoopRun + 1068
29 CoreFoundation 0x0000000181c97fb8 CFRunLoopRunSpecific + 436
30 GraphicsServices 0x0000000183b2ff84 GSEventRunModal + 100
31 UIKit 0x000000018b26c2f4 UIApplicationMain + 208
32 DTimmmr 0x00000001042d8038 main + 65592 (main.m:15)
33 libdyld.dylib 0x00000001817ba56c start + 4
Thread 1 name: Dispatch queue: com.apple.CoreLocation.ConnectionClient.0x1c412c620.events
Thread 1:
0 libsystem_kernel.dylib 0x00000001818c8c18 semaphore_timedwait_trap + 8
1 libdispatch.dylib 0x00000001817574d0 _dispatch_sema4_timedwait$VARIANT$mp + 84
2 libdispatch.dylib 0x0000000181757d40 _dispatch_semaphore_wait_slow + 72
3 CoreLocation 0x0000000188326aa8 0x188323000 + 15016
4 CoreLocation 0x000000018832c53c 0x188323000 + 38204
5 CoreLocation 0x000000018832c26c 0x188323000 + 37484
6 CoreLocation 0x0000000188383f58 0x188323000 + 397144
7 CoreLocation 0x000000018838032c 0x188323000 + 381740
8 CoreLocation 0x0000000188380250 0x188323000 + 381520
9 CoreLocation 0x0000000188381ae4 0x188323000 + 387812
10 libxpc.dylib 0x0000000181a367d0 _xpc_connection_call_event_handler + 68
11 libxpc.dylib 0x0000000181a34168 _xpc_connection_mach_event + 984
12 libdispatch.dylib 0x0000000181755118 _dispatch_client_callout4 + 16
13 libdispatch.dylib 0x000000018176b8b8 _dispatch_mach_msg_invoke$VARIANT$mp + 356
14 libdispatch.dylib 0x000000018175ed00 _dispatch_queue_serial_drain$VARIANT$mp + 200
15 libdispatch.dylib 0x000000018176c534 _dispatch_mach_invoke$VARIANT$mp + 952
16 libdispatch.dylib 0x000000018175ed00 _dispatch_queue_serial_drain$VARIANT$mp + 200
17 libdispatch.dylib 0x000000018175f7d8 _dispatch_queue_invoke$VARIANT$mp + 340
18 libdispatch.dylib 0x000000018175ed00 _dispatch_queue_serial_drain$VARIANT$mp + 200
19 libdispatch.dylib 0x000000018175f7d8 _dispatch_queue_invoke$VARIANT$mp + 340
20 libdispatch.dylib 0x0000000181760200 _dispatch_root_queue_drain_deferred_wlh$VARIANT$mp + 400
21 libdispatch.dylib 0x00000001817684a0 _dispatch_workloop_worker_thread$VARIANT$mp + 644
22 libsystem_pthread.dylib 0x00000001819fafd0 _pthread_wqthread + 932
23 libsystem_pthread.dylib 0x00000001819fac20 start_wqthread + 4
Thread 2 name: 7543851008
Thread 2:
0 libsystem_pthread.dylib 0x00000001819fac1c start_wqthread + 0
Thread 3 name: com.apple.uikit.eventfetch-thread
Thread 3:
0 libsystem_kernel.dylib 0x00000001818c8bc4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001818c8a3c mach_msg + 72
2 CoreFoundation 0x0000000181d79c74 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000181d77840 __CFRunLoopRun + 1424
4 CoreFoundation 0x0000000181c97fb8 CFRunLoopRunSpecific + 436
5 Foundation 0x00000001826c16e4 -[NSRunLoop+ 50916 (NSRunLoop) runMode:beforeDate:] + 304
6 Foundation 0x00000001826e0afc -[NSRunLoop+ 178940 (NSRunLoop) runUntilDate:] + 96
7 UIKit 0x000000018bdcb2f4 -[UIEventFetcher threadMain] + 136
8 Foundation 0x00000001827c2860 __NSThread__start__ + 996
9 libsystem_pthread.dylib 0x00000001819fc31c _pthread_body + 308
10 libsystem_pthread.dylib 0x00000001819fc1e8 _pthread_body + 0
11 libsystem_pthread.dylib 0x00000001819fac28 thread_start + 4
Thread 4 name: 7619425472 Dispatch queue: com.apple.root.default-qos
Thread 4:
0 libsystem_kernel.dylib 0x00000001818e9150 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001819fed30 _pthread_cond_wait$VARIANT$mp + 640
2 Foundation 0x00000001826d3b44 -[NSObject+ 125764 (NSThreadPerformAdditions) performSelector:onThread:withObject:waitUntilDone:modes:] + 764
3 Foundation 0x00000001826d7e28 -[NSObject+ 142888 (NSThreadPerformAdditions) performSelectorOnMainThread:withObject:waitUntilDone:] + 144
4 DTimmmr 0x0000000104476f64 -[GsmAddressBookManager _initAddressBookObj] + 1765220 (GsmAddressBookManager.mm:163)
5 DTimmmr 0x000000010447a624 -[GsmAddressBookManager implicitlyLoadAddressBookContacts] + 1779236 (GsmAddressBookManager.mm:892)
6 DTimmmr 0x0000000104a1d924 -[NSObject(DebounceSelector) debounceSelector:object:timeout:] + 7690532 (NSObject+DebounceSelector.m:78)
7 DTimmmr 0x0000000104a1d6b0 -[NSObject(DebounceSelector) debounceSelector:timeout:] + 7689904 (NSObject+DebounceSelector.m:56)
8 DTimmmr 0x000000010447a594 -[GsmAddressBookManager loadAddressBookContacts] + 1779092 (GsmAddressBookManager.mm:879)
9 DTimmmr 0x000000010447a264 __53-[GsmAddressBookManager asyncLoadAddressBookContacts]_block_invoke + 1778276 (GsmAddressBookManager.mm:864)
10 libdispatch.dylib 0x0000000181755088 _dispatch_call_block_and_release + 24
11 libdispatch.dylib 0x0000000181755048 _dispatch_client_callout + 16
12 libdispatch.dylib 0x000000018175c090 _dispatch_queue_override_invoke$VARIANT$mp + 716
13 libdispatch.dylib 0x00000001817621c8 _dispatch_root_queue_drain + 596
14 libdispatch.dylib 0x0000000181761f10 _dispatch_worker_thread3 + 120
15 libsystem_pthread.dylib 0x00000001819fb120 _pthread_wqthread + 1268
16 libsystem_pthread.dylib 0x00000001819fac20 start_wqthread + 4
Thread 5 name: 7619384576 Dispatch queue: com.apple.root.user-initiated-qos
Thread 5:
0 libsystem_platform.dylib 0x00000001819f7f0c DYLD-STUB$$OSAtomicAdd32 + 0
1 CoreFoundation 0x0000000181de214c -[_CFXNotificationRegistrar add:object:observer:tokenRegistration:] + 460
2 CoreFoundation 0x0000000181ca3d94 _CFXNotificationRegisterObserver + 1332
3 Foundation 0x00000001826b8530 -[NSNotificationCenter addObserver:selector:name:object:] + 392
4 DTimmmr 0x0000000104622010 -[Contact initWithFirstName:andLastName:andDisplayName:] + 3514384 (Contact.mm:116)
5 DTimmmr 0x0000000104627c94 +[Contact contactWithDictionary:] + 3538068 (Contact.mm:906)
6 DTimmmr 0x0000000104479f0c -[GsmAddressBookManager _getCachedContactsFromArray:] + 1777420 (GsmAddressBookManager.mm:841)
7 DTimmmr 0x000000010447a10c __58-[GsmAddressBookManager _asyncGetCachedContactsFromArray:]_block_invoke + 1777932 (GsmAddressBookManager.mm:856)
8 libdispatch.dylib 0x0000000181755088 _dispatch_call_block_and_release + 24
9 libdispatch.dylib 0x0000000181755048 _dispatch_client_callout + 16
10 libdispatch.dylib 0x0000000181762378 _dispatch_root_queue_drain + 1028
11 libdispatch.dylib 0x0000000181761f10 _dispatch_worker_thread3 + 120
12 libsystem_pthread.dylib 0x00000001819fb120 _pthread_wqthread + 1268
13 libsystem_pthread.dylib 0x00000001819fac20 start_wqthread + 4
Thread 6 name: AVAudioSession Notify Thread
Thread 6:
0 libsystem_kernel.dylib 0x00000001818c8bc4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001818c8a3c mach_msg + 72
2 CoreFoundation 0x0000000181d79c74 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000181d77840 __CFRunLoopRun + 1424
4 CoreFoundation 0x0000000181c97fb8 CFRunLoopRunSpecific + 436
5 AVFAudio 0x0000000187580774 GenericRunLoopThread::Entry+ 542580 (void*) + 164
6 AVFAudio 0x00000001875ab018 CAPThread::Entry+ 716824 (CAPThread*) + 84
7 libsystem_pthread.dylib 0x00000001819fc31c _pthread_body + 308
8 libsystem_pthread.dylib 0x00000001819fc1e8 _pthread_body + 0
9 libsystem_pthread.dylib 0x00000001819fac28 thread_start + 4
Thread 7 name: Thread 0x0x127d240a0
Thread 7:
0 libsystem_kernel.dylib 0x00000001818e9570 __select + 8
1 DTimmmr 0x0000000104f26148 rtc::PhysicalSocketServer::Wait+ 12968264 (int, bool) + 696
2 DTimmmr 0x0000000104f1706c rtc::MessageQueue::Get+ 12906604 (rtc::Message*, int, bool) + 1064
3 DTimmmr 0x0000000104f2fc1c rtc::Thread::ProcessMessages+ 13007900 (int) + 120
4 DTimmmr 0x0000000104f2fb84 rtc::Thread::PreRun+ 13007748 (void*) + 104
5 libsystem_pthread.dylib 0x00000001819fc31c _pthread_body + 308
6 libsystem_pthread.dylib 0x00000001819fc1e8 _pthread_body + 0
7 libsystem_pthread.dylib 0x00000001819fac28 thread_start + 4
Thread 8 name: Thread 0x0x127d24240
Thread 8:
0 libsystem_kernel.dylib 0x00000001818e9150 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001819fed30 _pthread_cond_wait$VARIANT$mp + 640
2 DTimmmr 0x0000000104ef92e8 rtc::Event::Wait+ 12784360 (int) + 244
3 DTimmmr 0x0000000104f1dae4 rtc::NullSocketServer::Wait+ 12933860 (int, bool) + 16
4 DTimmmr 0x0000000104f1706c rtc::MessageQueue::Get+ 12906604 (rtc::Message*, int, bool) + 1064
5 DTimmmr 0x0000000104f2fc1c rtc::Thread::ProcessMessages+ 13007900 (int) + 120
6 DTimmmr 0x0000000104f2fb84 rtc::Thread::PreRun+ 13007748 (void*) + 104
7 libsystem_pthread.dylib 0x00000001819fc31c _pthread_body + 308
8 libsystem_pthread.dylib 0x00000001819fc1e8 _pthread_body + 0
9 libsystem_pthread.dylib 0x00000001819fac28 thread_start + 4
Thread 9 name: Thread 0x0x127d243e0
Thread 9:
0 libsystem_kernel.dylib 0x00000001818e9150 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001819fed30 _pthread_cond_wait$VARIANT$mp + 640
2 DTimmmr 0x0000000104ef92e8 rtc::Event::Wait+ 12784360 (int) + 244
3 DTimmmr 0x0000000104f1dae4 rtc::NullSocketServer::Wait+ 12933860 (int, bool) + 16
4 DTimmmr 0x0000000104f1706c rtc::MessageQueue::Get+ 12906604 (rtc::Message*, int, bool) + 1064
5 DTimmmr 0x0000000104f2fce8 rtc::Thread::ProcessMessages+ 13008104 (int) + 324
6 DTimmmr 0x0000000104f2fb84 rtc::Thread::PreRun+ 13007748 (void*) + 104
7 libsystem_pthread.dylib 0x00000001819fc31c _pthread_body + 308
8 libsystem_pthread.dylib 0x00000001819fc1e8 _pthread_body + 0
9 libsystem_pthread.dylib 0x00000001819fac28 thread_start + 4
Thread 10 name: VoiceProcessThread
Thread 10:
0 libsystem_kernel.dylib 0x00000001818e9150 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001819fed30 _pthread_cond_wait$VARIANT$mp + 640
2 DTimmmr 0x0000000104ef92b8 rtc::Event::Wait+ 12784312 (int) + 196
3 DTimmmr 0x0000000104f089d4 webrtc::EventWrapperImpl::Wait+ 12847572 (unsigned long) + 16
4 DTimmmr 0x00000001051839d0 webrtc::ProcessThreadImpl::Process+ 15448528 () + 876
5 DTimmmr 0x0000000104efa06c rtc::PlatformThread::Run+ 12787820 () + 400
6 DTimmmr 0x0000000104ef9ed0 rtc::PlatformThread::StartThread+ 12787408 (void*) + 12
7 libsystem_pthread.dylib 0x00000001819fc31c _pthread_body + 308
8 libsystem_pthread.dylib 0x00000001819fc1e8 _pthread_body + 0
9 libsystem_pthread.dylib 0x00000001819fac28 thread_start + 4
Thread 11 name: 7548104896
Thread 11:
0 libsystem_pthread.dylib 0x00000001819fac1c start_wqthread + 0
Thread 12 name: 7617291584 Dispatch queue: WebRequestsOperationQueue (QOS: UNSPECIFIED)
Thread 12:
0 libsystem_kernel.dylib 0x00000001818ea800 kevent_id + 8
1 libdispatch.dylib 0x00000001817708f8 _dispatch_kq_poll + 204
2 libdispatch.dylib 0x00000001817712c0 _dispatch_event_loop_wait_for_ownership$VARIANT$mp + 432
3 libdispatch.dylib 0x0000000181763018 _dispatch_sync_wait + 416
4 DTimmmr 0x0000000104a84d74 -[DDLog queueLogMessage:asynchronously:] + 8113524 (DDLog.m:370)
5 DTimmmr 0x0000000104a85438 -[DDLog log:message:level:flag:context:file:function:line:tag:] + 8115256 (DDLog.m:510)
6 DTimmmr 0x0000000104a852d4 +[DDLog log:message:level:flag:context:file:function:line:tag:] + 8114900 (DDLog.m:0)
7 DTimmmr 0x0000000104a84f1c +[DDLog log:level:flag:context:file:function:line:tag:format:] + 8113948 (DDLog.m:403)
8 DTimmmr 0x00000001045de72c +[FSPLogger logAsync:level:flag:context:tag:function:format:] + 3237676 (FSPLogger.m:89)
9 DTimmmr 0x00000001047f0ebc -[KandySDKLogger logWithLevel:andLogString:] + 5410492 (KandySDKLogger.m:37)
10 DTimmmr 0x0000000104da4724 -[KandyLoggerMediator logWithDate:andThreadName:andLevel:andFileName:andLine:andMethodName:andLogString:] + 508
11 DTimmmr 0x0000000104dc9af4 -[KandyBaseWebRequestOperation connection:didReceiveResponse:] + 380
12 CFNetwork 0x00000001825a9d48 __65-[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:]_block_invoke + 60
13 CFNetwork 0x00000001825a9cec -[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:] + 204
14 CFNetwork 0x00000001825a9e60 -[NSURLConnectionInternal _withActiveConnectionAndDelegate:] + 56
15 CFNetwork 0x0000000182564f60 _NSURLConnectionDidReceiveResponse+ 2170720 (_CFURLConnection*, _CFURLResponse*, void const*) + 84
16 CFNetwork 0x00000001824b402c invocation function for block in URLConnectionClient_Classic::_delegate_didReceiveResponse+ 1445932 (_CFURLResponse*) + 108
17 CFNetwork 0x00000001824af9d0 invocation function for block in URLConnectionClient_Classic::_withDelegateAsync(char const*, void + 1427920 (_CFURLConnection*, CFURLConnectionClientCurrent_VMax const*) block_pointer) + 108
18 libdispatch.dylib 0x0000000181755048 _dispatch_client_callout + 16
19 libdispatch.dylib 0x000000018175c6c8 _dispatch_block_invoke_direct$VARIANT$mp + 288
20 CFNetwork 0x0000000182581f94 RunloopBlockContext::_invoke_block+ 2289556 (void const*, void*) + 36
21 CoreFoundation 0x0000000181c97900 CFArrayApplyFunction + 80
22 CFNetwork 0x0000000182581e58 RunloopBlockContext::perform+ 2289240 () + 128
23 CFNetwork 0x00000001825831d8 MultiplexerSource::perform+ 2294232 () + 312
24 CFNetwork 0x0000000182582f38 MultiplexerSource::_perform+ 2293560 (void*) + 60
25 CoreFoundation 0x0000000181d7a2e8 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
26 CoreFoundation 0x0000000181d7a268 __CFRunLoopDoSource0 + 88
27 CoreFoundation 0x0000000181d79af0 __CFRunLoopDoSources0 + 204
28 CoreFoundation 0x0000000181d776c8 __CFRunLoopRun + 1048
29 CoreFoundation 0x0000000181c97fb8 CFRunLoopRunSpecific + 436
30 CoreFoundation 0x0000000181ce7098 CFRunLoopRun + 116
31 DTimmmr 0x0000000104dc85c0 -[KandyBaseWebRequestOperation start] + 680
32 Foundation 0x000000018279f004 __NSOQSchedule_f + 404
33 libdispatch.dylib 0x0000000181755048 _dispatch_client_callout + 16
34 libdispatch.dylib 0x000000018175d3d4 _dispatch_continuation_pop$VARIANT$mp + 428
35 libdispatch.dylib 0x000000018175bcd4 _dispatch_async_redirect_invoke$VARIANT$mp + 604
36 libdispatch.dylib 0x00000001817621c8 _dispatch_root_queue_drain + 596
37 libdispatch.dylib 0x0000000181761f10 _dispatch_worker_thread3 + 120
38 libsystem_pthread.dylib 0x00000001819fb120 _pthread_wqthread + 1268
39 libsystem_pthread.dylib 0x00000001819fac20 start_wqthread + 4
Thread 13 name: com.squareup.SocketRocket.NetworkThread
Thread 13:
0 libsystem_kernel.dylib 0x00000001818c8bc4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001818c8a3c mach_msg + 72
2 CoreFoundation 0x0000000181d79c74 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000181d77840 __CFRunLoopRun + 1424
4 CoreFoundation 0x0000000181c97fb8 CFRunLoopRunSpecific + 436
5 Foundation 0x00000001826c16e4 -[NSRunLoop+ 50916 (NSRunLoop) runMode:beforeDate:] + 304
6 DTimmmr 0x000000010534bba8 -[_SRRunLoopThread main] + 252
7 Foundation 0x00000001827c2860 __NSThread__start__ + 996
8 libsystem_pthread.dylib 0x00000001819fc31c _pthread_body + 308
9 libsystem_pthread.dylib 0x00000001819fc1e8 _pthread_body + 0
10 libsystem_pthread.dylib 0x00000001819fac28 thread_start + 4
Thread 14 name: com.apple.NSURLConnectionLoader
Thread 14:
0 libsystem_kernel.dylib 0x00000001818c8bc4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001818c8a3c mach_msg + 72
2 CoreFoundation 0x0000000181d79c74 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000181d77840 __CFRunLoopRun + 1424
4 CoreFoundation 0x0000000181c97fb8 CFRunLoopRunSpecific + 436
5 CFNetwork 0x0000000182402264 +[NSURLConnection+ 717412 (Loader) _resourceLoadLoop:] + 404
6 Foundation 0x00000001827c2860 __NSThread__start__ + 996
7 libsystem_pthread.dylib 0x00000001819fc31c _pthread_body + 308
8 libsystem_pthread.dylib 0x00000001819fc1e8 _pthread_body + 0
9 libsystem_pthread.dylib 0x00000001819fac28 thread_start + 4
Thread 15 name: 7617336192 Dispatch queue: cocoa.lumberjack
Thread 15:
0 libsystem_kernel.dylib 0x00000001818c8c00 semaphore_wait_trap + 8
1 libdispatch.dylib 0x00000001817573d4 _dispatch_sema4_wait$VARIANT$mp + 24
2 libdispatch.dylib 0x0000000181758328 _dispatch_group_wait_slow + 196
3 DTimmmr 0x0000000104a86840 -[DDLog lt_log:] + 8120384 (DDLog.m:844)
4 DTimmmr 0x0000000104a84dd0 __40-[DDLog queueLogMessage:asynchronously:]_block_invoke + 8113616 (DDLog.m:362)
5 libdispatch.dylib 0x0000000181755048 _dispatch_client_callout + 16
6 libdispatch.dylib 0x000000018175dae8 _dispatch_queue_barrier_sync_invoke_and_complete + 56
7 DTimmmr 0x0000000104a84d74 -[DDLog queueLogMessage:asynchronously:] + 8113524 (DDLog.m:370)
8 DTimmmr 0x0000000104a85438 -[DDLog log:message:level:flag:context:file:function:line:tag:] + 8115256 (DDLog.m:510)
9 DTimmmr 0x0000000104a852d4 +[DDLog log:message:level:flag:context:file:function:line:tag:] + 8114900 (DDLog.m:0)
10 DTimmmr 0x0000000104a84f1c +[DDLog log:level:flag:context:file:function:line:tag:format:] + 8113948 (DDLog.m:403)
11 DTimmmr 0x00000001045de72c +[FSPLogger logAsync:level:flag:context:tag:function:format:] + 3237676 (FSPLogger.m:89)
12 DTimmmr 0x00000001047f0ebc -[KandySDKLogger logWithLevel:andLogString:] + 5410492 (KandySDKLogger.m:37)
13 DTimmmr 0x0000000104da4724 -[KandyLoggerMediator logWithDate:andThreadName:andLevel:andFileName:andLine:andMethodName:andLogString:] + 508
14 DTimmmr 0x0000000104dc9af4 -[KandyBaseWebRequestOperation connection:didReceiveResponse:] + 380
15 CFNetwork 0x00000001825a9d48 __65-[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:]_block_invoke + 60
16 CFNetwork 0x00000001825a9cec -[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:] + 204
17 CFNetwork 0x00000001825a9e60 -[NSURLConnectionInternal _withActiveConnectionAndDelegate:] + 56
18 CFNetwork 0x0000000182564f60 _NSURLConnectionDidReceiveResponse+ 2170720 (_CFURLConnection*, _CFURLResponse*, void const*) + 84
19 CFNetwork 0x00000001824b402c invocation function for block in URLConnectionClient_Classic::_delegate_didReceiveResponse+ 1445932 (_CFURLResponse*) + 108
20 CFNetwork 0x00000001824af9d0 invocation function for block in URLConnectionClient_Classic::_withDelegateAsync(char const*, void + 1427920 (_CFURLConnection*, CFURLConnectionClientCurrent_VMax const*) block_pointer) + 108
21 libdispatch.dylib 0x0000000181755048 _dispatch_client_callout + 16
22 libdispatch.dylib 0x000000018175c6c8 _dispatch_block_invoke_direct$VARIANT$mp + 288
23 CFNetwork 0x0000000182581f94 RunloopBlockContext::_invoke_block+ 2289556 (void const*, void*) + 36
24 CoreFoundation 0x0000000181c97900 CFArrayApplyFunction + 80
25 CFNetwork 0x0000000182581e58 RunloopBlockContext::perform+ 2289240 () + 128
26 CFNetwork 0x00000001825831d8 MultiplexerSource::perform+ 2294232 () + 312
27 CFNetwork 0x0000000182582f38 MultiplexerSource::_perform+ 2293560 (void*) + 60
28 CoreFoundation 0x0000000181d7a2e8
We found out that, in ios11 apple reduces the time that is needed to start the application while the app is in background(In our case it was 2.9 seconds), so when you go beyond it, app is automaticaly killed by IOS.
So we find the solution as minimizing the loading times (such as minimizing the splash screens etc..) and also removing the codes which is not neccesarily need to work on background. And we made our app to launch at 1.8 seconds than crash problem is resolved

iOS app crashing with "failed to launch in time"

One of my beta testers reported that my app was crashing repeatedly on her phone, of course when I went over to look at it there weren't any problems. But I pulled the crash log and am trying to figure out how to read these things. Two of them looked pretty similar (one is posted below). I just need someone to hold my hand a little bit when it comes to staring at these. I initially was suspecting memory issues but then someone said that memory leaks don't cause crashes unless you flood yourself, and this log doesn't mention anything about memory. Can anyone give me any hints on what might have happened?
Date/Time: 2012-12-19 10:09:05.852 -0700
OS Version: iOS 6.0.1 (10A523)
Report Version: 104
Exception Type: 00000020
Exception Codes: 0x000000008badf00d
Highlighted Thread: 0
Application Specific Information:
com.graphiteGames.Capture-This failed to launch in time
Elapsed total CPU time (seconds): 2.730 (user 2.730, system 0.000), 14% CPU
Elapsed application CPU time (seconds): 0.930, 5% CPU
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libsystem_kernel.dylib 0x33fc40fc __psynch_mutexwait + 24
1 libsystem_c.dylib 0x35438124 pthread_mutex_lock + 388
2 Capture This 0x000a1a7a -[PFObject objectForKey:] (PFObject.m:1572)
3 Capture This 0x00092c06 -[RootTableView tableView:cellForRowAtIndexPath:] (RootTableView.m:228)
4 UIKit 0x37f49540 -[UITableView(UITableViewInternal) _createPreparedCellForGlobalRow:withIndexPath:] + 408
5 UIKit 0x37f2e306 -[UITableView(_UITableViewPrivate) _updateVisibleCellsNow:] + 1306
6 UIKit 0x37f457c2 -[UITableView layoutSubviews] + 202
7 UIKit 0x37f017fe -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 254
8 QuartzCore 0x30db5d5e -[CALayer layoutSublayers] + 210
9 QuartzCore 0x30db58fc CA::Layer::layout_if_needed(CA::Transaction*) + 456
10 QuartzCore 0x30de47a2 -[CALayer layoutIfNeeded] + 138
11 UIKit 0x37fab0c4 -[UIViewController window:setupWithInterfaceOrientation:] + 204
12 UIKit 0x37faa2b0 -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:isRotating:] + 3616
13 UIKit 0x37fa9482 -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:] + 42
14 UIKit 0x37fa940c -[UIWindow _setRotatableViewOrientation:duration:force:] + 64
15 UIKit 0x380df17c __57-[UIWindow _updateToInterfaceOrientation:duration:force:]_block_invoke_0 + 100
16 UIKit 0x37f67676 -[UIWindow _updateToInterfaceOrientation:duration:force:] + 214
17 UIKit 0x37f673b8 -[UIWindow setAutorotates:forceUpdateInterfaceOrientation:] + 688
18 UIKit 0x37f66d26 -[UIViewController _tryBecomeRootViewControllerInWindow:] + 154
19 UIKit 0x37f5de9e -[UIWindow addRootViewControllerViewIfPossible] + 366
20 UIKit 0x37f59ae0 -[UIWindow _setHidden:forced:] + 360
21 UIKit 0x37f9b1c4 -[UIWindow makeKeyAndVisible] + 56
22 UIKit 0x37f5e832 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1662
23 UIKit 0x37f5683e -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 694
24 UIKit 0x37efec34 -[UIApplication handleEvent:withNewEvent:] + 1000
25 UIKit 0x37efe6c8 -[UIApplication sendEvent:] + 68
26 UIKit 0x37efe116 _UIApplicationHandleEvent + 6150
27 GraphicsServices 0x34b1e5a0 _PurpleEventCallback + 588
28 GraphicsServices 0x34b1e1ce PurpleEventCallback + 30
29 CoreFoundation 0x35e34170 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 32
30 CoreFoundation 0x35e34112 __CFRunLoopDoSource1 + 134
31 CoreFoundation 0x35e32f94 __CFRunLoopRun + 1380
32 CoreFoundation 0x35da5eb8 CFRunLoopRunSpecific + 352
33 CoreFoundation 0x35da5d44 CFRunLoopRunInMode + 100
34 UIKit 0x37f55478 -[UIApplication _run] + 664
35 UIKit 0x37f522f4 UIApplicationMain + 1116
36 Capture This 0x0008b8ba main (main.m:16)
37 libdyld.dylib 0x34a94b1c start + 0
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x33fb4648 kevent64 + 24
1 libdispatch.dylib 0x34a7d4ec _dispatch_mgr_invoke + 792
2 libdispatch.dylib 0x34a6fdf4 _dispatch_mgr_thread$VARIANT$up + 32
Thread 2 name: Dispatch queue: com.apple.root.default-priority
Thread 2:
0 libsystem_kernel.dylib 0x33fc408c __psynch_cvwait + 24
1 libsystem_c.dylib 0x35440d2a _pthread_cond_wait + 642
2 libsystem_c.dylib 0x3544af14 pthread_cond_wait + 36
3 Foundation 0x3592aa4c -[__NSOperationInternal waitUntilFinished] + 144
4 Capture This 0x000e4710 -[PFNetworkCommandRunner runInOperation:callback:] (PFNetworkCommandRunner.m:84)
5 Capture This 0x000e4f1e -[PFRetryingCommandRunner runInOperation:callback:] (PFRetryingCommandRunner.m:52)
6 Capture This 0x000e5cba -[PFOperation runInThisThread:] (PFOperation.m:32)
7 Capture This 0x0009dbb2 -[PFObject(Private) fetchWithLocking:error:] (PFObject.m:942)
8 Capture This 0x000ae44e -[PFUser fetchWithLocking:error:] (PFUser.m:1001)
9 Capture This 0x000a1520 __39-[PFObject fetchInBackgroundWithBlock:]_block_invoke_0 (PFObject.m:1500)
10 Capture This 0x000d3db6 __25-[PFBackgroundTask start]_block_invoke_0 (PFBackgroundTask.m:59)
11 libdispatch.dylib 0x34a6e11c _dispatch_call_block_and_release + 8
12 libdispatch.dylib 0x34a7c254 _dispatch_root_queue_drain + 256
13 libdispatch.dylib 0x34a7c3b4 _dispatch_worker_thread2 + 80
14 libsystem_c.dylib 0x3543da0e _pthread_wqthread + 358
15 libsystem_c.dylib 0x3543d8a0 start_wqthread + 4
Thread 3 name: WebThread
Thread 3:
0 libsystem_kernel.dylib 0x33fb3eb4 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x33fb4048 mach_msg + 36
2 CoreFoundation 0x35e34040 __CFRunLoopServiceMachPort + 124
3 CoreFoundation 0x35e32d9e __CFRunLoopRun + 878
4 CoreFoundation 0x35da5eb8 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x35da5d44 CFRunLoopRunInMode + 100
6 WebCore 0x31a8aa40 _ZL12RunWebThreadPv + 440
7 libsystem_c.dylib 0x3544830e _pthread_start + 306
8 libsystem_c.dylib 0x354481d4 thread_start + 4
Thread 4:
0 libsystem_kernel.dylib 0x33fb3eb4 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x33fb4048 mach_msg + 36
2 CoreFoundation 0x35e34040 __CFRunLoopServiceMachPort + 124
3 CoreFoundation 0x35e32d9e __CFRunLoopRun + 878
4 CoreFoundation 0x35da5eb8 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x35da5d44 CFRunLoopRunInMode + 100
6 Foundation 0x358df78a -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 250
7 Foundation 0x35983058 -[NSRunLoop(NSRunLoop) run] + 76
8 Capture This 0x000d7c9a +[PFNetworkingUtils networkThreadMain] (PFNetworkingUtils.m:32)
9 Foundation 0x3598c678 __NSThread__main__ + 968
10 libsystem_c.dylib 0x3544830e _pthread_start + 306
11 libsystem_c.dylib 0x354481d4 thread_start + 4
Thread 5:
0 libsystem_kernel.dylib 0x33fc4d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3543dcf6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3543da12 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3543d8a0 start_wqthread + 4
Thread 6:
0 libsystem_kernel.dylib 0x33fc408c __psynch_cvwait + 24
1 libsystem_c.dylib 0x35440d2a _pthread_cond_wait + 642
2 libsystem_c.dylib 0x3544af14 pthread_cond_wait + 36
3 Foundation 0x35908cca -[NSCondition wait] + 190
4 Capture This 0x000c89a8 -[PFCommandCache runLoop] (PFCommandCache.m:491)
5 Foundation 0x3598c678 __NSThread__main__ + 968
6 libsystem_c.dylib 0x3544830e _pthread_start + 306
7 libsystem_c.dylib 0x354481d4 thread_start + 4
Thread 7:
0 libsystem_kernel.dylib 0x33fb3eb4 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x33fb4048 mach_msg + 36
2 CoreFoundation 0x35e34040 __CFRunLoopServiceMachPort + 124
3 CoreFoundation 0x35e32d9e __CFRunLoopRun + 878
4 CoreFoundation 0x35da5eb8 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x35da5d44 CFRunLoopRunInMode + 100
6 Foundation 0x358df78a -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 250
7 Foundation 0x35983058 -[NSRunLoop(NSRunLoop) run] + 76
8 Capture This 0x000eb5f0 +[PF_AFURLConnectionOperation networkRequestThreadEntryPoint:] (PF_AFURLConnectionOperation.m:151)
9 Foundation 0x3598c678 __NSThread__main__ + 968
10 libsystem_c.dylib 0x3544830e _pthread_start + 306
11 libsystem_c.dylib 0x354481d4 thread_start + 4
Thread 8 name: com.apple.NSURLConnectionLoader
Thread 8:
0 libsystem_kernel.dylib 0x33fb3eb4 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x33fb4048 mach_msg + 36
2 CoreFoundation 0x35e34040 __CFRunLoopServiceMachPort + 124
3 CoreFoundation 0x35e32d9e __CFRunLoopRun + 878
4 CoreFoundation 0x35da5eb8 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x35da5d44 CFRunLoopRunInMode + 100
6 Foundation 0x35908bc8 +[NSURLConnection(Loader) _resourceLoadLoop:] + 304
7 Foundation 0x3598c678 __NSThread__main__ + 968
8 libsystem_c.dylib 0x3544830e _pthread_start + 306
9 libsystem_c.dylib 0x354481d4 thread_start + 4
Thread 9 name: com.apple.CFSocket.private
Thread 9:
0 libsystem_kernel.dylib 0x33fc4594 __select + 20
1 CoreFoundation 0x35e381f2 __CFSocketManager + 674
2 libsystem_c.dylib 0x3544830e _pthread_start + 306
3 libsystem_c.dylib 0x354481d4 thread_start + 4
Unknown thread crashed with unknown flavor: 5, state_count: 1
And the app did finish launching method as requested:
(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[Parse setApplicationId:#"key"
clientKey:#"key"];
[PFFacebookUtils initializeWithApplicationId:#"id"];
[application registerForRemoteNotificationTypes:UIRemoteNotificationTypeBadge|
UIRemoteNotificationTypeAlert|
UIRemoteNotificationTypeSound];
//--set background and camera images
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
if (![defaults objectForKey:BACKGROUND_IMAGE]){
[[NSUserDefaults standardUserDefaults] setObject:#"background0.png" forKey:BACKGROUND_IMAGE];
}
if (![defaults objectForKey:CAMERA_BUTTON]){
[defaults setObject:#"cameraButton0.png" forKey:CAMERA_BUTTON];
}
if (![defaults objectForKey:PURCHASED_CAMERAS]){
NSMutableArray *cameras = [[NSMutableArray alloc] init];
[cameras addObject:#"cameraButton0.png"];
[defaults setObject:cameras forKey:PURCHASED_CAMERAS];
}
if (![defaults objectForKey:PURCHASED_BACKGROUNDS]){
NSMutableArray *back = [[NSMutableArray alloc] init];
[back addObject:#"background0.png"];
[defaults setObject:back forKey:PURCHASED_BACKGROUNDS];
}
if ([PFUser currentUser]){
[[PFUser currentUser] refreshInBackgroundWithBlock:^(PFObject *object, NSError *error) {
if (error){
[[[UIAlertView alloc] initWithTitle:#"Couldn't refresh user data" message:#"Please try again later" delegate:nil cancelButtonTitle:#"OK" otherButtonTitles: nil] show];
}
[Utilities refreshCurrentUser];
}];
}
[[UIApplication sharedApplication] cancelAllLocalNotifications];
return YES;
}
From what I understand, iOS has a watchdog checking for applications running at all times. When the application doesn't respond for more than 20 seconds, the application is automatically killed. Not sure if this is what's happening here, but it might be the case.
I'd start looking at processes running at application startup. Some people might encounter that kind of problem when they have a lot of applications loaded and running in the background, slowing down processing, which could appear as the application not responding.

iPhone app using Facebook SDK crashes with "has active assertions beyond permitted time" error

I have an iPhone (iOS native) app that uses the current Facebook iOS SDK. When attempting to connect my app via the Single-Sign-On process, I frequently get a crash stating my app "has active assertions beyond permitted time". After reviewing other similar reports here on Stack Overflow (such as iPhone app "has active assertions beyond permitted time") I don't find anything that seems to fit my situation. I am following Facebook's recommended practices for integrating SSO (from https://developers.facebook.com/docs/mobile/ios/build/#implementsso). That means I am calling the Facebook SDK on my main thread. Facebook doesn't seem to think this will be a problem.
Can anyone explain what this particular error means? I assume that some iOS supervisor mechanism is killing my app because it's taking too long doing something, but what particular something? Is it because the foreground task is locked for too long? Or what?
Here's an iOS app crash report showing the error.
Incident Identifier: F2486727-9EAC-4D7F-8A45-07AC51ADD186
CrashReporter Key: b3825455d63e6e7f659074b5ea5fb89cf8ed1b9f
Hardware Model: iPhone2,1
Process: JouleBug [2060]
Path: /var/mobile/Applications/FA3DB4BA-92AF-4D14-AD3A-1553EFA1FA16/JouleBug.app/JouleBug
Identifier: JouleBug
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2012-07-05 14:44:30.751 -0400
OS Version: iPhone OS 5.1.1 (9B206)
Report Version: 104
Exception Type: 00000020
Exception Codes: 0x8badf00d
Highlighted Thread: 3
Application Specific Information:
JouleBug[2060] has active assertions beyond permitted time:
{(
<SBProcessAssertion: 0xe2ed000> identifier: Suspending process: JouleBug[2060] permittedBackgroundDuration: 10.000000 reason: suspend owner pid:52 preventSuspend preventThrottleDownCPU preventThrottleDownUI
)}
Elapsed total CPU time (seconds): 6.190 (user 6.190, system 0.000), 84% CPU
Elapsed application CPU time (seconds): 1.515, 21% CPU
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libsystem_kernel.dylib 0x37e23dcc __open + 8
1 Foundation 0x31ab412a _NSmkstemp83 + 322
2 Foundation 0x31ab3f4a _NSCreateTemporaryFile + 118
3 Foundation 0x31ab3b36 _NSWriteBytesToFileWithExtendedAttributes + 186
4 Foundation 0x31ab3a70 _NSWriteBytesToFile + 24
5 Foundation 0x31ab3a48 -[NSData(NSData) writeToFile:atomically:] + 76
6 JouleBug 0x00109c5c -[LazyJSONModelMapper save] (LazyJSONModelMapper.m:106)
7 JouleBug 0x00109b40 __36-[LazyJSONModelMapper initWithFile:]_block_invoke_0 (LazyJSONModelMapper.m:63)
8 Foundation 0x31a856c2 -[__NSObserver _doit:] + 286
9 Foundation 0x31b1152a __67-[NSNotificationCenter addObserverForName:object:queue:usingBlock:]_block_invoke_0 + 22
10 CoreFoundation 0x311d6540 ___CFXNotificationPost_block_invoke_0 + 64
11 CoreFoundation 0x31162090 _CFXNotificationPost + 1400
12 Foundation 0x31a853e4 -[NSNotificationCenter postNotificationName:object:userInfo:] + 60
13 UIKit 0x3090524e -[UIApplication _handleApplicationSuspend:eventInfo:] + 786
14 UIKit 0x30895ef8 -[UIApplication handleEvent:withNewEvent:] + 2088
15 UIKit 0x30895560 -[UIApplication sendEvent:] + 48
16 UIKit 0x30894f34 _UIApplicationHandleEvent + 5820
17 GraphicsServices 0x331db224 PurpleEventCallback + 876
18 CoreFoundation 0x311deacc __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 8
19 CoreFoundation 0x311de32e __CFRunLoopDoSources0 + 358
20 CoreFoundation 0x311dd03e __CFRunLoopRun + 646
21 CoreFoundation 0x3116049e CFRunLoopRunSpecific + 294
22 CoreFoundation 0x31160366 CFRunLoopRunInMode + 98
23 GraphicsServices 0x331da432 GSEventRunModal + 130
24 UIKit 0x308c3cce UIApplicationMain + 1074
25 JouleBug 0x00033ac6 main (main.m:14)
26 JouleBug 0x00003900 0x1000 + 10496
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x37e143a8 kevent + 24
1 libdispatch.dylib 0x35a2eea4 _dispatch_mgr_invoke + 708
2 libdispatch.dylib 0x35a2ebc2 _dispatch_mgr_thread + 30
Thread 2:
0 libsystem_kernel.dylib 0x37e24cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x352aaf36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x352aacc8 start_wqthread + 0
Thread 3 name: WebThread
Thread 3:
0 libsystem_kernel.dylib 0x37e240d8 __psynch_mutexwait + 24
1 libsystem_c.dylib 0x352a4674 pthread_mutex_lock + 376
2 WebCore 0x362614e8 _ZL17_WebTryThreadLockb + 208
3 WebCore 0x362c016c _ZL19SendDelegateMessageP12NSInvocation + 700
4 WebKit 0x36bfad80 -[_WebSafeForwarder forwardInvocation:] + 112
5 CoreFoundation 0x3120ca7c ___forwarding___ + 660
6 CoreFoundation 0x31167648 _CF_forwarding_prep_0 + 40
7 WebCore 0x3631bf7c WebCore::FrameLoader::finishedParsing() + 56
8 WebCore 0x3631bf12 WebCore::Document::finishedParsing() + 186
9 WebCore 0x3631be50 WebCore::HTMLTreeBuilder::finished() + 16
10 WebCore 0x3630cfbe WebCore::HTMLDocumentParser::prepareToStopParsing() + 106
11 WebCore 0x3630cc9e WebCore::HTMLDocumentParser::finish() + 90
12 WebCore 0x3630cc3a WebCore::Document::finishParsing() + 14
13 WebCore 0x36309e62 WebCore::DocumentWriter::endIfNotLoadingMainResource() + 74
14 WebCore 0x363084fa WebCore::DocumentLoader::finishedLoading() + 74
15 WebCore 0x363559c8 WebCore::FrameLoader::finishedLoading() + 48
16 WebCore 0x36355938 WebCore::MainResourceLoader::didFinishLoading(double) + 88
17 WebCore 0x363558c2 _ZN7WebCoreL16didFinishLoadingEP16_CFURLConnectionPKv + 46
18 CFNetwork 0x349997ee URLConnectionClient::_clientDidFinishLoading(URLConnectionClient::ClientConnectionEventQueue*) + 186
19 CFNetwork 0x3498e49e URLConnectionClient::ClientConnectionEventQueue::processAllEventsAndConsumePayload(XConnectionEventInfo<XClientEvent, XClientEventParams>*, long) + 418
20 CFNetwork 0x3498e592 URLConnectionClient::ClientConnectionEventQueue::processAllEventsAndConsumePayload(XConnectionEventInfo<XClientEvent, XClientEventParams>*, long) + 662
21 CFNetwork 0x3498e19c URLConnectionClient::processEvents() + 100
22 CFNetwork 0x3498e0d2 MultiplexerSource::perform() + 150
23 CoreFoundation 0x311deacc __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 8
24 CoreFoundation 0x311de32e __CFRunLoopDoSources0 + 358
25 CoreFoundation 0x311dd03e __CFRunLoopRun + 646
26 CoreFoundation 0x3116049e CFRunLoopRunSpecific + 294
27 CoreFoundation 0x31160366 CFRunLoopRunInMode + 98
28 WebCore 0x36304c9c _ZL12RunWebThreadPv + 396
29 libsystem_c.dylib 0x352b072e _pthread_start + 314
30 libsystem_c.dylib 0x352b05e8 thread_start + 0
Thread 4:
0 libsystem_kernel.dylib 0x37e14004 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x37e141fa mach_msg + 50
2 CoreFoundation 0x311de3ec __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x311dd124 __CFRunLoopRun + 876
4 CoreFoundation 0x3116049e CFRunLoopRunSpecific + 294
5 CoreFoundation 0x311dd444 CFRunLoopRun + 92
6 JouleBug 0x00071800 +[ASIHTTPRequest runRequests] (ASIHTTPRequest.m:4772)
7 Foundation 0x31a92a7a -[NSThread main] + 66
8 Foundation 0x31b2658a __NSThread__main__ + 1042
9 libsystem_c.dylib 0x352b072e _pthread_start + 314
10 libsystem_c.dylib 0x352b05e8 thread_start + 0
Thread 5 name: com.apple.NSURLConnectionLoader
Thread 5:
0 libsystem_kernel.dylib 0x37e14004 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x37e141fa mach_msg + 50
2 CoreFoundation 0x311de3ec __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x311dd124 __CFRunLoopRun + 876
4 CoreFoundation 0x3116049e CFRunLoopRunSpecific + 294
5 CoreFoundation 0x31160366 CFRunLoopRunInMode + 98
6 Foundation 0x31a92bb2 +[NSURLConnection(Loader) _resourceLoadLoop:] + 302
7 Foundation 0x31a92a7a -[NSThread main] + 66
8 Foundation 0x31b2658a __NSThread__main__ + 1042
9 libsystem_c.dylib 0x352b072e _pthread_start + 314
10 libsystem_c.dylib 0x352b05e8 thread_start + 0
Thread 6 name: com.apple.CFSocket.private
Thread 6:
0 libsystem_kernel.dylib 0x37e24570 __select + 20
1 CoreFoundation 0x311e263a __CFSocketManager + 726
2 libsystem_c.dylib 0x352b072e _pthread_start + 314
3 libsystem_c.dylib 0x352b05e8 thread_start + 0
Thread 7:
0 libsystem_kernel.dylib 0x37e14004 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x37e141fa mach_msg + 50
2 CoreFoundation 0x311de3ec __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x311dd124 __CFRunLoopRun + 876
4 CoreFoundation 0x3116049e CFRunLoopRunSpecific + 294
5 CoreFoundation 0x31160366 CFRunLoopRunInMode + 98
6 Foundation 0x31a86b6e -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 250
7 Foundation 0x31aa051c -[NSRunLoop(NSRunLoop) run] + 72
8 JouleBug 0x0014e516 0x1000 + 1365270
9 Foundation 0x31a92a7a -[NSThread main] + 66
10 Foundation 0x31b2658a __NSThread__main__ + 1042
11 libsystem_c.dylib 0x352b072e _pthread_start + 314
12 libsystem_c.dylib 0x352b05e8 thread_start + 0
Thread 8 name: Dispatch queue: com.apple.root.default-priority
Thread 8:
0 libsystem_kernel.dylib 0x37e2451c __rename + 8
1 libsystem_kernel.dylib 0x37e15b6e rename + 2
2 Foundation 0x31ab3dac _NSWriteBytesToFileWithExtendedAttributes + 816
3 Foundation 0x31ab3a70 _NSWriteBytesToFile + 24
4 Foundation 0x31ab3a48 -[NSData(NSData) writeToFile:atomically:] + 76
5 JouleBug 0x00109c5c -[LazyJSONModelMapper save] (LazyJSONModelMapper.m:106)
6 JouleBug 0x00109a4e -[LazyJSONModelMapper initWithFile:] (LazyJSONModelMapper.m:85)
7 JouleBug 0x001097c6 -[LazyJSONModelMapper initWithData:fromFile:] (LazyJSONModelMapper.m:45)
8 JouleBug 0x00089e5c +[GameDataManager storePinFromPinDict:] (GameDataManager.m:238)
9 JouleBug 0x000dd378 +[GameDataLoader processData:] (GameDataLoader.m:62)
10 JouleBug 0x000ae300 +[DataLoader refreshDataSynchronously] (DataLoader.m:54)
11 JouleBug 0x000ae29c __25+[DataLoader refreshData]_block_invoke_0 (DataLoader.m:36)
12 Foundation 0x31acbe50 -[NSBlockOperation main] + 196
13 Foundation 0x31aad38c -[__NSOperationInternal start] + 856
14 JouleBug 0x000ccb06 -[TimedBlockOperation start] (NSOperationExtensions.m:96)
15 Foundation 0x31b1678c __block_global_6 + 96
16 libdispatch.dylib 0x35a22c52 _dispatch_call_block_and_release + 6
17 libdispatch.dylib 0x35a2e7b4 _dispatch_worker_thread2 + 256
18 libsystem_c.dylib 0x352aadf4 _pthread_wqthread + 288
19 libsystem_c.dylib 0x352aacc8 start_wqthread + 0
Thread 9:
0 libsystem_kernel.dylib 0x37e24cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x352aaf36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x352aacc8 start_wqthread + 0
Thread 10:
0 libsystem_kernel.dylib 0x37e24cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x352aaf36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x352aacc8 start_wqthread + 0
Thread 11 name: WebCore: CFNetwork Loader
Thread 11:
0 libsystem_kernel.dylib 0x37e14004 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x37e141fa mach_msg + 50
2 CoreFoundation 0x311de3ec __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x311dd124 __CFRunLoopRun + 876
4 CoreFoundation 0x3116049e CFRunLoopRunSpecific + 294
5 CoreFoundation 0x31160366 CFRunLoopRunInMode + 98
6 WebCore 0x3632e0d2 _ZN7WebCoreL15runLoaderThreadEPv + 122
7 libsystem_c.dylib 0x352b072e _pthread_start + 314
8 libsystem_c.dylib 0x352b05e8 thread_start + 0
Thread 12:
0 libsystem_kernel.dylib 0x37e24cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x352aaf36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x352aacc8 start_wqthread + 0
Unknown thread crashed with unknown flavor: 5, state_count: 1
I finally tracked this down. Just as in other similar incidents reported on Stack Overflow, this turned out to be a problem with a scheduled operation attempting to run in the background. My problem is resolved.

Resources