I couldn't understand where is my problem. My apps crash on launch with this crash log.
iOS 7.0.2 (11A501) Report Version: 104
Exception Type: 00000020 Exception Codes: 0x000000008badf00d
Highlighted Thread: 0
Application Specific Information: com.myapps failed
to launch in time
Elapsed total CPU time (seconds): 4.420 (user 4.420, system 0.000),
10% CPU Elapsed application CPU time (seconds): 0.714, 2% CPU
Thread 0: 0 libsystem_kernel.dylib 0x3878ead4
semaphore_wait_trap + 8 1 libdispatch.dylib 0x386dbdec
_dispatch_semaphore_wait_slow + 172 2 CFNetwork 0x2dabab16 CFURLConnectionSendSynchronousRequest + 266 3 Foundation
0x2e883a4e +[NSURLConnection
sendSynchronousRequest:returningResponse:error:] + 110 4 Foundation
0x2e8d8c80 -[NSString initWithContentsOfURL:encoding:error:] + 188 5
QuizPatente! 0x0004d980 0x3e000 + 63872 6
QuizPatente! 0x00048820 0x3e000 + 43040 7
QuizPatente! 0x00048644 0x3e000 + 42564 8 UIKit
0x306fc020 -[UIApplication _stopDeactivatingForReason:] + 376 9
UIKit 0x306e762c -[UIApplication
_runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 1092 10 UIKit 0x30681be2 -[UIApplication handleEvent:withNewEvent:] + 3138 11 UIKit
0x30680ed8 -[UIApplication sendEvent:] + 68 12 UIKit
0x306e6c9c _UIApplicationHandleEvent + 660 13 GraphicsServices
0x32b6276a _PurpleEventCallback + 606 14 GraphicsServices
0x32b62352 PurpleEventCallback + 30 15 CoreFoundation
0x2dec177c CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION
+ 32 16 CoreFoundation 0x2dec1716 __CFRunLoopDoSource1 + 342 17 CoreFoundation 0x2debfee2 __CFRunLoopRun + 1402 18 CoreFoundation
0x2de2a53c CFRunLoopRunSpecific + 520 19 CoreFoundation
0x2de2a31e CFRunLoopRunInMode + 102 20 UIKit
0x306e5f3e -[UIApplication _run] + 758 21 UIKit
0x306e11e0 UIApplicationMain + 1132 22 QuizPatente!
0x00045a28 0x3e000 + 31272 23 libdyld.dylib
0x386eaab4 start + 0
Thread 1: 0 libsystem_kernel.dylib 0x3878e838 kevent64 + 24
1 libdispatch.dylib 0x386dd0d0 _dispatch_mgr_invoke +
228 2 libdispatch.dylib 0x386d763e _dispatch_mgr_thread
+ 34
Thread 2: 0 libsystem_kernel.dylib 0x3878ead4
semaphore_wait_trap + 8 1 libdispatch.dylib 0x386dbf90
_dispatch_group_wait_slow + 168 2 GameCenterFoundation 0x2ea86dc4 __35-[GKDaemonProxy buildServiceLookup]_block_invoke + 628
3 libdispatch.dylib 0x386d6100
_dispatch_call_block_and_release + 8 4 libdispatch.dylib 0x386dae72 _dispatch_queue_drain + 370 5 libdispatch.dylib
0x386d7f96 _dispatch_queue_invoke + 38 6 libdispatch.dylib
0x386db74e _dispatch_root_queue_drain + 74 7 libdispatch.dylib
0x386db9cc _dispatch_worker_thread2 + 52 8 libsystem_pthread.dylib
0x38805dfc _pthread_wqthread + 296 9 libsystem_pthread.dylib
0x38805cc0 start_wqthread + 4
Thread 3: 0 libsystem_kernel.dylib 0x387a1c7c
__workq_kernreturn + 8 1 libsystem_pthread.dylib 0x38805e06 _pthread_wqthread + 306 2 libsystem_pthread.dylib 0x38805cc0 start_wqthread + 4
Thread 4: 0 libsystem_kernel.dylib 0x387a1c7c
__workq_kernreturn + 8 1 libsystem_pthread.dylib 0x38805e06 _pthread_wqthread + 306 2 libsystem_pthread.dylib 0x38805cc0 start_wqthread + 4
Thread 5: 0 libsystem_kernel.dylib 0x387a0f38
psynch_cvwait + 24 1 libsystem_pthread.dylib 0x38807262 _pthread_cond_wait + 538 2 libsystem_pthread.dylib 0x3880803c pthread_cond_wait + 36 3 Foundation 0x2e86574a
-[NSCondition wait] + 190 4 QuizPatente! 0x0026c5b0 0x3e000 + 2287024 5 Foundation
0x2e8dadc2 _NSThread_main + 1058 6 libsystem_pthread.dylib
0x38807c5a _pthread_body + 138 7 libsystem_pthread.dylib
0x38807bca _pthread_start + 98 8 libsystem_pthread.dylib
0x38805ccc thread_start + 4
Thread 6: 0 libsystem_kernel.dylib 0x3878ea84 mach_msg_trap
+ 20 1 libsystem_kernel.dylib 0x3878e87c mach_msg + 36 2 CoreFoundation 0x2dec155c CFRunLoopServiceMachPort +
152 3 CoreFoundation 0x2debfc7c __CFRunLoopRun + 788
4 CoreFoundation 0x2de2a53c CFRunLoopRunSpecific +
520 5 CoreFoundation 0x2de6e1a6 CFRunLoopRun + 94 6
QuizPatente! 0x001ec3b4 0x3e000 + 1762228 7
Foundation 0x2e8dadc2 _NSThread_main + 1058 8
libsystem_pthread.dylib 0x38807c5a _pthread_body + 138 9
libsystem_pthread.dylib 0x38807bca _pthread_start + 98 10
libsystem_pthread.dylib 0x38805ccc thread_start + 4
Thread 7 name: com.apple.NSURLConnectionLoader Thread 7: 0
libsystem_kernel.dylib 0x3878ea84 mach_msg_trap + 20 1
libsystem_kernel.dylib 0x3878e87c mach_msg + 36 2
CoreFoundation 0x2dec155c CFRunLoopServiceMachPort +
152 3 CoreFoundation 0x2debfc7c __CFRunLoopRun + 788
4 CoreFoundation 0x2de2a53c CFRunLoopRunSpecific +
520 5 CoreFoundation 0x2de2a31e CFRunLoopRunInMode +
102 6 Foundation 0x2e86564c
+[NSURLConnection(Loader) _resourceLoadLoop:] + 316 7 Foundation 0x2e8dadc2 _NSThread_main + 1058 8 libsystem_pthread.dylib
0x38807c5a _pthread_body + 138 9 libsystem_pthread.dylib
0x38807bca _pthread_start + 98 10 libsystem_pthread.dylib
0x38805ccc thread_start + 4
Thread 8: 0 libsystem_kernel.dylib 0x3878ea84 mach_msg_trap
+ 20 1 libsystem_kernel.dylib 0x3878e87c mach_msg + 36 2 CoreFoundation 0x2dec155c CFRunLoopServiceMachPort +
152 3 CoreFoundation 0x2debfc7c __CFRunLoopRun + 788
4 CoreFoundation 0x2de2a53c CFRunLoopRunSpecific +
520 5 CoreFoundation 0x2de2a31e CFRunLoopRunInMode +
102 6 Foundation 0x2e818822
-[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 250 7 Foundation 0x2e869664 -[NSRunLoop(NSRunLoop) run] + 76 8 QuizPatente!
0x000e9fd4 0x3e000 + 704468 9 Foundation
0x2e8dadc2 _NSThread_main + 1058 10 libsystem_pthread.dylib
0x38807c5a _pthread_body + 138 11 libsystem_pthread.dylib
0x38807bca _pthread_start + 98 12 libsystem_pthread.dylib
0x38805ccc thread_start + 4
Thread 9: 0 libsystem_kernel.dylib 0x3878ea84 mach_msg_trap
+ 20 1 libsystem_kernel.dylib 0x3878e87c mach_msg + 36 2 CoreFoundation 0x2dec155c __CFRunLoopServiceMachPort +
152 3 CoreFoundation 0x2debfc7c _CFRunLoopRun + 788
4 CoreFoundation 0x2de2a53c CFRunLoopRunSpecific +
520 5 CoreFoundation 0x2de6e1a6 CFRunLoopRun + 94 6
CoreMotion 0x2e4e2394
__lldb_unnamed_function1407$$CoreMotion + 724 7 libsystem_pthread.dylib 0x38807c5a _pthread_body + 138 8
libsystem_pthread.dylib 0x38807bca _pthread_start + 98 9
libsystem_pthread.dylib 0x38805ccc thread_start + 4
I update my app today. The strange behavior has come only when the app is updated. If users reinstall the app it work fine.
Based on:
Application Specific Information: com.myapps failed to launch in time
Elapsed total CPU time (seconds): 4.420 (user 4.420, system 0.000),
10% CPU Elapsed application CPU time (seconds): 0.714, 2% CPU
it looks like your app is not returning from application:didFinishLaunchingWithOptions: in time.
You are probably doing something in that method that is blocking the thread and preventing it from returning.
Related
Our ios app suffers some crashes recently with below title ,
_objc_fatalv(unsigned long long, unsigned long long, char const*, char*)
abort_with_payload_wrapper_internal
Crashed: com.apple.main-thread
SIGABRT ABORT 0x00000001e6013a00
we using capacitor,cordova,ionic for this app
one thing i noticed on resuming the app also this crash event happens, actually firebase log is not adequate to figure out this issue because it has nearly 200 logs with different screens like
firebase_screen: splash screen
firebase_screen_class: CAPBridgeViewController
this error is mainly in our latest version and ios16 platform
# Crashlytics - Stack trace
# Application: com.shopperApp
# Platform: apple
# Version: 0.0.8 (0.0.8)
# Issue: 09f591d6fb0a00eb74e378b77e5bf7b3
# Date: Sun Feb 12 2023 00:44:20 GMT+0530 (India Standard Time)
Crashed: com.apple.main-thread
0 libsystem_kernel.dylib 0xea00 __abort_with_payload + 8
1 libsystem_kernel.dylib 0x2fb4c abort_with_payload_wrapper_internal + 100
2 libsystem_kernel.dylib 0x2fae8 abort_with_payload_wrapper_internal + 26
3 libobjc.A.dylib 0x2ac64 _objc_fatalv(unsigned long long, unsigned long long, char const*, char*) + 112
4 libobjc.A.dylib 0x2abf4 _objc_fatalv(unsigned long long, unsigned long long, char const*, char*) + 26
5 libobjc.A.dylib 0x61d0 weak_register_no_lock + 332
6 libobjc.A.dylib 0xa6b0 objc_storeWeak + 344
7 UIKitCore 0x113440 _UIResponderForwarderWantsForwardingFromResponder + 728
8 UIKitCore 0x32fdc __forwardTouchMethod_block_invoke + 40
9 CoreFoundation 0xa2c0 __NSSET_IS_CALLING_OUT_TO_A_BLOCK__ + 16
10 CoreFoundation 0x856e4 -[__NSSetM enumerateObjectsWithOptions:usingBlock:] + 196
11 UIKitCore 0x1eb140 forwardTouchMethod + 216
12 UIKitCore 0xf21f8 -[UIWindow _sendTouchesForEvent:] + 496
13 UIKitCore 0xf16f0 -[UIWindow sendEvent:] + 3224
14 UIKitCore 0xf09ec -[UIApplication sendEvent:] + 740
15 UIKitCore 0xeec58 __dispatchPreprocessedEventFromEventQueue + 2052
16 UIKitCore 0x13496c __processEventQueue + 5612
17 UIKitCore 0x418110 __eventFetcherSourceCallback + 220
18 CoreFoundation 0xcc500 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
19 CoreFoundation 0xd7e70 __CFRunLoopDoSource0 + 172
20 CoreFoundation 0x62224 __CFRunLoopDoSources0 + 232
21 CoreFoundation 0x77230 __CFRunLoopRun + 780
22 CoreFoundation 0x7bdfc CFRunLoopRunSpecific + 584
23 GraphicsServices 0x1984 GSEventRunModal + 160
24 UIKitCore 0x376e7c -[UIApplication _run] + 868
25 UIKitCore 0x376af4 UIApplicationMain + 312
26 shopperApp 0x62e4 main + 7 (AppDelegate.swift:7)
27 ??? 0x1ca24ade0 (Missing)
com.apple.uikit.eventfetch-thread
0 libsystem_kernel.dylib 0x1194 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x12a08 mach_msg2_internal + 76
2 libsystem_kernel.dylib 0x12c44 mach_msg_overwrite + 384
3 libsystem_kernel.dylib 0x1688 mach_msg + 20
4 CoreFoundation 0x76244 __CFRunLoopServiceMachPort + 156
5 CoreFoundation 0x773f4 __CFRunLoopRun + 1232
6 CoreFoundation 0x7bdfc CFRunLoopRunSpecific + 584
7 Foundation 0x3e3fc -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 208
8 Foundation 0x3e2f8 -[NSRunLoop(NSRunLoop) runUntilDate:] + 60
9 UIKitCore 0x49b6d0 -[UIEventFetcher threadMain] + 424
10 Foundation 0x55f44 __NSThread__start__ + 704
11 libsystem_pthread.dylib 0x3060 _pthread_start + 116
12 libsystem_pthread.dylib 0x1688 thread_start + 8
com.google.firebase.crashlytics.MachExceptionServer
0 libsystem_kernel.dylib 0x1194 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x12a08 mach_msg2_internal + 76
2 libsystem_kernel.dylib 0x12c44 mach_msg_overwrite + 384
3 libsystem_kernel.dylib 0x1688 mach_msg + 20
4 FirebaseCrashlytics 0x188b8 FIRCLSMachExceptionServer + 194 (FIRCLSMachException.c:194)
5 libsystem_pthread.dylib 0x3060 _pthread_start + 116
6 libsystem_pthread.dylib 0x1688 thread_start + 8
com.apple.NSURLConnectionLoader
0 libsystem_kernel.dylib 0x1194 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x12a08 mach_msg2_internal + 76
2 libsystem_kernel.dylib 0x12c44 mach_msg_overwrite + 384
3 libsystem_kernel.dylib 0x1688 mach_msg + 20
4 CoreFoundation 0x76244 __CFRunLoopServiceMachPort + 156
5 CoreFoundation 0x773f4 __CFRunLoopRun + 1232
6 CoreFoundation 0x7bdfc CFRunLoopRunSpecific + 584
7 CFNetwork 0x22d6cc _CFURLStorageSessionDisableCache + 51024
8 Foundation 0x55f44 __NSThread__start__ + 704
9 libsystem_pthread.dylib 0x3060 _pthread_start + 116
10 libsystem_pthread.dylib 0x1688 thread_start + 8
JavaScriptCore libpas scavenger
0 libsystem_kernel.dylib 0x19e0 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x2584 _pthread_cond_wait$VARIANT$armv81 + 1220
2 JavaScriptCore 0xec4b4 scavenger_thread_main + 1012
3 libsystem_pthread.dylib 0x3060 _pthread_start + 116
4 libsystem_pthread.dylib 0x1688 thread_start + 8
com.apple.root.default-qos
0 libsystem_kernel.dylib 0x1110 semaphore_wait_trap + 8
1 libdispatch.dylib 0x33e88 _dispatch_sema4_wait$VARIANT$armv81 + 24
2 libdispatch.dylib 0x344c4 _dispatch_semaphore_wait_slow + 128
3 UIKitCore 0x4999c8 __69+[_UIAsyncInvocationObserver whenInvocationsCompleteForObservers:do:]_block_invoke_2 + 56
4 libdispatch.dylib 0x63850 _dispatch_call_block_and_release + 24
5 libdispatch.dylib 0x647c8 _dispatch_client_callout + 16
6 libdispatch.dylib 0x3bb2c _dispatch_queue_override_invoke + 708
7 libdispatch.dylib 0x48d48 _dispatch_root_queue_drain + 328
8 libdispatch.dylib 0x49514 _dispatch_worker_thread2 + 160
9 libsystem_pthread.dylib 0x1b14 _pthread_wqthread + 224
10 libsystem_pthread.dylib 0x167c start_wqthread + 8
Thread
0 libsystem_kernel.dylib 0x1654 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x1b9c _pthread_wqthread + 360
2 libsystem_pthread.dylib 0x167c start_wqthread + 8
Thread
0 libsystem_kernel.dylib 0x1654 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x1b9c _pthread_wqthread + 360
2 libsystem_pthread.dylib 0x167c start_wqthread + 8
com.apple.dnssd.client
0 libsystem_kernel.dylib 0x1c34 __ulock_wait + 8
1 libsystem_platform.dylib 0x8028 _os_unfair_lock_lock_slow + 168
2 libobjc.A.dylib 0x23dc objc_object::sidetable_clearDeallocating() + 100
3 libobjc.A.dylib 0x5a3c objc_destructInstance + 160
4 libobjc.A.dylib 0xe1c8 _objc_rootDealloc + 52
5 libxpc.dylib 0x26a58 -[OS_xpc_object dealloc] + 52
6 libxpc.dylib 0x15178 _xpc_dictionary_node_free + 80
7 libxpc.dylib 0x12cd8 _xpc_dictionary_dispose + 44
8 libxpc.dylib 0x26a3c -[OS_xpc_object dealloc] + 24
9 libxpc.dylib 0x80cc _xpc_array_dispose + 40
10 libxpc.dylib 0x26a3c -[OS_xpc_object dealloc] + 24
11 libxpc.dylib 0x12d4c _xpc_dictionary_dispose + 160
12 libxpc.dylib 0x26a3c -[OS_xpc_object dealloc] + 24
13 libxpc.dylib 0x10040 _xpc_connection_mach_event + 948
14 libdispatch.dylib 0x6487c _dispatch_client_callout4 + 16
15 libdispatch.dylib 0x377c0 _dispatch_mach_msg_invoke$VARIANT$armv81 + 372
16 libdispatch.dylib 0x3f72c _dispatch_lane_serial_drain$VARIANT$armv81 + 308
17 libdispatch.dylib 0x3835c _dispatch_mach_invoke$VARIANT$armv81 + 444
18 libdispatch.dylib 0x3f72c _dispatch_lane_serial_drain$VARIANT$armv81 + 308
19 libdispatch.dylib 0x402e4 _dispatch_lane_invoke$VARIANT$armv81 + 380
20 libdispatch.dylib 0x4a000 _dispatch_workloop_worker_thread + 612
21 libsystem_pthread.dylib 0x1b50 _pthread_wqthread + 284
22 libsystem_pthread.dylib 0x167c start_wqthread + 8
Thread
0 libsystem_kernel.dylib 0x1654 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x1b9c _pthread_wqthread + 360
2 libsystem_pthread.dylib 0x167c start_wqthread + 8
com.apple.network.connections
0 libsystem_kernel.dylib 0x1c34 __ulock_wait + 8
1 libsystem_platform.dylib 0x8028 _os_unfair_lock_lock_slow + 168
2 libobjc.A.dylib 0x23dc objc_object::sidetable_clearDeallocating() + 100
3 libobjc.A.dylib 0x5a3c objc_destructInstance + 160
4 libobjc.A.dylib 0xe1c8 _objc_rootDealloc + 52
5 Network 0x3611a0 -[OS_nw_array dealloc] + 52
6 Network 0x12a768 nw_resolver_remove_endpoint_locked + 228
7 Network 0x12e468 __nw_resolver_create_dns_getaddrinfo_locked_block_invoke.165 + 6932
8 libdns_services.dylib 0x12f0 ___dnssd_getaddrinfo_activate_block_invoke + 204
9 libdispatch.dylib 0x647c8 _dispatch_client_callout + 16
10 libdispatch.dylib 0x3be7c _dispatch_continuation_pop$VARIANT$armv81 + 436
11 libdispatch.dylib 0x4d860 _dispatch_source_invoke$VARIANT$armv81 + 1552
12 libdispatch.dylib 0x4144c _dispatch_workloop_invoke$VARIANT$armv81 + 1636
13 libdispatch.dylib 0x4a000 _dispatch_workloop_worker_thread + 612
14 libsystem_pthread.dylib 0x1b50 _pthread_wqthread + 284
15 libsystem_pthread.dylib 0x167c start_wqthread + 8
Thread
0 libsystem_pthread.dylib 0x1674 start_wqthread + 270
when i googled this error Crash in UIKitCore [UIViewController viewDidMoveToWindow:shouldAppearOrDisappear:] iOS 12 only also shares similar error message but since we are not using native elements i think my cause of problem is from somewhere else?
did any faced this crashes before?
thanks in advance!
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.
I've written an app in Swift which crashes on the following lines, when in Low Power Mode. It's basically a request that runs on a background thread. And some UI updates that's happening on the main thread.
I can't recreate the crash on my phone when in Low Power Mode, but according to my users this is the root cause.
// Run the request on a background thread
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), {
self.runRequestOnBackgroundThread(request)
});
func runRequestOnBackgroundThread(request: NSMutableURLRequest) {
//We need to update the UI on the mainthread/ ONLY THE UI
dispatch_async(dispatch_get_main_queue(), {
self.scanInProgress()
})
let session = NSURLSession.sharedSession()
// run the request
let task = session.dataTaskWithRequest(request, completionHandler: {data, response, error -> Void in
self.analyzeResults(data!)
})
task.resume()
}
func analyzeResults(dataToParse: NSData) {
// Update UI on the main thread and analyze data from request
// Line 491 below this line
dispatch_async(dispatch_get_main_queue(), {
//Here goes some regex
})
I also found this on Apple.com:
Users who wish to prolong their iPhone’s battery life can enable Low
Power Mode under Settings > Battery. In Low Power Mode, iOS conserves
battery life by enacting certain energy-saving measures. For example,
the system may:
Reduce CPU and GPU performance
Pause discretionary and background activities, including networking
Reduce screen brightness
Reduce the timeout for auto-locking the device
Disable Mail fetch
Disable motion effects
Disable animated wallpapers
Sound like the problem is with Pause discretionary and background activities, including networking?
How can I make the request in the background and update the UI on the mainthread meanwhile when Low Power Mode is enabled (I have some UIView.animateWithDuration going)? The user will always have the app in the foreground when these methods are run, does this mean I should run the request on the main thread?
Below is the Crash report from Fabric/Crashlytics:
#-1. com.apple.main-thread
0 libsystem_platform.dylib 0x18428d8b0 _platform_memcmp + 32
1 CoreFoundation 0x1845fe710 __CFStringEqual + 256
2 CoreFoundation 0x1845fe710 __CFStringEqual + 256
3 CoreFoundation 0x18450ebf4 CFEqual + 400
4 CoreFoundation 0x184670314 __NSCacheKeyEqual + 12
5 libcache.dylib 0x184006bcc _entry_get_optionally_checking_collisions + 164
6 libcache.dylib 0x1840051b8 cache_get_and_retain + 132
7 CoreFoundation 0x18455f22c -[NSCache objectForKey:] + 68
8 CoreUI 0x189146660 -[CUIStructuredThemeStore _canGetRenditionWithKey:isFPO:lookForSubstitutions:] + 360
9 CoreUI 0x189168f48 -[CUICatalog _resolvedRenditionKeyFromThemeRef:withBaseKey:scaleFactor:deviceIdiom:deviceSubtype:sizeClassHorizontal:sizeClassVertical:memoryClass:graphicsClass:graphicsFallBackOrder:] + 1416
10 CoreUI 0x1891680fc -[CUICatalog namedLookupWithName:scaleFactor:deviceIdiom:deviceSubtype:sizeClassHorizontal:sizeClassVertical:] + 148
11 UIKit 0x189b7d994 __98-[_UIAssetManager imageNamed:scale:idiom:subtype:cachingOptions:sizeClassPair:attachCatalogImage:]_block_invoke + 424
12 UIKit 0x189b7d734 -[_UIAssetManager imageNamed:scale:idiom:subtype:cachingOptions:sizeClassPair:attachCatalogImage:] + 212
13 UIKit 0x189c90584 -[UIImageAsset imageWithTraitCollection:] + 404
14 UIKit 0x1896cf058 -[UIImageView _resolveImageForTrait:] + 460
15 UIKit 0x1896ce928 -[UIImageView _didMoveFromWindow:toWindow:] + 212
16 UIKit 0x18931ad7c -[UIView(Internal) _didMoveFromWindow:toWindow:] + 760
17 UIKit 0x1893a04f8 -[UIControl _didMoveFromWindow:toWindow:] + 80
18 UIKit 0x18931ad7c -[UIView(Internal) _didMoveFromWindow:toWindow:] + 760
19 UIKit 0x18931a310 __45-[UIView(Hierarchy) _postMovedFromSuperview:]_block_invoke + 152
20 Foundation 0x184f4d500 -[NSISEngine withBehaviors:performModifications:] + 168
21 UIKit 0x18931a194 -[UIView(Hierarchy) _postMovedFromSuperview:] + 532
22 UIKit 0x189327b80 -[UIView(Internal) _addSubview:positioned:relativeTo:] + 1784
23 UIKit 0x189420b34 -[UITransitionView transition:fromView:toView:removeFromView:] + 1544
24 UIKit 0x189420458 -[UIViewControllerBuiltinTransitionViewAnimator animateTransition:] + 2780
25 UIKit 0x18967ab7c __56-[UIPresentationController runTransitionForCurrentState]_block_invoke + 2228
26 UIKit 0x1895d0b70 _runAfterCACommitDeferredBlocks + 292
27 UIKit 0x1895de030 _cleanUpAfterCAFlushAndRunDeferredBlocks + 92
28 UIKit 0x189311c24 _afterCACommitHandler + 96
29 CoreFoundation 0x1845e4588 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
30 CoreFoundation 0x1845e232c __CFRunLoopDoObservers + 372
31 CoreFoundation 0x1845e275c __CFRunLoopRun + 928
32 CoreFoundation 0x184511680 CFRunLoopRunSpecific + 384
33 GraphicsServices 0x185a20088 GSEventRunModal + 180
34 UIKit 0x189388d90 UIApplicationMain + 204
35 TestDrive 0x1000a32ec main (AppDelegate.swift:15)
36 libdispatch.dylib 0x1840b28b8 (Missing)
#0. com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x1841d14fc kevent_qos + 8
1 libdispatch.dylib 0x18409494c _dispatch_mgr_invoke + 232
2 libdispatch.dylib 0x1840837bc _dispatch_source_invoke + 50
#1. com.twitter.crashlytics.ios.MachExceptionServer
0 TestDrive 0x1000d94c8 CLSProcessRecordAllThreads + 4296103112
1 TestDrive 0x1000d94c8 CLSProcessRecordAllThreads + 4296103112
2 TestDrive 0x1000d98e8 CLSProcessRecordAllThreads + 4296104168
3 TestDrive 0x1000ca5a8 CLSHandler + 4296041896
4 TestDrive 0x1000c572c CLSMachExceptionServer + 4296021804
5 libsystem_pthread.dylib 0x184297b28 _pthread_body + 156
6 libsystem_pthread.dylib 0x184297a8c _pthread_body + 154
7 libsystem_pthread.dylib 0x184295028 thread_start + 4
#2. com.apple.NSURLConnectionLoader
0 libsystem_kernel.dylib 0x1841b54bc mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1841b5338 mach_msg + 72
2 CoreFoundation 0x1845e4ac0 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x1845e27c4 __CFRunLoopRun + 1032
4 CoreFoundation 0x184511680 CFRunLoopRunSpecific + 384
5 CFNetwork 0x184c81434 +[NSURLConnection(Loader) _resourceLoadLoop:] + 412
6 Foundation 0x184fefc40 __NSThread__start__ + 1000
7 libsystem_pthread.dylib 0x184297b28 _pthread_body + 156
8 libsystem_pthread.dylib 0x184297a8c _pthread_body + 154
9 libsystem_pthread.dylib 0x184295028 thread_start + 4
#3. com.apple.CFSocket.private
0 libsystem_kernel.dylib 0x1841d0368 __select + 8
1 CoreFoundation 0x1845eb028 __CFSocketManager + 648
2 libsystem_pthread.dylib 0x184297b28 _pthread_body + 156
3 libsystem_pthread.dylib 0x184297a8c _pthread_body + 154
4 libsystem_pthread.dylib 0x184295028 thread_start + 4
#4. com.apple.coremedia.player.async
0 libsystem_kernel.dylib 0x1841b54f8 semaphore_wait_trap + 8
1 libdispatch.dylib 0x18409255c _dispatch_semaphore_wait_slow + 244
2 MediaToolbox 0x18a119454 fpa_AsyncMovieControlThread + 1948
3 CoreMedia 0x1865ea980 figThreadMain + 272
4 libsystem_pthread.dylib 0x184297b28 _pthread_body + 156
5 libsystem_pthread.dylib 0x184297a8c _pthread_body + 154
6 libsystem_pthread.dylib 0x184295028 thread_start + 4
#5. com.apple.CoreMotion.MotionThread
0 libsystem_kernel.dylib 0x1841b54bc mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1841b5338 mach_msg + 72
2 CoreFoundation 0x1845e4ac0 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x1845e27c4 __CFRunLoopRun + 1032
4 CoreFoundation 0x184511680 CFRunLoopRunSpecific + 384
5 CoreFoundation 0x18455ee2c CFRunLoopRun + 112
6 CoreMotion 0x18a03e22c (null) + 95286384
7 libsystem_pthread.dylib 0x184297b28 _pthread_body + 156
8 libsystem_pthread.dylib 0x184297a8c _pthread_body + 154
9 libsystem_pthread.dylib 0x184295028 thread_start + 4
#6. Thread
0 libsystem_kernel.dylib 0x1841d0b6c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x184295530 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x184295020 start_wqthread + 4
#7. com.apple.camera.avcapturesession
0 libsystem_kernel.dylib 0x1841b54bc mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1841b5338 mach_msg + 72
2 CoreFoundation 0x1845e4ac0 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x1845e27c4 __CFRunLoopRun + 1032
4 CoreFoundation 0x184511680 CFRunLoopRunSpecific + 384
5 AVFoundation 0x18a8e61dc -[AVRunLoopCondition _waitInMode:untilDate:] + 432
6 AVFoundation 0x18a8ce960 -[AVCaptureSession _stopFigCaptureSession] + 412
7 AVFoundation 0x18a8ceb34 -[AVCaptureSession _setRunning:] + 216
8 CameraKit 0x18d1dcce0 __35-[CMKCaptureController stopPreview]_block_invoke
9 libdispatch.dylib 0x184081630 _dispatch_call_block_and_release + 24
10 libdispatch.dylib 0x1840815f0 _dispatch_client_callout + 16
11 libdispatch.dylib 0x18408d634 _dispatch_queue_drain + 864
12 libdispatch.dylib 0x1840850f4 _dispatch_queue_invoke + 464
13 libdispatch.dylib 0x1840815f0 _dispatch_client_callout + 16
14 libdispatch.dylib 0x18408fa88 _dispatch_root_queue_drain + 2140
15 libdispatch.dylib 0x18408f224 _dispatch_worker_thread3 + 112
16 libsystem_pthread.dylib 0x184295470 _pthread_wqthread + 1092
17 libsystem_pthread.dylib 0x184295020 start_wqthread + 4
Crashed: NSOperationQueue 0x15d5754b0 :: NSOperation 0x15e9b8460 (QOS: LEGACY)
0 TestDrive 0x1000b597c VerifyDriverViewController.(runRequestOnBackgroundThread(NSMutableURLRequest) -> ()).(closure #2) (VerifyDriverViewController.swift:491)
1 CFNetwork 0x184c0f344 __75-[__NSURLSessionLocal taskForClass:request:uploadFile:bodyData:completion:]_block_invoke + 32
2 CFNetwork 0x184c21cc4 __49-[__NSCFLocalSessionTask _task_onqueue_didFinish]_block_invoke + 296
3 Foundation 0x184fd4334 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 16
4 Foundation 0x184f27100 -[NSBlockOperation main] + 96
5 Foundation 0x184f17348 -[__NSOperationInternal _start:] + 604
6 Foundation 0x184fd6728 __NSOQSchedule_f + 224
7 libdispatch.dylib 0x1840815f0 _dispatch_client_callout + 16
8 libdispatch.dylib 0x18408d634 _dispatch_queue_drain + 864
9 libdispatch.dylib 0x1840850f4 _dispatch_queue_invoke + 464
10 libdispatch.dylib 0x18408f504 _dispatch_root_queue_drain + 728
11 libdispatch.dylib 0x18408f224 _dispatch_worker_thread3 + 112
12 libsystem_pthread.dylib 0x184295470 _pthread_wqthread + 1092
13 libsystem_pthread.dylib 0x184295020 start_wqthread + 4
#9. Thread
0 libsystem_kernel.dylib 0x1841d0b6c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x184295530 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x184295020 start_wqthread + 4
#10. Thread
0 libsystem_kernel.dylib 0x1841d0b6c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x184295530 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x184295020 start_wqthread + 4
#11. Thread
0 libsystem_kernel.dylib 0x1841d0b6c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x184295530 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x184295020 start_wqthread + 4
Here's the top of the stack trace from the thread which caused the crash:
Crashed: NSOperationQueue 0x15d5754b0 :: NSOperation 0x15e9b8460 (QOS: LEGACY)
0 TestDrive 0x1000b597c VerifyDriverViewController.(runRequestOnBackgroundThread(NSMutableURLRequest) -> ()).(closure #2) (VerifyDriverViewController.swift:491)
1 CFNetwork 0x184c0f344 __75-[__NSURLSessionLocal taskForClass:request:uploadFile:bodyData:completion:]_block_invoke + 32
...
It looks like the crash happened inside of the following closure:
{ data, response, error -> Void in
self.analyzeResults(data!)
}
but before entering the analyzeResults(dataToParse: NSData) function. The only obvious issue at the line self.analyzeResults(data!) is that you're force-unwrapping data without checking that it's present.
As you noticed, Apple mentions that under the Low Power Mode the system may:
Pause discretionary and background activities, including networking
So it's possible that because of the Low Power Mode networking paused for your users which led to timeouts for the network requests. With these timeouts your data variable becomes nil and then you get the crash.
The crash log in crittersicm is as mentioned below:
Exception Type: SIGSEGV
Exception Reason: SEGV_ACCERR
0 libobjc.A.dylib 0x38a33b36 objc_msgSend + 22
1 UIKit 0x30937739 _UIApplicationHandleEventQueue + 4945
2 CoreFoundation 0x2e18d183 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
3 CoreFoundation 0x2e18c653 __CFRunLoopDoSources0 + 207
4 CoreFoundation 0x2e18ae47 __CFRunLoopRun + 623
5 CoreFoundation 0x2e0f5c27 CFRunLoopRunSpecific + 523
6 CoreFoundation 0x2e0f5a0b CFRunLoopRunInMode + 107
7 GraphicsServices 0x32df6283 GSEventRunModal + 139
8 UIKit 0x30999049 UIApplicationMain + 1137
9 xyzApp 0x0002f22f 0x0001e000 + 70191
10 xyzApp 0x000256c8 0x0001e000 + 30408
Thread: Unknown Name
0 libsystem_kernel.dylib 0x38fe483c kevent64 + 24
1 libdispatch.dylib 0x38f24f9b _dispatch_mgr_thread$VARIANT$mp + 39
Thread: Unknown Name
0 libsystem_kernel.dylib 0x38fe4a8c mach_msg_trap + 20
1 CoreFoundation 0x2e18c7c3 __CFRunLoopServiceMachPort + 155
2 CoreFoundation 0x2e18aee9 __CFRunLoopRun + 785
3 CoreFoundation 0x2e0f5c27 CFRunLoopRunSpecific + 523
4 CoreFoundation 0x2e0f5a0b CFRunLoopRunInMode + 107
5 Foundation 0x2eb302f7 +[NSURLConnection(Loader) _resourceLoadLoop:] + 319
6 Foundation 0x2eba5c87 __NSThread__main__ + 1063
7 libsystem_pthread.dylib 0x3905fc1d _pthread_body + 141
8 libsystem_pthread.dylib 0x3905fb8f _pthread_start + 103
9 libsystem_pthread.dylib 0x3905dc90 thread_start + 8
Thread: Unknown Name
0 libsystem_kernel.dylib 0x38ff7440 __select + 20
1 libsystem_pthread.dylib 0x3905fc1d _pthread_body + 141
2 libsystem_pthread.dylib 0x3905fb8f _pthread_start + 103
3 libsystem_pthread.dylib 0x3905dc90 thread_start + 8
Thread: Unknown Name
0 libsystem_kernel.dylib 0x38fe4a8c mach_msg_trap + 20
1 CoreFoundation 0x2e18c7c3 __CFRunLoopServiceMachPort + 155
2 CoreFoundation 0x2e18aee9 __CFRunLoopRun + 785
3 CoreFoundation 0x2e0f5c27 CFRunLoopRunSpecific + 523
4 CoreFoundation 0x2e0f5a0b CFRunLoopRunInMode + 107
5 WebCore 0x362e526b _ZL12RunWebThreadPv + 419
6 libsystem_pthread.dylib 0x3905fc1d _pthread_body + 141
7 libsystem_pthread.dylib 0x3905fb8f _pthread_start + 103
8 libsystem_pthread.dylib 0x3905dc90 thread_start + 8
Thread: Unknown Name
0 libsystem_kernel.dylib 0x38fe4a8c mach_msg_trap + 20
1 CoreFoundation 0x2e18c7c3 __CFRunLoopServiceMachPort + 155
2 CoreFoundation 0x2e18aee9 __CFRunLoopRun + 785
3 CoreFoundation 0x2e0f5c27 CFRunLoopRunSpecific + 523
4 CoreFoundation 0x2e0f5a0b CFRunLoopRunInMode + 107
5 libAVFAudio.dylib 0x2d178589 _ZN20GenericRunLoopThread5EntryEPv + 129
6 libAVFAudio.dylib 0x2d16c99f _ZN9CAPThread5EntryEPS_ + 179
7 libsystem_pthread.dylib 0x3905fc1d _pthread_body + 141
8 libsystem_pthread.dylib 0x3905fb8f _pthread_start + 103
9 libsystem_pthread.dylib 0x3905dc90 thread_start + 8
Thread: Unknown Name
0 libsystem_kernel.dylib 0x38fe4a8c mach_msg_trap + 20
1 CoreFoundation 0x2e18c7c3 __CFRunLoopServiceMachPort + 155
2 CoreFoundation 0x2e18aee9 __CFRunLoopRun + 785
3 CoreFoundation 0x2e0f5c27 CFRunLoopRunSpecific + 523
4 CoreFoundation 0x2e0f5a0b CFRunLoopRunInMode + 107
5 xyzApp 0x000a1693 0x0001e000 + 538259
6 Foundation 0x2eba5c87 __NSThread__main__ + 1063
7 libsystem_pthread.dylib 0x3905fc1d _pthread_body + 141
8 libsystem_pthread.dylib 0x3905fb8f _pthread_start + 103
9 libsystem_pthread.dylib 0x3905dc90 thread_start + 8
Thread: Unknown Name
0 libsystem_kernel.dylib 0x38ff6f38 __psynch_cvwait + 24
1 libsystem_pthread.dylib 0x39060005 pthread_cond_wait + 41
2 JavaScriptCore 0x2f11ad55 _ZN3JSC14BlockAllocator22blockFreeingThreadMainEv + 209
3 JavaScriptCore 0x2f1183a3 _ZN3WTFL19wtfThreadEntryPointEPv + 15
4 libsystem_pthread.dylib 0x3905fc1d _pthread_body + 141
5 libsystem_pthread.dylib 0x3905fb8f _pthread_start + 103
6 libsystem_pthread.dylib 0x3905dc90 thread_start + 8
Thread: Unknown Name
0 libsystem_kernel.dylib 0x38ff6f38 __psynch_cvwait + 24
1 libsystem_pthread.dylib 0x39060005 pthread_cond_wait + 41
2 JavaScriptCore 0x2f2b623b _ZN3JSC8GCThread16waitForNextPhaseEv + 79
3 JavaScriptCore 0x2f2b6295 _ZN3JSC8GCThread12gcThreadMainEv + 53
4 JavaScriptCore 0x2f1183a3 _ZN3WTFL19wtfThreadEntryPointEPv + 15
5 libsystem_pthread.dylib 0x3905fc1d _pthread_body + 141
6 libsystem_pthread.dylib 0x3905fb8f _pthread_start + 103
7 libsystem_pthread.dylib 0x3905dc90 thread_start + 8
Thread: Unknown Name
0 libsystem_kernel.dylib 0x38fe4a8c mach_msg_trap + 20
1 CoreFoundation 0x2e18c7c3 __CFRunLoopServiceMachPort + 155
2 CoreFoundation 0x2e18aee9 __CFRunLoopRun + 785
3 CoreFoundation 0x2e0f5c27 CFRunLoopRunSpecific + 523
4 CoreFoundation 0x2e0f5a0b CFRunLoopRunInMode + 107
5 WebCore 0x3632dd5f _ZN7WebCoreL15runLoaderThreadEPv + 255
6 JavaScriptCore 0x2f1183a3 _ZN3WTFL19wtfThreadEntryPointEPv + 15
7 libsystem_pthread.dylib 0x3905fc1d _pthread_body + 141
8 libsystem_pthread.dylib 0x3905fb8f _pthread_start + 103
9 libsystem_pthread.dylib 0x3905dc90 thread_start + 8
Thread: Unknown Name
0 libsystem_kernel.dylib 0x38ff6f38 __psynch_cvwait + 24
1 libsystem_pthread.dylib 0x39060005 pthread_cond_wait + 41
2 JavaScriptCore 0x2f11ae87 _ZN3WTF15ThreadCondition9timedWaitERNS_5MutexEd + 63
3 WebCore 0x364183ad _ZN3WTF12MessageQueueINS_8FunctionIFvvEEEE33waitForMessageFilteredWithTimeoutIFbPS3_EEENS_10PassOwnPtrIS3_EERNS_22MessageQueueWaitResultERT_d + 109
4 WebCore 0x36418333 _ZN7WebCore13StorageThread16threadEntryPointEv + 167
5 JavaScriptCore 0x2f1183a3 _ZN3WTFL19wtfThreadEntryPointEPv + 15
6 libsystem_pthread.dylib 0x3905fc1d _pthread_body + 141
7 libsystem_pthread.dylib 0x3905fb8f _pthread_start + 103
8 libsystem_pthread.dylib 0x3905dc90 thread_start + 8
Thread: Unknown Name
0 libsystem_kernel.dylib 0x38fe4a8c mach_msg_trap + 20
1 CoreFoundation 0x2e18c7c3 __CFRunLoopServiceMachPort + 155
2 CoreFoundation 0x2e18aee9 __CFRunLoopRun + 785
3 CoreFoundation 0x2e0f5c27 CFRunLoopRunSpecific + 523
4 CoreFoundation 0x2e13973b CFRunLoopRun + 99
5 CoreMotion 0x2e7ac235 CLSF_thorntonUpdate_6x6 + 57045
6 libsystem_pthread.dylib 0x3905fc1d _pthread_body + 141
7 libsystem_pthread.dylib 0x3905fb8f _pthread_start + 103
8 libsystem_pthread.dylib 0x3905dc90 thread_start + 8
Thread: Unknown Name
0 libsystem_kernel.dylib 0x38fe4adc semaphore_wait_trap + 8
1 MediaToolbox 0x2f5e1841 fpa_AsyncMovieControlThread + 1757
2 CoreMedia 0x2e720237 figThreadMain + 195
3 libsystem_pthread.dylib 0x3905fc1d _pthread_body + 141
4 libsystem_pthread.dylib 0x3905fb8f _pthread_start + 103
5 libsystem_pthread.dylib 0x3905dc90 thread_start + 8
Thread: Unknown Name
0 libsystem_kernel.dylib 0x38fe4a8c mach_msg_trap + 20
1 MediaToolbox 0x2f5e7c5d FigExpressNotificationThread + 89
2 CoreMedia 0x2e720237 figThreadMain + 195
3 libsystem_pthread.dylib 0x3905fc1d _pthread_body + 141
4 libsystem_pthread.dylib 0x3905fb8f _pthread_start + 103
5 libsystem_pthread.dylib 0x3905dc90 thread_start + 8
Thread: Unknown Name
0 libsystem_kernel.dylib 0x38ff7c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3905dc84 start_wqthread + 8
Thread: Unknown Name
0 libsystem_kernel.dylib 0x38ff7c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3905dc84 start_wqthread + 8
Thread: Unknown Name
0 libsystem_kernel.dylib 0x38fe4adc semaphore_wait_trap + 8
1 MediaToolbox 0x2f5e1841 fpa_AsyncMovieControlThread + 1757
2 CoreMedia 0x2e720237 figThreadMain + 195
3 libsystem_pthread.dylib 0x3905fc1d _pthread_body + 141
4 libsystem_pthread.dylib 0x3905fb8f _pthread_start + 103
5 libsystem_pthread.dylib 0x3905dc90 thread_start + 8
xyzApp is the placeholder for the app name. I m unable to replicate the crash .
Please help me out. This crash is present in the ipa that is uploaded to App Store with live url(production url). It is a universal app.
Just for reference:
Device details for which the crsh has occurred:
DEVICE
3rd Gen iPad, CDMA
OS
iOS7.0.3
Thanks in advance.
Looks like you haven't symbolicated. That helps a lot when debugging with Crittercism. Here's the documentation Crittercism provides around getting the symbols onto the server for iOS:
http://docs.crittercism.com/ios/ios.html#configuring-ios-symbolication
If you're having trouble uploading symbols to Crittercism, then contacting there support might be your best bet.
Looks like it's related to the network thread, most other threads are in a "mach_msg_trap" state. The 4th thread on the list is the one that crashed. I'm using AFNetworking on iOS 7.1
I appreciate any idea or thought that might help me investigate this issue.
Threads
_________________________________
Thread: Unknown Name
0 libsystem_kernel.dylib 0x3924da84 mach_msg_trap + 20
1 CoreFoundation 0x2e91e559 __CFRunLoopServiceMachPort + 157
2 CoreFoundation 0x2e91ccbf __CFRunLoopRun + 863
3 CoreFoundation 0x2e887471 CFRunLoopRunSpecific + 525
4 CoreFoundation 0x2e887253 CFRunLoopRunInMode + 107
5 GraphicsServices 0x335c12eb GSEventRunModal + 139
6 UIKit 0x3113c845 UIApplicationMain + 1137
7 Vieu 0x000f4f87 main (main.m:17)
8 libdyld.dylib 0x391a9ab7 start + 3
Thread: Unknown Name
0 libsystem_kernel.dylib 0x3924d838 kevent64 + 24
1 libdispatch.dylib 0x39196623 _dispatch_mgr_thread + 39
Thread: Unknown Name
0 libsystem_kernel.dylib 0x3924da84 mach_msg_trap + 20
1 CoreFoundation 0x2e91e559 __CFRunLoopServiceMachPort + 157
2 CoreFoundation 0x2e91cc79 __CFRunLoopRun + 793
3 CoreFoundation 0x2e887471 CFRunLoopRunSpecific + 525
4 CoreFoundation 0x2e8cb0db CFRunLoopRun + 99
5 CoreMotion 0x2ef3f369 CLSF_thorntonUpdate_6x6 + 57225
6 libsystem_pthread.dylib 0x392c6c5d _pthread_body + 141
7 libsystem_pthread.dylib 0x392c6bcf _pthread_start + 103
8 libsystem_pthread.dylib 0x392c4cd0 thread_start + 8
Thread: Unknown Name (Crashed)
0 libdispatch.dylib 0x39199758 _dispatch_barrier_sync_f_slow + 120
1 libsystem_network.dylib 0x3929c2df tcp_connection_cancel + 107
2 CFNetwork 0x2e54d3d9 _ZN12SocketStreamD2Ev + 89
3 CFNetwork 0x2e54d371 _ZN12SocketStreamD1Ev + 21
4 CoreFoundation 0x2e883e2f CFRelease + 467
5 CFNetwork 0x2e54cd69 _ZN27CoreReadStreamWithCallBacksD2Ev + 45
6 CoreFoundation 0x2e883e2f CFRelease + 467
7 CFNetwork 0x2e56b437 _ZN14HTTPReadFilterD2Ev + 115
8 CoreFoundation 0x2e883e2f CFRelease + 467
9 CFNetwork 0x2e56b2a7 _ZN13NetConnectionD2Ev + 99
10 CFNetwork 0x2e56b23f _ZN17HTTPNetConnectionD2Ev + 79
11 CFNetwork 0x2e56b1a3 _ZN24HTTPNetConnection_NoAuthD0Ev + 11
12 CoreFoundation 0x2e8fcab9 __CFArrayReleaseValues + 197
13 CoreFoundation 0x2e883e2f CFRelease + 467
14 CFNetwork 0x2e5b05af _ZN24HTTPConnectionCacheEntry20purgeIdleConnectionsEdd + 271
15 CFNetwork 0x2e56b9d1 _ZN19HTTPConnectionCache16performIdleSweepEv + 161
16 CFNetwork 0x2e5aea6f _ZN19HTTPConnectionCache26timeoutIdleCellConnectionsEv + 23
17 CFNetwork 0x2e5ee337 ___ZNK17CoreSchedulingSet13_performAsyncEPKcU13block_pointerFvvE_block_invoke + 19
18 CoreFoundation 0x2e886ea1 CFArrayApplyFunction + 37
19 CFNetwork 0x2e554e05 _ZN19RunloopBlockContext7performEv + 165
20 CFNetwork 0x2e554cd5 _ZN17MultiplexerSource7performEv + 221
21 CFNetwork 0x2e554b65 _ZN17MultiplexerSource8_performEPv + 49
22 CoreFoundation 0x2e91ef1f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
23 CoreFoundation 0x2e91e3e7 __CFRunLoopDoSources0 + 207
24 CoreFoundation 0x2e91cbd7 __CFRunLoopRun + 631
25 CoreFoundation 0x2e887471 CFRunLoopRunSpecific + 525
26 CoreFoundation 0x2e887253 CFRunLoopRunInMode + 107
27 Foundation 0x2f2c24c1 +[NSURLConnection(Loader) _resourceLoadLoop:] + 321
28 Foundation 0x2f337c37 __NSThread__main__ + 1063
29 libsystem_pthread.dylib 0x392c6c5d _pthread_body + 141
30 libsystem_pthread.dylib 0x392c6bcf _pthread_start + 103
31 libsystem_pthread.dylib 0x392c4cd0 thread_start + 8
Thread: Unknown Name
0 libsystem_kernel.dylib 0x39260440 __select + 20
1 libsystem_pthread.dylib 0x392c6c5d _pthread_body + 141
2 libsystem_pthread.dylib 0x392c6bcf _pthread_start + 103
3 libsystem_pthread.dylib 0x392c4cd0 thread_start + 8
Thread: Unknown Name
0 libsystem_kernel.dylib 0x3924da84 mach_msg_trap + 20
1 CoreFoundation 0x2e91e559 __CFRunLoopServiceMachPort + 157
2 CoreFoundation 0x2e91cc79 __CFRunLoopRun + 793
3 CoreFoundation 0x2e887471 CFRunLoopRunSpecific + 525
4 CoreFoundation 0x2e887253 CFRunLoopRunInMode + 107
5 Foundation 0x2f275697 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 255
6 Foundation 0x2f2c64d9 -[NSRunLoop(NSRunLoop) run] + 81
7 Vieu 0x000c9c9b +[AFURLConnectionOperation networkRequestThreadEntryPoint:] (AFURLConnectionOperation.m:149)
8 Foundation 0x2f337c37 __NSThread__main__ + 1063
9 libsystem_pthread.dylib 0x392c6c5d _pthread_body + 141
10 libsystem_pthread.dylib 0x392c6bcf _pthread_start + 103
11 libsystem_pthread.dylib 0x392c4cd0 thread_start + 8
Thread: Unknown Name
0 libsystem_kernel.dylib 0x3924dad4 semaphore_wait_trap + 8
1 MediaToolbox 0x2fd76a0f fpa_AsyncMovieControlThread + 1755
2 CoreMedia 0x2eeb3217 figThreadMain + 195
3 libsystem_pthread.dylib 0x392c6c5d _pthread_body + 141
4 libsystem_pthread.dylib 0x392c6bcf _pthread_start + 103
5 libsystem_pthread.dylib 0x392c4cd0 thread_start + 8
Thread: Unknown Name
0 libsystem_kernel.dylib 0x3924da84 mach_msg_trap + 20
1 CoreFoundation 0x2e91e559 __CFRunLoopServiceMachPort + 157
2 CoreFoundation 0x2e91cc79 __CFRunLoopRun + 793
3 CoreFoundation 0x2e887471 CFRunLoopRunSpecific + 525
4 CoreFoundation 0x2e887253 CFRunLoopRunInMode + 107
5 libAVFAudio.dylib 0x2d8f65b3 _ZN20GenericRunLoopThread5EntryEPv + 131
6 libAVFAudio.dylib 0x2d8eaaff _ZN9CAPThread5EntryEPS_ + 179
7 libsystem_pthread.dylib 0x392c6c5d _pthread_body + 141
8 libsystem_pthread.dylib 0x392c6bcf _pthread_start + 103
9 libsystem_pthread.dylib 0x392c4cd0 thread_start + 8
Thread: Unknown Name
0 libsystem_kernel.dylib 0x3924da84 mach_msg_trap + 20
1 MediaToolbox 0x2fd7ce19 FigExpressNotificationThread + 89
2 CoreMedia 0x2eeb3217 figThreadMain + 195
3 libsystem_pthread.dylib 0x392c6c5d _pthread_body + 141
4 libsystem_pthread.dylib 0x392c6bcf _pthread_start + 103
5 libsystem_pthread.dylib 0x392c4cd0 thread_start + 8
Thread: Unknown Name
0 libsystem_kernel.dylib 0x39260c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x392c4cc4 start_wqthread + 8
Thread: Unknown Name
0 libsystem_kernel.dylib 0x3924da84 mach_msg_trap + 20
1 CoreFoundation 0x2e91e559 __CFRunLoopServiceMachPort + 157
2 CoreFoundation 0x2e91cc79 __CFRunLoopRun + 793
3 CoreFoundation 0x2e887471 CFRunLoopRunSpecific + 525
4 CoreFoundation 0x2e887253 CFRunLoopRunInMode + 107
5 libAVFAudio.dylib 0x2d8f65b3 _ZN20GenericRunLoopThread5EntryEPv + 131
6 libAVFAudio.dylib 0x2d8eaaff _ZN9CAPThread5EntryEPS_ + 179
7 libsystem_pthread.dylib 0x392c6c5d _pthread_body + 141
8 libsystem_pthread.dylib 0x392c6bcf _pthread_start + 103
9 libsystem_pthread.dylib 0x392c4cd0 thread_start + 8
Thread: Unknown Name
0 libsystem_kernel.dylib 0x3924da84 mach_msg_trap + 20
1 CoreFoundation 0x2e91e559 __CFRunLoopServiceMachPort + 157
2 CoreFoundation 0x2e91cc79 __CFRunLoopRun + 793
3 CoreFoundation 0x2e887471 CFRunLoopRunSpecific + 525
4 CoreFoundation 0x2e887253 CFRunLoopRunInMode + 107
5 AudioToolbox 0x2e25e46b _ZN20GenericRunLoopThread5EntryEPv + 131
6 AudioToolbox 0x2e244773 _ZN9CAPThread5EntryEPS_ + 211
7 libsystem_pthread.dylib 0x392c6c5d _pthread_body + 141
8 libsystem_pthread.dylib 0x392c6bcf _pthread_start + 103
9 libsystem_pthread.dylib 0x392c4cd0 thread_start + 8
Thread: Unknown Name
0 libsystem_kernel.dylib 0x39260c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x392c4cc4 start_wqthread + 8
Thread: Unknown Name
0 libsystem_kernel.dylib 0x39260c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x392c4cc4 start_wqthread + 8
Thread: Unknown Name
0 libsystem_kernel.dylib 0x39260c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x392c4cc4 start_wqthread + 8
Thread: Unknown Name
0 libsystem_kernel.dylib 0x39260c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x392c4cc4 start_wqthread + 8
Crashed Registers
_________________________________
r12 0x3b0882ec
r10 0x2f1a9ec
r11 0x394687e0
cpsr 0x20000030
r4 0x18832b90
r5 0x6c03
r6 0x1013380
r7 0x2f1a9e0
r0 0x2f1a96c
r1 0x200
r2 0x0
r3 0x200
sp 0x2f1a96c
r8 0x3929c2e9
r9 0x0
pc 0x39199758
lr 0x3929c2df
It seems that you need investigate calls of these functions: mach_msg_trap and semaphore_wait_trap. It is the main reason of crash. Sometimes calls of these methods at the top of stack are indicators of receiving deadlock. Here some links for investigation:
IOS semaphore_wait_trap on main thread causing hang in UI
http://iphonedevsdk.com/forum/iphone-sdk-development/7354-what-means-mach-msg-trap.html
Deadlock using AFIncrementalStore and NSFetchedResultsController
Try to reproduce crash by starting application, open url connections, send application to background, wait few seconds and then bring it to foreground.