The most frequent crash we're seeing from customers is an exception (0xbbadbeef always in WebThread, thread #2) from _WebTryThreadLock. Usually the crashes contain other threads (main thread included) that has nothing specific to do with our code. We can't reproduce it internally. We've looked in cases in our code where we might be using UIWebView's from other threads but we've found nothing. We always unset the webview's delegate before it's freed.
We see this from all kinds of devices and from what I can see any iOS version (in the 5.x-current range). Based on logs, it does appear that it primarily happens when the application is resumed from background.
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0xbbadbeef
Crashed Thread: 2
Thread 0 name: Dispatch queue: com.apple.root.default-priority
Thread 0:
0 libsystem_kernel.dylib 0x328e31d4 madvise + 8
1 ImageIO 0x3306c550 CGImageRead_willNeed + 52
2 ImageIO 0x331bcd98 __copyImageBlockSetPNG_block_invoke_0 + 476
3 libdispatch.dylib 0x35d03a68 _dispatch_apply_serial + 16
4 libdispatch.dylib 0x35cf44b4 _dispatch_client_callout + 20
5 libdispatch.dylib 0x35d02886 _dispatch_sync_f_invoke + 22
6 ImageIO 0x331bb446 copyImageBlockSetPNG + 2102
7 ImageIO 0x3306b53e ImageProviderCopyImageBlockSetCallback + 510
8 CoreGraphics 0x33fc59d6 CGImageProviderCopyImageBlockSetWithOptions + 158
9 QuartzCore 0x3a4f474c CA::Render::create_image(CGImage*, CGColorSpace*, unsigned int) + 668
10 QuartzCore 0x3a4f433a CA::Render::copy_image(CGImage*, CGColorSpace*, unsigned int, double) + 254
11 QuartzCore 0x3a4f4226 CA::Render::prepare_image(CGImage*, CGColorSpace*, unsigned int, double) + 14
12 QuartzCore 0x3a4e2af0 CA::Layer::prepare_commit(CA::Transaction*) + 416
13 QuartzCore 0x3a4e221e CA::Context::commit_transaction(CA::Transaction*) + 242
14 QuartzCore 0x3a4e2024 CA::Transaction::commit() + 312
15 UIKit 0x3af260b6 -[UIApplication _reportAppLaunchFinished] + 38
[...]
Thread 2 name: WebThread
Thread 2 Crashed:
0 WebCore 0x379a99ca _WebTryThreadLock(bool) + 298
1 WebCore 0x379a988a WebRunLoopLock(__CFRunLoopObserver*, unsigned long, void*) + 42
2 CoreFoundation 0x336da6ca __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 18
3 CoreFoundation 0x336d89bc __CFRunLoopDoObservers + 272
4 CoreFoundation 0x336d8c8c __CFRunLoopRun + 604
5 CoreFoundation 0x3364beb8 CFRunLoopRunSpecific + 352
6 CoreFoundation 0x3364bd44 CFRunLoopRunInMode + 100
7 WebCore 0x379a7a40 RunWebThread(void*) + 440
8 libsystem_c.dylib 0x35d3e30e _pthread_start + 306
9 libsystem_c.dylib 0x35d3e1d4 thread_start + 4
[...]
Thread 5 name: JavaScriptCore::BlockFree
Thread 5:
0 libsystem_kernel.dylib 0x328f308c __psynch_cvwait + 24
1 libsystem_c.dylib 0x35d36d2a _pthread_cond_wait + 642
2 libsystem_c.dylib 0x35d36aa0 pthread_cond_timedwait + 40
3 JavaScriptCore 0x39b67c70 WTF::ThreadCondition::timedWait(WTF::Mutex&, double) + 104
4 JavaScriptCore 0x39c79552 JSC::BlockAllocator::blockFreeingThreadMain() + 78
5 JavaScriptCore 0x39c8bfa8 WTF::wtfThreadEntryPoint(void*) + 12
6 libsystem_c.dylib 0x35d3e30e _pthread_start + 306
7 libsystem_c.dylib 0x35d3e1d4 thread_start + 4
Thread 6 name: WebCore: CFNetwork Loader
Thread 6:
0 libsystem_kernel.dylib 0x328e2eb4 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x328e3048 mach_msg + 36
2 CoreFoundation 0x336da040 __CFRunLoopServiceMachPort + 124
3 CoreFoundation 0x336d8d9e __CFRunLoopRun + 878
4 CoreFoundation 0x3364beb8 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x3364bd44 CFRunLoopRunInMode + 100
6 WebCore 0x37a42f6a WebCore::runLoaderThread(void*) + 138
7 JavaScriptCore 0x39c8bfa8 WTF::wtfThreadEntryPoint(void*) + 12
8 libsystem_c.dylib 0x35d3e30e _pthread_start + 306
9 libsystem_c.dylib 0x35d3e1d4 thread_start + 4
Per my project's current experience, this is an example of the WebKit running out of memory due to memory leaks in the GWT application that we are trying to fix.
Related
crash when applicationWillEnterForeground
tried to use zombie objects,but it not work
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x6565656565656569
VM Region Info: 0x6565656565656569 is not in any region. Bytes after previous region: 7306357445371454826
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
MALLOC_NANO 0000000280000000-00000002a0000000 [512.0M] rw-/rwx SM=PRV
--->
UNUSED SPACE AT END
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 QuartzCore 0x00000001addf8954 CA::Layer::sublayers+ 1411412 () + 52
1 UIKitCore 0x00000001ab8eea9c _makeSubTreePerformSelector + 228
2 UIKitCore 0x00000001ab8eea9c _makeSubTreePerformSelector + 228
3 UIKitCore 0x00000001ab4ada0c -[UIWindow dealloc] + 144
4 libobjc.A.dylib 0x00000001a71aa3a4 _object_remove_assocations + 352
5 libobjc.A.dylib 0x00000001a71a6d20 objc_destructInstance + 100
6 libobjc.A.dylib 0x00000001a71addb8 _objc_rootDealloc + 48
7 QuartzCore 0x00000001adde9dc4 -[CALayer dealloc] + 416
8 QuartzCore 0x00000001add730bc CA::release_objects+ 864444 (X::List<void const*>*) + 32
9 QuartzCore 0x00000001ade00520 CA::Layer::free_transaction+ 1443104 (CA::Transaction*) + 412
10 QuartzCore 0x00000001add73990 CA::Transaction::commit+ 866704 () + 932
11 UIKitCore 0x00000001ab4a25d4 _afterCACommitHandler + 140
12 CoreFoundation 0x00000001a73e9c48 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
13 CoreFoundation 0x00000001a73e4b34 __CFRunLoopDoObservers + 416
14 CoreFoundation 0x00000001a73e5100 __CFRunLoopRun + 1308
15 CoreFoundation 0x00000001a73e48bc CFRunLoopRunSpecific + 464
16 GraphicsServices 0x00000001b124f328 GSEventRunModal + 104
17 UIKitCore 0x00000001ab4796d4 UIApplicationMain + 1936
18 FuturesApp 0x0000000104cde230 main + 6087216 (main.m:14)
19 libdyld.dylib 0x00000001a726f460 start + 4
Thread 1 name: com.apple.uikit.eventfetch-thread
Thread 1:
0 libsystem_kernel.dylib 0x00000001a72435f4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001a7242a60 mach_msg + 72
2 CoreFoundation 0x00000001a73ea068 __CFRunLoopServiceMachPort + 216
3 CoreFoundation 0x00000001a73e5188 __CFRunLoopRun + 1444
4 CoreFoundation 0x00000001a73e48bc CFRunLoopRunSpecific + 464
5 Foundation 0x00000001a7724994 -[NSRunLoop+ 31124 (NSRunLoop) runMode:beforeDate:] + 228
6 Foundation 0x00000001a7724874 -[NSRunLoop+ 30836 (NSRunLoop) runUntilDate:] + 88
7 UIKitCore 0x00000001ab51149c -[UIEventFetcher threadMain] + 152
8 Foundation 0x00000001a78550b0 __NSThread__start__ + 848
9 libsystem_pthread.dylib 0x00000001a71891ec _pthread_start + 124
10 libsystem_pthread.dylib 0x00000001a718caec thread_start + 8
Thread 2 name: JavaScriptCore bmalloc scavenger
Thread 2:
0 libsystem_kernel.dylib 0x00000001a7264c8c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001a71864e0 _pthread_cond_wait$VARIANT$armv81 + 676
2 libc++.1.dylib 0x00000001a72b67a8 std::__1::condition_variable::wait+ 59304 (std::__1::unique_lock<std::__1::mutex>&) + 24
3 JavaScriptCore 0x00000001b60413fc void std::__1::condition_variable_any::wait<std::__1::unique_lock<bmalloc::Mutex> >+ 558076 (std::__1::unique_lock<bmalloc::Mutex>&) + 108
4 JavaScriptCore 0x00000001b6044dcc bmalloc::Scavenger::threadRunLoop+ 572876 () + 200
5 JavaScriptCore 0x00000001b6044ab4 bmalloc::Scavenger::Scavenger+ 572084 (std::__1::lock_guard<bmalloc::Mutex>&) + 0
6 JavaScriptCore 0x00000001b6045dc0 std::__1::__thread_specific_ptr<std::__1::__thread_struct>::set_pointer+ 576960 (std::__1::__thread_struct*) + 0
7 libsystem_pthread.dylib 0x00000001a71891ec _pthread_start + 124
8 libsystem_pthread.dylib 0x00000001a718caec thread_start + 8
Thread 3 name: Dispatch queue: com.apple.root.default-qos
Thread 3:
0 libsystem_kernel.dylib 0x00000001a7264cdc __psynch_mutexwait + 8
1 libsystem_pthread.dylib 0x00000001a71871a0 _pthread_mutex_firstfit_lock_wait + 92
2 libsystem_pthread.dylib 0x00000001a7187110 _pthread_mutex_firstfit_lock_slow$VARIANT$armv81 + 260
3 Foundation 0x00000001a773cdf4 -[NSRecursiveLock lock] + 24
4 FuturesApp 0x00000001056dae30 __24-[TKHeartChecker start:]_block_invoke.91 + 36
5 libdispatch.dylib 0x00000001a7139610 _dispatch_call_block_and_release + 24
6 libdispatch.dylib 0x00000001a713a184 _dispatch_client_callout + 16
7 libdispatch.dylib 0x00000001a7113b7c _dispatch_queue_override_invoke + 668
8 libdispatch.dylib 0x00000001a7120110 _dispatch_root_queue_drain + 344
9 libdispatch.dylib 0x00000001a71208b0 _dispatch_worker_thread2 + 116
10 libsystem_pthread.dylib 0x00000001a7189f64 _pthread_wqthread + 212
11 libsystem_pthread.dylib 0x00000001a718cae0 start_wqthread +
8enter image description here
We built an iOS application using Cordova/angular/ionic. The application is a photo application which uses web workers for background image processing.
After doing some image manipulation we are clearing all of our variables and memory is stable. Every so often the application gets hidden in the background and then when triggered using an external link it crashes randomly. I am getting the below crash report in xCode. The memory is stable in xCode and the application crashes before the "resume" iOS callback is called so xCode does not output any exception.
We believe this is something to do with Workers since the application crashes only after workers have been used, but we cannot find the memory leak or the lingering pointer.
We are also getting something like this in xCode (randomly) when we do worker.postMessage to a ready worker.
Communications error: <OS_xpc_error: <error: 0x397d0614> { count = 1, contents =
"XPCErrorDescription" => <string: 0x397d086c> { length = 22, contents = "Connection interrupted" }
}>
We don't know if the above error is connected to the above crash or not.
Has anyone had any similar issues?
Incident Identifier: D15A92CA-1384-41A4-86D8-DCAD0F0CCEAD
CrashReporter Key: f8d3c65b5d8546e16be90ff79e7f7852d1d340d6
Hardware Model: iPod5,1
Process: app [3639]
Path: /private/var/mobile/Containers/Bundle/Application/2A3BB04D-C783-432C-81D8-9FD17E3E766C/myapp.app/myapp
Identifier: it.myapp
Version: 1.0.2 (1.0.2)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2015-08-11 13:16:33.319 +0200
Launch Time: 2015-08-11 13:12:22.777 +0200
OS Version: iOS 8.1 (12B411)
Report Version: 105
Exception Type: 00000020
Exception Codes: 0x000000008badf00d
Highlighted Thread: 0
Application Specific Information:
it.myapp failed to scene-update in time
Elapsed total CPU time (seconds): 17.490 (user 17.490, system 0.000), 85% CPU
Elapsed application CPU time (seconds): 15.755, 77% CPU
Thread 0 name: Dispatch queue: com.apple.root.user-interactive-qos
Thread 0:
0 vImage 0x28081984 conv4_8_A + 300
1 vImage 0x2807e6c4 vConvolveCore_Planar8 + 2052
2 vImage 0x2804ed8a __vImageConvolveWithBias_Planar8_block_invoke + 138
3 libdispatch.dylib 0x36fc8ee0 _dispatch_client_callout2 + 20
4 libdispatch.dylib 0x36fd3b76 _dispatch_apply_invoke$VARIANT$mp + 146
5 libdispatch.dylib 0x36fd3f56 dispatch_apply_f$VARIANT$mp + 538
6 vImage 0x2804ecc6 vImageConvolveWithBias_Planar8 + 714
7 vImage 0x2804e9f0 vImageConvolve_Planar8 + 76
8 libRIP.A.dylib 0x298d8d06 symmetric_convolve + 582
9 libRIP.A.dylib 0x298d893a RIPLayerSymmetricConvolve + 522
10 libRIP.A.dylib 0x298d86b0 RIPLayerGaussianBlur + 336
11 libRIP.A.dylib 0x298d81ae rips_s_BltShapeShadow + 438
12 libRIP.A.dylib 0x298dd49e rips_s_BltShape + 46
13 libRIP.A.dylib 0x298cc9e4 ripc_Render + 196
14 libRIP.A.dylib 0x298da6d0 ripc_DrawPath + 200
15 CoreGraphics 0x2959f260 CGContextDrawPath + 140
16 WebCore 0x346ad300 WebCore::GraphicsContext::fillPath(WebCore::Path const&) + 120
17 WebCore 0x3499706e WebCore::GraphicsContext::fillRectWithRoundedHole(WebCore::FloatRect const&, WebCore::FloatRoundedRect const&, WebCore::Color const&, WebCore::ColorSpace) + 230
18 WebCore 0x34dca392 WebCore::RenderBoxModelObject::paintBoxShadow(WebCore::PaintInfo const&, WebCore::LayoutRect const&, WebCore::RenderStyle const&, WebCore::ShadowStyle, bool, bool) + 2258
19 WebCore 0x3464db72 WebCore::RenderBox::paintBoxDecorations(WebCore::PaintInfo&, WebCore::LayoutPoint const&) + 534
20 WebCore 0x3464bdc2 WebCore::RenderBlock::paintObject(WebCore::PaintInfo&, WebCore::LayoutPoint const&) + 214
21 WebCore 0x3464d636 WebCore::RenderBlock::paint(WebCore::PaintInfo&, WebCore::LayoutPoint const&) + 206
22 WebCore 0x3464bbe8 WebCore::RenderLayer::paintBackgroundForFragments(WTF::Vector<WebCore::LayerFragment, 1ul, WTF::CrashOnOverflow> const&, WebCore::GraphicsContext*, WebCore::GraphicsContext*, WebCore::LayoutRect const&, bool, WebCore::RenderLayer::LayerPaintingInfo const&, unsigned int, WebCore::RenderObject*) + 216
23 WebCore 0x3464aeba WebCore::RenderLayer::paintLayerContents(WebCore::GraphicsContext*, WebCore::RenderLayer::LayerPaintingInfo const&, unsigned int) + 1282
24 WebCore 0x346fce08 WebCore::RenderLayerBacking::paintIntoLayer(WebCore::GraphicsLayer const*, WebCore::GraphicsContext*, WebCore::IntRect const&, unsigned int, unsigned int) + 268
25 WebCore 0x34df0592 WebCore::RenderLayerBacking::paintContents(WebCore::GraphicsLayer const*, WebCore::GraphicsContext&, unsigned int, WebCore::FloatRect const&) + 934
26 WebCore 0x34998624 WebCore::GraphicsLayer::paintGraphicsLayerContents(WebCore::GraphicsContext&, WebCore::FloatRect const&) + 100
27 WebCore 0x34d83c94 WebCore::PlatformCALayer::drawLayerContents(CGContext*, WebCore::PlatformCALayer*, WTF::Vector<WebCore::FloatRect, 5ul, WTF::CrashOnOverflow>&) + 328
28 WebCore 0x346fcc5c -[WebLayer drawInContext:] + 108
29 QuartzCore 0x2c2280be CABackingStoreUpdate_ + 2066
30 QuartzCore 0x2c309b48 ___ZN2CA5Layer8display_Ev_block_invoke + 48
31 QuartzCore 0x2c2278a2 x_blame_allocations + 86
32 QuartzCore 0x2c227550 CA::Layer::display_() + 1152
33 WebCore 0x34fe10c6 -[WebSimpleLayer display] + 50
34 QuartzCore 0x2c20bb18 CA::Layer::display_if_needed(CA::Transaction*) + 196
35 QuartzCore 0x2c20b7dc CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 20
36 QuartzCore 0x2c20b1c2 CA::Context::commit_transaction(CA::Transaction*) + 218
37 QuartzCore 0x2c20afcc CA::Transaction::commit() + 320
38 UIKit 0x2ca302ea _UIWindowUpdateVisibleContextOrder + 206
39 UIKit 0x2ca3017c +[UIWindow _prepareWindowsPassingTestForAppResume:] + 12
40 UIKit 0x2ca53792 -[UIApplication _handleApplicationActivationWithScene:transitionContext:completion:] + 1110
41 UIKit 0x2ca5310a __88-[UIApplication _handleApplicationLifecycleEventWithScene:transitionContext:completion:]_block_invoke + 114
42 UIKit 0x2ca5308e -[UIApplication _handleApplicationLifecycleEventWithScene:transitionContext:completion:] + 358
43 UIKit 0x2ca4834a -[UIApplication scene:didUpdateWithDiff:transitionContext:completion:] + 470
44 FrontBoardServices 0x2fa7e1e8 __80-[FBSSceneImpl updater:didUpdateSettings:withDiff:transitionContext:completion:]_block_invoke_2 + 36
45 FrontBoardServices 0x2fa8d0de __31-[FBSSerialQueue performAsync:]_block_invoke + 10
46 CoreFoundation 0x2930960a __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 10
47 CoreFoundation 0x293088cc __CFRunLoopDoBlocks + 212
48 CoreFoundation 0x29307426 __CFRunLoopRun + 1710
49 CoreFoundation 0x2925497c CFRunLoopRunSpecific + 472
50 CoreFoundation 0x2925478e CFRunLoopRunInMode + 102
51 GraphicsServices 0x3060604c GSEventRunModal + 132
52 UIKit 0x2c84697c UIApplicationMain + 1436
53 myapp 0x0009dc66 main (main.m:32)
54 libdyld.dylib 0x37001aac start + 0
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x370b32c8 kevent64 + 24
1 libdispatch.dylib 0x36fd5e44 _dispatch_mgr_invoke + 276
2 libdispatch.dylib 0x36fd5b76 _dispatch_mgr_thread$VARIANT$mp + 34
Thread 2 name: com.apple.NSURLConnectionLoader
Thread 2:
0 libsystem_kernel.dylib 0x370b3518 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x370b330c mach_msg + 36
2 CoreFoundation 0x29308ba6 __CFRunLoopServiceMachPort + 142
3 CoreFoundation 0x2930716c __CFRunLoopRun + 1012
4 CoreFoundation 0x2925497c CFRunLoopRunSpecific + 472
5 CoreFoundation 0x2925478e CFRunLoopRunInMode + 102
6 CFNetwork 0x28e099da +[NSURLConnection(Loader) _resourceLoadLoop:] + 482
7 Foundation 0x2a054996 __NSThread__main__ + 1114
8 libsystem_pthread.dylib 0x37145e64 _pthread_body + 136
9 libsystem_pthread.dylib 0x37145dd6 _pthread_start + 114
10 libsystem_pthread.dylib 0x37143b80 thread_start + 4
Thread 3 name: WebThread
Thread 3:
0 libsystem_kernel.dylib 0x370c6ba8 __psynch_mutexwait + 24
1 libsystem_pthread.dylib 0x37144036 _pthread_mutex_lock + 390
2 WebCore 0x3462752c _WebTryThreadLock(bool) + 104
3 WebCore 0x346274aa WebRunLoopLock(__CFRunLoopObserver*, unsigned long, void*) + 42
4 CoreFoundation 0x29309622 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 18
5 CoreFoundation 0x29306d04 __CFRunLoopDoObservers + 272
6 CoreFoundation 0x2930704e __CFRunLoopRun + 726
7 CoreFoundation 0x2925497c CFRunLoopRunSpecific + 472
8 CoreFoundation 0x2925478e CFRunLoopRunInMode + 102
9 WebCore 0x3462624c RunWebThread(void*) + 412
10 libsystem_pthread.dylib 0x37145e64 _pthread_body + 136
11 libsystem_pthread.dylib 0x37145dd6 _pthread_start + 114
12 libsystem_pthread.dylib 0x37143b80 thread_start + 4
Thread 4 name: JavaScriptCore::BlockFree
Thread 4:
0 libsystem_kernel.dylib 0x370c6b38 __psynch_cvwait + 24
1 libsystem_pthread.dylib 0x371453dc _pthread_cond_wait + 516
2 libsystem_pthread.dylib 0x371462ac pthread_cond_wait + 36
3 libc++.1.dylib 0x3622efa4 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 32
4 JavaScriptCore 0x2a515f96 JSC::BlockAllocator::blockFreeingThreadMain() + 210
5 JavaScriptCore 0x2a51244c WTF::wtfThreadEntryPoint(void*) + 12
6 libsystem_pthread.dylib 0x37145e64 _pthread_body + 136
7 libsystem_pthread.dylib 0x37145dd6 _pthread_start + 114
8 libsystem_pthread.dylib 0x37143b80 thread_start + 4
Thread 5 name: JavaScriptCore::Marking
Thread 5:
0 libsystem_kernel.dylib 0x370c6b38 __psynch_cvwait + 24
1 libsystem_pthread.dylib 0x371453dc _pthread_cond_wait + 516
2 libsystem_pthread.dylib 0x371462ac pthread_cond_wait + 36
3 libc++.1.dylib 0x3622efa4 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 32
4 JavaScriptCore 0x2a6dab60 JSC::GCThread::waitForNextPhase() + 100
5 JavaScriptCore 0x2a6dabc4 JSC::GCThread::gcThreadMain() + 48
6 JavaScriptCore 0x2a51244c WTF::wtfThreadEntryPoint(void*) + 12
7 libsystem_pthread.dylib 0x37145e64 _pthread_body + 136
8 libsystem_pthread.dylib 0x37145dd6 _pthread_start + 114
9 libsystem_pthread.dylib 0x37143b80 thread_start + 4
Thread 6 name: WebCore: CFNetwork Loader
Thread 6:
0 libsystem_kernel.dylib 0x370b3518 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x370b330c mach_msg + 36
2 CoreFoundation 0x29308ba6 __CFRunLoopServiceMachPort + 142
3 CoreFoundation 0x2930716c __CFRunLoopRun + 1012
4 CoreFoundation 0x2925497c CFRunLoopRunSpecific + 472
5 CoreFoundation 0x2925478e CFRunLoopRunInMode + 102
6 WebCore 0x3464f558 WebCore::runLoaderThread(void*) + 288
7 JavaScriptCore 0x2a51244c WTF::wtfThreadEntryPoint(void*) + 12
8 libsystem_pthread.dylib 0x37145e64 _pthread_body + 136
9 libsystem_pthread.dylib 0x37145dd6 _pthread_start + 114
10 libsystem_pthread.dylib 0x37143b80 thread_start + 4
Thread 7 name: com.apple.coremedia.player.async
Thread 7:
0 libsystem_kernel.dylib 0x370b3568 semaphore_wait_trap + 8
1 libdispatch.dylib 0x36fd34e6 _dispatch_semaphore_wait_slow + 186
2 MediaToolbox 0x2ad0a43e fpa_AsyncMovieControlThread + 1962
3 CoreMedia 0x29aaee74 figThreadMain + 184
4 libsystem_pthread.dylib 0x37145e64 _pthread_body + 136
5 libsystem_pthread.dylib 0x37145dd6 _pthread_start + 114
6 libsystem_pthread.dylib 0x37143b80 thread_start + 4
Thread 8 name: AVAudioSession Notify Thread
Thread 8:
0 libsystem_kernel.dylib 0x370b3518 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x370b330c mach_msg + 36
2 CoreFoundation 0x29308ba6 __CFRunLoopServiceMachPort + 142
3 CoreFoundation 0x2930716c __CFRunLoopRun + 1012
4 CoreFoundation 0x2925497c CFRunLoopRunSpecific + 472
5 CoreFoundation 0x2925478e CFRunLoopRunInMode + 102
6 libAVFAudio.dylib 0x27f783e8 GenericRunLoopThread::Entry(void*) + 128
7 libAVFAudio.dylib 0x27f6a8e4 CAPThread::Entry(CAPThread*) + 192
8 libsystem_pthread.dylib 0x37145e64 _pthread_body + 136
9 libsystem_pthread.dylib 0x37145dd6 _pthread_start + 114
10 libsystem_pthread.dylib 0x37143b80 thread_start + 4
Thread 9 name: WebCore: LocalStorage
Thread 9:
0 libsystem_kernel.dylib 0x370c6b38 __psynch_cvwait + 24
1 libsystem_pthread.dylib 0x371453dc _pthread_cond_wait + 516
2 libsystem_pthread.dylib 0x371462ac pthread_cond_wait + 36
3 JavaScriptCore 0x2a5160da WTF::ThreadCondition::timedWait(WTF::Mutex&, double) + 58
4 WebCore 0x34ec1756 std::__1::unique_ptr<WTF::Function<void ()>, std::__1::default_delete<WTF::Function<void ()> > > WTF::MessageQueue<WTF::Function<void ()> >::waitForMessageFilteredWithTimeout<WTF::MessageQueue<WTF::Function<void ()> >::waitForMessage()::'lambda'(WTF::Function<void ()> const&)>(WTF::MessageQueueWaitResult&, WTF::MessageQueue<WTF::Function<void ()> >::waitForMessage()::'lambda'(WTF::Function<void ()> const&)&&, double) + 70
5 WebCore 0x346e4cd2 WebCore::StorageThread::threadEntryPoint() + 150
6 JavaScriptCore 0x2a51244c WTF::wtfThreadEntryPoint(void*) + 12
7 libsystem_pthread.dylib 0x37145e64 _pthread_body + 136
8 libsystem_pthread.dylib 0x37145dd6 _pthread_start + 114
9 libsystem_pthread.dylib 0x37143b80 thread_start + 4
Thread 10 name: com.apple.CFSocket.private
Thread 10:
0 libsystem_kernel.dylib 0x370c708c __select + 20
1 CoreFoundation 0x2930d32e __CFSocketManager + 486
2 libsystem_pthread.dylib 0x37145e64 _pthread_body + 136
3 libsystem_pthread.dylib 0x37145dd6 _pthread_start + 114
4 libsystem_pthread.dylib 0x37143b80 thread_start + 4
Thread 11 name: WebCore: File
Thread 11:
0 libsystem_kernel.dylib 0x370c6b38 __psynch_cvwait + 24
1 libsystem_pthread.dylib 0x371453dc _pthread_cond_wait + 516
2 libsystem_pthread.dylib 0x371462ac pthread_cond_wait + 36
3 JavaScriptCore 0x2a5160da WTF::ThreadCondition::timedWait(WTF::Mutex&, double) + 58
4 WebCore 0x34934394 std::__1::unique_ptr<WebCore::FileThread::Task, std::__1::default_delete<WebCore::FileThread::Task> > WTF::MessageQueue<WebCore::FileThread::Task>::waitForMessageFilteredWithTimeout<WTF::MessageQueue<WebCore::FileThread::Task>::waitForMessage()::'lambda'(WebCore::FileThread::Task const&)>(WTF::MessageQueueWaitResult&, WTF::MessageQueue<WebCore::FileThread::Task>::waitForMessage()::'lambda'(WebCore::FileThread::Task const&)&&, double) + 68
5 WebCore 0x349341b2 WebCore::FileThread::runLoop() + 154
6 JavaScriptCore 0x2a51244c WTF::wtfThreadEntryPoint(void*) + 12
7 libsystem_pthread.dylib 0x37145e64 _pthread_body + 136
8 libsystem_pthread.dylib 0x37145dd6 _pthread_start + 114
9 libsystem_pthread.dylib 0x37143b80 thread_start + 4
Thread 12:
0 libsystem_kernel.dylib 0x370c79cc __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x37143e9c _pthread_wqthread + 788
2 libsystem_pthread.dylib 0x37143b74 start_wqthread + 4
Thread 13 name: Dispatch queue: com.apple.root.user-interactive-qos
Thread 13:
0 vImage 0x28081960 conv4_8_A + 264
1 vImage 0x2807e6c4 vConvolveCore_Planar8 + 2052
2 vImage 0x2804ed8a __vImageConvolveWithBias_Planar8_block_invoke + 138
3 libdispatch.dylib 0x36fd3b76 _dispatch_apply_invoke$VARIANT$mp + 146
4 libdispatch.dylib 0x36fd22d6 _dispatch_root_queue_drain + 846
5 libdispatch.dylib 0x36fd31f6 _dispatch_worker_thread3 + 102
6 libsystem_pthread.dylib 0x37143e22 _pthread_wqthread + 666
7 libsystem_pthread.dylib 0x37143b74 start_wqthread + 4
No thread state (register information) available
Binary Images:
0x97000 - 0x10afff myapp armv7 <5c3f62bd3a073ae28638f130eb45dee1> /var/mobile/Containers/Bundle/Application/2A3BB04D-C783-432C-81D8-9FD17E3E766C/myapp.app/myapp
The iPad app crashes when we idle the app for sometime and then resume it from the lock state, the crash log is shown below the app freezes and to restrat the app we need to do the soft reset to the app
Incident Identifier: EDF8518C-EFE6-4E99-B462-B5FD7BC4C68C
CrashReporter Key: 59b53e06d0757c3331182b9eed3d03b9bc5194d4
Hardware Model: iPad2,1
Process: ll [2353]
Path: /private/var/mobile/Containers/Bundle/Application/CCD700F0-DDC1-4E4A-AC23-B424866AD7DF/ll.app/ll
Identifier: com.sw.ll
Version: 0.5.1 (0.5.1)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2015-05-27 14:19:32.184 +0530
Launch Time: 2015-05-27 13:49:22.619 +0530
OS Version: iOS 8.3 (12F69)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0xbbadbeef
Triggered by Thread: 4
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libsystem_kernel.dylib 0x3a38849c mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3a388290 mach_msg + 36
2 CoreFoundation 0x2ba577ee __CFRunLoopServiceMachPort + 142
3 CoreFoundation 0x2ba55db4 __CFRunLoopRun + 1012
4 CoreFoundation 0x2b9a199c CFRunLoopRunSpecific + 472
5 CoreFoundation 0x2b9a17ae CFRunLoopRunInMode + 102
6 GraphicsServices 0x331221a4 GSEventRunModal + 132
7 UIKit 0x2f12c690 UIApplicationMain + 1436
8 ll 0x000e6e3a 0xb3000 + 212538
9 libdyld.dylib 0x3a2d5aac start + 0
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x3a38824c kevent64 + 24
1 libdispatch.dylib 0x3a2a84ec _dispatch_mgr_invoke + 276
2 libdispatch.dylib 0x3a2a821e _dispatch_mgr_thread$VARIANT$mp + 34
Thread 2 name: com.apple.NSURLConnectionLoader
Thread 2:
0 libsystem_kernel.dylib 0x3a38849c mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3a388290 mach_msg + 36
2 CoreFoundation 0x2ba577ee __CFRunLoopServiceMachPort + 142
3 CoreFoundation 0x2ba55db4 __CFRunLoopRun + 1012
4 CoreFoundation 0x2b9a199c CFRunLoopRunSpecific + 472
5 CoreFoundation 0x2b9a17ae CFRunLoopRunInMode + 102
6 CFNetwork 0x2b53f642 +[NSURLConnection(Loader) _resourceLoadLoop:] + 482
7 Foundation 0x2c7d0186 __NSThread__main__ + 1114
8 libsystem_pthread.dylib 0x3a41bde8 _pthread_body + 136
9 libsystem_pthread.dylib 0x3a41bd5a _pthread_start + 114
10 libsystem_pthread.dylib 0x3a419b04 thread_start + 4
Thread 3:
0 libsystem_kernel.dylib 0x3a38849c mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3a388290 mach_msg + 36
2 CoreFoundation 0x2ba577ee __CFRunLoopServiceMachPort + 142
3 CoreFoundation 0x2ba55db4 __CFRunLoopRun + 1012
4 CoreFoundation 0x2b9a199c CFRunLoopRunSpecific + 472
5 CoreFoundation 0x2b9eb366 CFRunLoopRun + 94
6 CoreMotion 0x2c2b6ab6 0x2c271000 + 285366
7 libsystem_pthread.dylib 0x3a41bde8 _pthread_body + 136
8 libsystem_pthread.dylib 0x3a41bd5a _pthread_start + 114
9 libsystem_pthread.dylib 0x3a419b04 thread_start + 4
Thread 4 name: WebThread
Thread 4 Crashed:
0 JavaScriptCore 0x2cf99286 WTFCrash + 54
1 JavaScriptCore 0x2cedca80 JSC::JSLock::DropAllLocks::DropAllLocks(JSC::VM*) + 176
2 WebCore 0x375fec7c SendDelegateMessage(NSInvocation*) + 180
3 WebKitLegacy 0x3811c42a CallResourceLoadDelegate(objc_object* (*)(objc_object*, objc_selector*, ...), WebView*, objc_selector, objc_object*, objc_object*, objc_object*) + 206
4 WebKitLegacy 0x381036b6 WebFrameLoaderClient::dispatchDidFailLoading(WebCore::DocumentLoader*, unsigned long, WebCore::ResourceError const&) + 202
5 WebCore 0x3762c5e2 WebCore::ResourceLoadNotifier::didFailToLoad(WebCore::ResourceLoader*, WebCore::ResourceError const&) + 62
6 WebCore 0x3762bf44 WebCore::ResourceLoader::cancel(WebCore::ResourceError const&) + 316
7 WebCore 0x3762bdf2 WebCore::ResourceLoader::cancel() + 50
8 WebCore 0x375a753e WebCore::CachedResource::removeClient(WebCore::CachedResourceClient*) + 390
9 WebCore 0x37f8badc WebCore::WebCoreAVFResourceLoader::invalidate() + 24
10 WebCore 0x37cf45a2 WebCore::MediaPlayerPrivateAVFoundationObjC::~MediaPlayerPrivateAVFoundationObjC() + 262
11 WebCore 0x37cf4ce0 WebCore::MediaPlayerPrivateAVFoundationObjC::~MediaPlayerPrivateAVFoundationObjC() + 4
12 WebCore 0x37cf00ca WebCore::MediaPlayer::~MediaPlayer() + 110
13 WebCore 0x37cf010c WebCore::MediaPlayer::~MediaPlayer() + 4
14 WebCore 0x3798ba8e WebCore::HTMLMediaElement::~HTMLMediaElement() + 842
15 WebCore 0x3796f9d8 WebCore::HTMLAudioElement::~HTMLAudioElement() + 4
16 WebCore 0x37cd96a4 WebCore::LiveNodeList::~LiveNodeList() + 40
17 WebCore 0x37f2c54e WebCore::CachedLiveNodeList<WebCore::HTMLTagNodeList>::~CachedLiveNodeList() + 138
18 WebCore 0x3768f00e WebCore::HTMLTagNodeList::~HTMLTagNodeList() + 78
19 WebCore 0x3768eb28 WebCore::JSNodeListOwner::finalize(JSC::Handle<JSC::Unknown>, void*) + 276
20 JavaScriptCore 0x2cd1f654 JSC::WeakBlock::sweep() + 72
21 JavaScriptCore 0x2ccbe7f0 JSC::WeakSet::sweep() + 16
22 JavaScriptCore 0x2ccbe79a JSC::MarkedBlock::sweep(JSC::MarkedBlock::SweepMode) + 14
23 JavaScriptCore 0x2cf25dd0 JSC::MarkedAllocator::tryAllocateHelper(unsigned long) + 128
24 JavaScriptCore 0x2ccbdfee JSC::MarkedAllocator::allocateSlowCase(unsigned long) + 114
I'm uploading the screen where the break point will be paused
This is an EXC_BAD_ACCESS type of code which relates to accessing deallocated memory. In order to find this you need to enable NSZombie objects. Press Option/alt + Command + R and select the "Diagnostics" tab. Finally, click "Enable Zombie Objects". This should make the compiler stop on the line of code that is causing this crash.
Apple documents about Application with Diagnostics
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.
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.