iOS SIGABRT on launch - ios

I recently setted up Crashlytics to receive crashlogs from my iOS app and I keep on getting a SIGABRT crashlog and i can't find from where it comes from.
Here's the crashlog if you can help me a little:
Exception Type: SIGABRT Code: ABORT at 0x364b132c
com.apple.main-thread Crashed
libsystem_kernel.dylib __pthread_kill + 8
libsystem_c.dylib pthread_kill + 54
libsystem_c.dylib abort + 94
libc++abi.dylib abort_message + 46
libc++abi.dylib safe_handler_caller(void (*)()) + 120
libc++abi.dylib operator delete(void*)
libc++abi.dylib __cxa_current_exception_type
libobjc.A.dylib objc_exception_rethrow + 12
CoreFoundation CFRunLoopRunSpecific + 404
CoreFoundation CFRunLoopRunInMode + 104
GraphicsServices GSEventRunModal + 136
UIKit UIApplicationMain + 1080
MyApplication main.m line 16 main
com.apple.libdispatch-manager
libsystem_kernel.dylib kevent + 24
libdispatch.dylib _dispatch_mgr_invoke + 714
libdispatch.dylib _dispatch_mgr_wakeup
WebThread
libsystem_kernel.dylib __psynch_mutexwait + 24
libsystem_c.dylib pthread_mutex_lock + 382
WebCore _WebTryThreadLock(bool) + 214
WebCore WebRunLoopLock(__CFRunLoopObserver*, unsigned long, void*) + 30
CoreFoundation __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 18
CoreFoundation __CFRunLoopDoObservers + 258
CoreFoundation __CFRunLoopRun + 952
CoreFoundation CFRunLoopRunSpecific + 300
CoreFoundation CFRunLoopRunInMode + 104
WebCore RunWebThread(void*) + 402
libsystem_c.dylib _pthread_start + 320
com.crashlytics.MachExceptionServer
libsystem_kernel.dylib mach_msg_trap + 20
libsystem_kernel.dylib mach_msg + 56
MyApplication CLSMachExceptionServer + 120
libsystem_c.dylib _pthread_start + 320
com.apple.NSURLConnectionLoader
libsystem_kernel.dylib mach_msg_trap + 20
libsystem_kernel.dylib mach_msg + 56
CoreFoundation __CFRunLoopServiceMachPort + 126
CoreFoundation __CFRunLoopRun + 882
CoreFoundation CFRunLoopRunSpecific + 300
CoreFoundation CFRunLoopRunInMode + 104
Foundation +[NSURLConnection(Loader) _resourceLoadLoop:] + 308
Foundation -[NSThread main] + 72
Foundation __NSThread__main__ + 1048
libsystem_c.dylib _pthread_start + 320
Thread
libsystem_kernel.dylib __psynch_cvwait + 24
libsystem_c.dylib _pthread_cond_wait + 640
libsystem_c.dylib pthread_cond_wait + 40
Foundation -[NSCondition wait] + 196
MyApplication PFCommandCache.m line 496 -[PFCommandCache runLoop]
Foundation -[NSThread main] + 72
Foundation __NSThread__main__ + 1048
libsystem_c.dylib _pthread_start + 320
Thread
libsystem_kernel.dylib mach_msg_trap + 20
libsystem_kernel.dylib mach_msg + 56
CoreFoundation __CFRunLoopServiceMachPort + 126
CoreFoundation __CFRunLoopRun + 882
CoreFoundation CFRunLoopRunSpecific + 300
CoreFoundation CFRunLoopRunInMode + 104
Foundation -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 256
Foundation -[NSRunLoop(NSRunLoop) run] + 78
MyApplication PF_AFURLConnectionOperation.m line 151 +[PF_AFURLConnectionOperation networkRequestThreadEntryPoint:]
Foundation -[NSThread main] + 72
Foundation __NSThread__main__ + 1048
libsystem_c.dylib _pthread_start + 320
com.apple.CFSocket.private
libsystem_kernel.dylib __select + 20
CoreFoundation __CFSocketManager + 732
libsystem_c.dylib _pthread_start + 320
Thread
libsystem_kernel.dylib __workq_kernreturn + 8
libsystem_c.dylib _pthread_wqthread + 616
WebCore: CFNetwork Loader
libsystem_kernel.dylib mach_msg_trap + 20
libsystem_kernel.dylib mach_msg + 56
CoreFoundation __CFRunLoopServiceMachPort + 126
CoreFoundation __CFRunLoopRun + 882
CoreFoundation CFRunLoopRunSpecific + 300
CoreFoundation CFRunLoopRunInMode + 104
WebCore WebCore::runLoaderThread(void*) + 128
libsystem_c.dylib _pthread_start + 320
Thread
libsystem_kernel.dylib __workq_kernreturn + 8
libsystem_c.dylib _pthread_wqthread + 616
Thread
libsystem_c.dylib start_wqthread
Thanks for your help !
EDIT: Just to be clear, i received this crashlog multiple times, I wasn't able to reproduce the bug on my testing devices

seems you are removing/deleting something in your applicationDelegate (applicationDidEnterBackground etc.) within your WebThread(UIWebView?) thats not there anymore if you close/reopen your app.

Try doing print object on that hex code, sometimes can provide some insight.
po 0x364b132c
Would have left this as a comment, but for some reason can't comment on your post.

Related

How to interpret crash reports that are not fully symbolicated in firebase?

We use firebase crash analytics in our app, it helped us solve bugs quick by specifying function name and even line numbers too, but sometimes it only gives
appDelegate.swift [start + 17644]
how can I intrpret this report? and why it appears like that ?
this is the full trace with threads, the app name is replaced by appName
Exception name: EXC_SOFTWARE / UNCAUGHT_NS_EXCEPTION
1 CoreFoundation __exceptionPreprocess + 1241536
2 libobjc.A.dylib objc_exception_throw + 34136
3 CoreFoundation -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 80952
4 CoreFoundation +[NSDictionary dictionaryWithObjects:forKeys:count:] + 80552
5 FBSDKCoreKit 4304632780 + 244684
6 FBSDKCoreKit 4304632048 + 243952
7 FBSDKCoreKit 4304437716 + 49620
8 CoreFoundation __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 823848
9 CoreFoundation _CFXRegistrationPost + 821548
10 CoreFoundation ___CFXNotificationPost_block_invoke + 820904
11 CoreFoundation -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1276824
12 CoreFoundation _CFXNotificationPost + 44016
13 Foundation -[NSNotificationCenter postNotificationName:object:userInfo:] + 26152
14 UIKit -[UIApplication _deactivateForReason:notify:] + 491392
15 CoreFoundation __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 823848
16 CoreFoundation ___CFXRegistrationPost_block_invoke + 823692
17 CoreFoundation __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 905564
18 CoreFoundation __CFRunLoopDoBlocks + 903512
19 CoreFoundation __CFRunLoopRun + 896080
20 CoreFoundation CFRunLoopRunSpecific + 36932
21 GraphicsServices GSEventRunModal + 49556
22 UIKit -[UIApplication _run] + 504568
23 UIKit UIApplicationMain + 483376
24 appName main (AppDelegate.swift:18)
25 libdyld.dylib start + 17844
Thread 2
1 libsystem_kernel.dylib mach_msg_trap + 4460
2 libsystem_kernel.dylib mach_msg + 4056
3 CoreFoundation __CFRunLoopServiceMachPort + 904424
4 CoreFoundation __CFRunLoopRun + 895236
5 CoreFoundation CFRunLoopRunSpecific + 36932
6 Foundation -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 51848
7 Foundation -[NSRunLoop(NSRunLoop) runUntilDate:] + 185720
8 UIKit -[UIEventFetcher threadMain] + 10422824
9 Foundation __NSThread__start__ + 1090680
10 libsystem_pthread.dylib _pthread_body + 14412
11 libsystem_pthread.dylib _pthread_start + 14172
12 libsystem_pthread.dylib thread_start + 3496
Thread 3
1 libsystem_kernel.dylib mach_msg_trap + 4460
2 libsystem_kernel.dylib mach_msg + 4056
3 CoreFoundation __CFRunLoopServiceMachPort + 904424
4 CoreFoundation __CFRunLoopRun + 895236
5 CoreFoundation CFRunLoopRunSpecific + 36932
6 CFNetwork +[NSURLConnection(Loader) _resourceLoadLoop:] + 847820
7 Foundation __NSThread__start__ + 1090680
8 libsystem_pthread.dylib _pthread_body + 14412
9 libsystem_pthread.dylib _pthread_start + 14172
10 libsystem_pthread.dylib thread_start + 3496
Thread 4
1 libsystem_kernel.dylib mach_msg_trap + 4460
2 libsystem_kernel.dylib mach_msg + 4056
3 CoreFoundation __CFRunLoopServiceMachPort + 904424
4 CoreFoundation __CFRunLoopRun + 895236
5 CoreFoundation CFRunLoopRunSpecific + 36932
6 Foundation -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 51848
7 Foundation -[NSRunLoop(NSRunLoop) run] + 397836
8 appName +[GAI threadMain:] + 1782640
9 Foundation __NSThread__start__ + 1090680
10 libsystem_pthread.dylib _pthread_body + 14412
11 libsystem_pthread.dylib _pthread_start + 14172
12 libsystem_pthread.dylib thread_start + 3496
Thread 5
1 libsystem_kernel.dylib mach_msg_trap + 4460
2 libsystem_kernel.dylib mach_msg + 4056
3 appName google_breakpad::ExceptionHandler::WaitForMessage(void*) + 2388144
4 libsystem_pthread.dylib _pthread_body + 14412
5 libsystem_pthread.dylib _pthread_start + 14172
6 libsystem_pthread.dylib thread_start + 3496
Thread 6
1 libsystem_kernel.dylib mach_msg_trap + 4460
2 libsystem_kernel.dylib mach_msg + 4056
3 CoreFoundation __CFRunLoopServiceMachPort + 904424
4 CoreFoundation __CFRunLoopRun + 895236
5 CoreFoundation CFRunLoopRunSpecific + 36932
6 GeoServices _runNetworkThread + 4308864
7 libsystem_pthread.dylib _pthread_body + 14412
8 libsystem_pthread.dylib _pthread_start + 14172
9 libsystem_pthread.dylib thread_start + 3496
Thread 7
1 libsystem_kernel.dylib __workq_kernreturn + 129672
2 libsystem_pthread.dylib _pthread_wqthread + 4952
3 libsystem_pthread.dylib start_wqthread + 3488 arrow_drop_down
Thread 8
1 libsystem_kernel.dylib __workq_kernreturn + 129672
2 libsystem_pthread.dylib _pthread_wqthread + 4468
3 libsystem_pthread.dylib start_wqthread + 3488 arrow_drop_down
Thread 9
1 libsystem_kernel.dylib __workq_kernreturn + 129672
2 libsystem_pthread.dylib _pthread_wqthread + 4952
3 libsystem_pthread.dylib start_wqthread + 3488
Thread 10
1 CoreFoundation> -[__NSDictionaryM countByEnumeratingWithState:objects:count:] + 86492
2 appName +[FIRAEvent normalizedParametersForParameters:isPublicEvent:] + 1999144 3 appName +[FIRAEvent normalizedParametersForParameters:isPublicEvent:] + 1999144 4 appName -[FIRAEvent initWithOrigin:isPublic:name:timestamp:previousTimestamp:parameters:] + 2002028
5 appName +[FIRAnalytics logEventOnSerialQueueWithOrigin:isPublicEvent:name:parameters:timestamp:ignoreEnabled:ignoreInterceptor:addedScreenParameters:] + 2195924
6 appName __65+[FIRAnalytics logEventWithOrigin:isPublicEvent:name:parameters:]_block_invoke_3 + 2195040
7 libdispatch.dylib _dispatch_call_block_and_release + 4604
8 libdispatch.dylib _dispatch_client_callout + 4540
9 libdispatch.dylib _dispatch_queue_serial_drain + 62528
10 libdispatch.dylib _dispatch_queue_invoke + 18852
11 libdispatch.dylib _dispatch_root_queue_drain + 70536
12 libdispatch.dylib _dispatch_worker_thread3 + 69864
13 libsystem_pthread.dylib _pthread_wqthread + 4788
14 libsystem_pthread.dylib start_wqthread + 3488
Your app crashed because of an exception. As your data doesn't show the exception string, it is unknown what kind of exception triggered the crash.
The exception was raised due to a problem in the FBSDKCoreKit framework, which is likely the Facebook 3rd party SDK. As you most likely didn't upload the debug symbols of that framework to Firebase, they couldn't symbolicate them and provide the classes and methods being called in those frames.
The exception is triggered by a problem with handling of an NSDictionary object, could be trying to insert a nil value for a key, but that is just a guess.
As the only non system frames in the resulting stack trace are from your apps call, Firebase grouped the crashes by that call instead of the calls in FBSDKCoreKit.
To learn more about those crashes you need to upload the symbols of the FBSDKCoreKit framework. With the given information it is impossible to know what the crash is about and how to fix it.

Deciphering a Crash Report - iOS - xCode

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

ios crash _mh_execute_header (any idea ?)

I need help please.
So, I made an app, during the development, nothing wrong, all my beta custommer got no error.
But now I have a lot of crash taht I can't reproduce myself.
I don't know how to do it and when it appening .
I got the crash report with crashlytics.
Thanks in advance for your help.
Exception Type: SIGABRT Code: ABORT at 0x1013650256
com.apple.main-thread Crashed
libsystem_kernel.dylib __pthread_kill + 8
libsystem_c.dylib pthread_kill + 58
libsystem_c.dylib abort + 94
XXXXX2 _mh_execute_header + 6703
UIKit -[UIApplication _handleApplicationSuspend:eventInfo:] + 784
UIKit -[UIApplication handleEvent:withNewEvent:] + 2458
UIKit -[UIApplication sendEvent:] + 72
UIKit _UIApplicationHandleEvent + 6154
GraphicsServices _PurpleEventCallback + 590
GraphicsServices PurpleEventCallback + 34
CoreFoundation __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 34
CoreFoundation __CFRunLoopDoSource1 + 138
CoreFoundation __CFRunLoopRun + 1384
CoreFoundation CFRunLoopRunSpecific + 356
CoreFoundation CFRunLoopRunInMode + 104
GraphicsServices GSEventRunModal + 74
UIKit UIApplicationMain + 1120
XXXXX2
main.m line 17
main
com.apple.libdispatch-manager
... libsystem_kernel.dylib kevent64 + 24
libdispatch.dylib _dispatch_mgr_invoke + 796
libdispatch.dylib _dispatch_mgr_thread$VARIANT$mp + 35
WebThread
... libsystem_kernel.dylib mach_msg_trap + 20
libsystem_kernel.dylib mach_msg + 40
CoreFoundation __CFRunLoopServiceMachPort + 128
CoreFoundation __CFRunLoopRun + 882
CoreFoundation CFRunLoopRunSpecific + 356
CoreFoundation CFRunLoopRunInMode + 104
WebCore RunWebThread(void*) + 444
libsystem_c.dylib _pthread_start + 308
com.apple.NSURLConnectionLoader
... libsystem_kernel.dylib mach_msg_trap + 20
libsystem_kernel.dylib mach_msg + 40
CoreFoundation __CFRunLoopServiceMachPort + 128
CoreFoundation __CFRunLoopRun + 882
CoreFoundation CFRunLoopRunSpecific + 356
CoreFoundation CFRunLoopRunInMode + 104
Foundation +[NSURLConnection(Loader) _resourceLoadLoop:] + 308
Foundation __NSThread__main__ + 972
libsystem_c.dylib _pthread_start + 308
com.crashlytics.MachExceptionServer
libsystem_kernel.dylib mach_msg_trap + 20
libsystem_kernel.dylib mach_msg + 40
XXXXX2 CLSMachExceptionServer
libsystem_c.dylib _pthread_start + 308
com.apple.CFSocket.private
libsystem_kernel.dylib __select + 20
libsystem_c.dylib _pthread_start + 308
JavaScriptCore::BlockFree
libsystem_kernel.dylib __psynch_cvwait + 24
libsystem_c.dylib pthread_cond_timedwait + 44
JavaScriptCore WTF::ThreadCondition::timedWait(WTF::Mutex&, double) + 108
JavaScriptCore JSC::BlockAllocator::blockFreeingThreadMain() + 82
JavaScriptCore WTF::wtfThreadEntryPoint(void*) + 14
libsystem_c.dylib _pthread_start + 308
JavaScriptCore::Marking
libsystem_kernel.dylib __psynch_cvwait + 24
libsystem_c.dylib _pthread_cond_wait + 646
libsystem_c.dylib pthread_cond_wait + 40
JavaScriptCore JSC::SlotVisitor::drainFromShared(JSC::SlotVisitor::SharedDrainMode) + 148
JavaScriptCore JSC::MarkStackThreadSharedData::markingThreadMain() + 144
JavaScriptCore WTF::wtfThreadEntryPoint(void*) + 14
libsystem_c.dylib _pthread_start + 308
Thread 8
libsystem_kernel.dylib __workq_kernreturn + 8
libsystem_c.dylib _pthread_workq_return + 18
libsystem_c.dylib _pthread_wqthread + 365
Thread 9
libsystem_kernel.dylib __workq_kernreturn + 8
libsystem_c.dylib _pthread_workq_return + 18
libsystem_c.dylib _pthread_wqthread + 365
Could it be that you are doing networking blocking calls on the main thread? This causes watchdog timeouts, but I couldn't following your stack back trace properly (it has been pruned).

Is this crash caused by me or UIKit itself?

This crash report is really tough for me to get a handle on. I've seen it every now and then, and its been pretty impossible to fix given that it doesn't really give me any references to my code to work from.
Is this a crash that was caused by Apple and I don't have to worry about it?
Date/Time: 2013-02-26 03:49:36 +0000
OS Version: iPhone OS 6.1.2 (10B146)
Report Version: 104
Exception Type: SIGTRAP
Exception Codes: #0 at 0x33973d24
Crashed Thread: 0
Thread 0 Crashed:
0 CoreFoundation 0x33973d24 CFRetain + 8
1 UIKit 0x359484f9 -[UIKeyboardCache displayView:imageWidth:withKey:fromLayout:] + 297
2 UIKit 0x359483c7 -[UIKeyboardCache displayView:withKey:fromLayout:] + 91
3 UIKit 0x35947b5b -[UIKBKeyplaneView displayLayer:] + 191
4 QuartzCore 0x355f34f7 CA::Layer::display() + 95
5 QuartzCore 0x355ea93b CA::Layer::display_if_needed(CA::Transaction*) + 203
6 QuartzCore 0x355ea865 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 25
7 QuartzCore 0x355ea243 CA::Context::commit_transaction(CA::Transaction*) + 239
8 QuartzCore 0x355ea051 CA::Transaction::commit() + 317
9 QuartzCore 0x355e9eb1 CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 61
10 CoreFoundation 0x33a096cd __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 21
11 CoreFoundation 0x33a079c1 __CFRunLoopDoObservers + 277
12 CoreFoundation 0x33a07d17 __CFRunLoopRun + 743
13 CoreFoundation 0x3397aebd CFRunLoopRunSpecific + 357
14 CoreFoundation 0x3397ad49 CFRunLoopRunInMode + 105
15 GraphicsServices 0x3753c2eb GSEventRunModal + 75
16 UIKit 0x35890301 UIApplicationMain + 1121
17 MyApp 0x0004e60f main (main.m:16)
Thread 1:
0 libsystem_kernel.dylib 0x3bbbc648 kevent64 + 24
1 libdispatch.dylib 0x3bae7df8 _dispatch_mgr_thread$VARIANT$up + 36
Thread 2:
0 libsystem_kernel.dylib 0x3bbbbeb4 mach_msg_trap + 20
1 CoreFoundation 0x33a09045 __CFRunLoopServiceMachPort + 129
2 CoreFoundation 0x33a07da3 __CFRunLoopRun + 883
3 CoreFoundation 0x3397aebd CFRunLoopRunSpecific + 357
4 CoreFoundation 0x3397ad49 CFRunLoopRunInMode + 105
5 WebCore 0x3996f505 RunWebThread(void*) + 445
6 libsystem_c.dylib 0x3bb25311 _pthread_start + 309
Thread 3:
0 libsystem_kernel.dylib 0x3bbbbeb4 mach_msg_trap + 20
1 CoreFoundation 0x33a09045 __CFRunLoopServiceMachPort + 129
2 CoreFoundation 0x33a07da3 __CFRunLoopRun + 883
3 CoreFoundation 0x3397aebd CFRunLoopRunSpecific + 357
4 CoreFoundation 0x3397ad49 CFRunLoopRunInMode + 105
5 Foundation 0x3429df97 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 255
6 Foundation 0x34341865 -[NSRunLoop(NSRunLoop) run] + 81
7 MyApp 0x0003f7b5 +[AFURLConnectionOperation networkRequestThreadEntryPoint:] (AFURLConnectionOperation.m:161)
8 Foundation 0x3434ae85 __NSThread__main__ + 973
9 libsystem_c.dylib 0x3bb25311 _pthread_start + 309
Thread 4:
0 libsystem_kernel.dylib 0x3bbbbeb4 mach_msg_trap + 20
1 CoreFoundation 0x33a09045 __CFRunLoopServiceMachPort + 129
2 CoreFoundation 0x33a07da3 __CFRunLoopRun + 883
3 CoreFoundation 0x3397aebd CFRunLoopRunSpecific + 357
4 CoreFoundation 0x3397ad49 CFRunLoopRunInMode + 105
5 Foundation 0x342c73d5 +[NSURLConnection(Loader) _resourceLoadLoop:] + 309
6 Foundation 0x3434ae85 __NSThread__main__ + 973
7 libsystem_c.dylib 0x3bb25311 _pthread_start + 309
Thread 5:
0 libsystem_kernel.dylib 0x3bbcc594 __select + 20
1 libsystem_c.dylib 0x3bb25311 _pthread_start + 309
Thread 6:
0 libsystem_kernel.dylib 0x3bbcc08c __psynch_cvwait + 24
1 libsystem_c.dylib 0x3bb1daa5 pthread_cond_timedwait + 45
2 JavaScriptCore 0x37932c75 WTF::ThreadCondition::timedWait(WTF::Mutex&, double) + 109
3 JavaScriptCore 0x37a44557 JSC::BlockAllocator::blockFreeingThreadMain() + 83
4 JavaScriptCore 0x37a56fab WTF::wtfThreadEntryPoint(void*) + 15
5 libsystem_c.dylib 0x3bb25311 _pthread_start + 309
Thread 7:
0 libsystem_kernel.dylib 0x3bbbbeb4 mach_msg_trap + 20
1 CoreFoundation 0x33a09045 __CFRunLoopServiceMachPort + 129
2 CoreFoundation 0x33a07da3 __CFRunLoopRun + 883
3 CoreFoundation 0x3397aebd CFRunLoopRunSpecific + 357
4 CoreFoundation 0x3397ad49 CFRunLoopRunInMode + 105
5 AudioToolbox 0x3345c703 GenericRunLoopThread::Entry(void*) + 139
6 AudioToolbox 0x3343d885 CAPThread::Entry(CAPThread*) + 297
7 libsystem_c.dylib 0x3bb25311 _pthread_start + 309
Thread 8:
0 libsystem_kernel.dylib 0x3bbccd98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3bb1aa16 _pthread_wqthread + 366
Thread 9:
0 libsystem_kernel.dylib 0x3bbccd98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3bb1aa16 _pthread_wqthread + 366
This is not caused by apple. Below line is the entry point of the crash. Make sure some related object/view doesn't get deallocated.
MyApp 0x0003f7b5 +[AFURLConnectionOperation networkRequestThreadEntryPoint:] (AFURLConnectionOperation.m:161
Update:
I take back my object deallocation statement. I doubt this crash might happen due to UI element being created\updated in background thread. I mean an UI element created/updated in the network callback method.
The solution to the problem would be adding a dispatch_async in main_queue to perform the UI updates.

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