iOS Application keeps deadlocks in the field out of no where - ios

I have a native B2B application distributed via an MDM to several locations across the US, the units are on 24/7 and are public terminals for people to use. The application is also locked into place with Guided Access.
In the past few weeks we have been having issues where the application will freeze, and I've been banging my head against the wall trying to figure out why. It is mostly happening on Cellular iPads, but not exclusively. There's no specific place in the application where it freezes either, so I'm unsure if there could be anything in particular blocking the main thread.
I have been unable to make it freeze in house, it's only happening in the field. And have tried everything to get it to freeze, by automating hundreds of actions, changing the network limiter to see if there's a call in the background thats not handled correctly. I have run through instruments to see if the iPad is running out of memory, but I'd assume that would cause the application to crash instead of freeze.
I have added more logging, as well as the New Relic mobile SDK to try and catch something, but I don't see anything out of the ordinary.
It was working just fine and then these iPads auto updated to 14.4-14.6.
Does anyone have any ideas on what the cause could be or if those iPadOS versions are buggy? Any suggestions would be super helpful, this is driving me insane.
UPDATE:
I've gotten it to freeze, here is where it goes when I pause
Backtrace:
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
* frame #0: 0x00000001c87e6908 libsystem_kernel.dylib`mach_msg_trap + 8
frame #1: 0x00000001c87e5d0c libsystem_kernel.dylib`mach_msg + 72
frame #2: 0x000000019d05be00 CoreFoundation`__CFRunLoopServiceMachPort + 368
frame #3: 0x000000019d056200 CoreFoundation`__CFRunLoopRun + 1184
frame #4: 0x000000019d055818 CoreFoundation`CFRunLoopRunSpecific + 572
frame #5: 0x00000001b375b570 GraphicsServices`GSEventRunModal + 160
frame #6: 0x000000019f9810e8 UIKitCore`-[UIApplication _run] + 1052
frame #7: 0x000000019f986664 UIKitCore`UIApplicationMain + 164
frame #8: 0x0000000102b8e538 Application`main(argc=<unavailable>, argv=<unavailable>) at main.m:14:16 [opt]
frame #9: 0x000000019cd34140 libdyld.dylib`start + 4
* thread #3, name = 'gputools.smt_poll.0x2838a1e20'
* frame #0: 0x00000001c880ab54 libsystem_kernel.dylib`__semwait_signal + 8
frame #1: 0x00000001a5cfead4 libsystem_c.dylib`nanosleep + 212
frame #2: 0x00000001a5cfe9ac libsystem_c.dylib`usleep + 64
frame #3: 0x000000010993e5cc GPUToolsCore`smt_poll_thread_entry(void*) + 144
frame #4: 0x00000001e4a37c74 libsystem_pthread.dylib`_pthread_start + 288
* thread #4, name = 'gputools.smt_poll.0x28389eec0'
* frame #0: 0x00000001c880ab54 libsystem_kernel.dylib`__semwait_signal + 8
frame #1: 0x00000001a5cfead4 libsystem_c.dylib`nanosleep + 212
frame #2: 0x00000001a5cfe9ac libsystem_c.dylib`usleep + 64
frame #3: 0x0000000103c36fe8 libMTLCapture.dylib`___lldb_unnamed_symbol2228$$libMTLCapture.dylib + 104
frame #4: 0x00000001e4a37c74 libsystem_pthread.dylib`_pthread_start + 288
* thread #9, name = 'com.apple.uikit.eventfetch-thread'
* frame #0: 0x00000001c87e6908 libsystem_kernel.dylib`mach_msg_trap + 8
frame #1: 0x00000001c87e5d0c libsystem_kernel.dylib`mach_msg + 72
frame #2: 0x000000019d05be00 CoreFoundation`__CFRunLoopServiceMachPort + 368
frame #3: 0x000000019d056200 CoreFoundation`__CFRunLoopRun + 1184
frame #4: 0x000000019d055818 CoreFoundation`CFRunLoopRunSpecific + 572
frame #5: 0x000000019e2b2094 Foundation`-[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 228
frame #6: 0x000000019e2b1f74 Foundation`-[NSRunLoop(NSRunLoop) runUntilDate:] + 88
frame #7: 0x000000019fa2dc28 UIKitCore`-[UIEventFetcher threadMain] + 504
frame #8: 0x000000019e40edb0 Foundation`__NSThread__start__ + 848
frame #9: 0x00000001e4a37c74 libsystem_pthread.dylib`_pthread_start + 288
* thread #11
* frame #0: 0x00000001c880a580 libsystem_kernel.dylib`__psynch_cvwait + 8
frame #1: 0x00000001e4a31308 libsystem_pthread.dylib`_pthread_cond_wait$VARIANT$mp + 1236
frame #2: 0x00000001b0eb1a20 libc++.1.dylib`std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 24
frame #3: 0x00000001054ec4d0 NewRelic`___lldb_unnamed_symbol3677$$NewRelic + 240
frame #4: 0x00000001054eca60 NewRelic`___lldb_unnamed_symbol3699$$NewRelic + 28
frame #5: 0x00000001054ecc08 NewRelic`___lldb_unnamed_symbol3702$$NewRelic + 72
frame #6: 0x00000001e4a37c74 libsystem_pthread.dylib`_pthread_start + 288
* thread #12
* frame #0: 0x00000001c880a580 libsystem_kernel.dylib`__psynch_cvwait + 8
frame #1: 0x00000001e4a31308 libsystem_pthread.dylib`_pthread_cond_wait$VARIANT$mp + 1236
frame #2: 0x00000001b0eb1a20 libc++.1.dylib`std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 24
frame #3: 0x00000001054ec4d0 NewRelic`___lldb_unnamed_symbol3677$$NewRelic + 240
frame #4: 0x00000001054eca60 NewRelic`___lldb_unnamed_symbol3699$$NewRelic + 28
frame #5: 0x00000001054ecc08 NewRelic`___lldb_unnamed_symbol3702$$NewRelic + 72
frame #6: 0x00000001e4a37c74 libsystem_pthread.dylib`_pthread_start + 288
* thread #13
* frame #0: 0x00000001c880a580 libsystem_kernel.dylib`__psynch_cvwait + 8
frame #1: 0x00000001e4a31308 libsystem_pthread.dylib`_pthread_cond_wait$VARIANT$mp + 1236
frame #2: 0x00000001b0eb1a20 libc++.1.dylib`std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 24
frame #3: 0x00000001054ec4d0 NewRelic`___lldb_unnamed_symbol3677$$NewRelic + 240
frame #4: 0x00000001054eca60 NewRelic`___lldb_unnamed_symbol3699$$NewRelic + 28
frame #5: 0x00000001054ecc08 NewRelic`___lldb_unnamed_symbol3702$$NewRelic + 72
frame #6: 0x00000001e4a37c74 libsystem_pthread.dylib`_pthread_start + 288
* thread #14, name = 'AVAudioSession Notify Thread'
* frame #0: 0x00000001c87e6908 libsystem_kernel.dylib`mach_msg_trap + 8
frame #1: 0x00000001c87e5d0c libsystem_kernel.dylib`mach_msg + 72
frame #2: 0x000000019d05be00 CoreFoundation`__CFRunLoopServiceMachPort + 368
frame #3: 0x000000019d056200 CoreFoundation`__CFRunLoopRun + 1184
frame #4: 0x000000019d055818 CoreFoundation`CFRunLoopRunSpecific + 572
frame #5: 0x00000001a44dff18 AudioSession`GenericRunLoopThread::Entry(void*) + 156
frame #6: 0x00000001a44e1e84 AudioSession`CAPThread::Entry(CAPThread*) + 88
frame #7: 0x00000001e4a37c74 libsystem_pthread.dylib`_pthread_start + 288
* thread #15
* frame #0: 0x00000001c87e6908 libsystem_kernel.dylib`mach_msg_trap + 8
frame #1: 0x00000001c87e5d0c libsystem_kernel.dylib`mach_msg + 72
frame #2: 0x000000019d05be00 CoreFoundation`__CFRunLoopServiceMachPort + 368
frame #3: 0x000000019d056200 CoreFoundation`__CFRunLoopRun + 1184
frame #4: 0x000000019d055818 CoreFoundation`CFRunLoopRunSpecific + 572
frame #5: 0x000000019e2b2094 Foundation`-[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 228
frame #6: 0x0000000102f73758 Application`-[CH3_GenericChannelController keepThreadAlive](self=0x0000000280f89ad0, _cmd=<unavailable>) at CH3_GenericChannelController.mm:288:37 [opt]
frame #7: 0x000000019e40edb0 Foundation`__NSThread__start__ + 848
frame #8: 0x00000001e4a37c74 libsystem_pthread.dylib`_pthread_start + 288
* thread #16
* frame #0: 0x00000001c87e6908 libsystem_kernel.dylib`mach_msg_trap + 8
frame #1: 0x00000001c87e5d0c libsystem_kernel.dylib`mach_msg + 72
frame #2: 0x000000019d05be00 CoreFoundation`__CFRunLoopServiceMachPort + 368
frame #3: 0x000000019d056200 CoreFoundation`__CFRunLoopRun + 1184
frame #4: 0x000000019d055818 CoreFoundation`CFRunLoopRunSpecific + 572
frame #5: 0x000000019e2b2094 Foundation`-[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 228
frame #6: 0x0000000102f73758 Application`-[CH3_GenericChannelController keepThreadAlive](self=0x0000000280f89ad0, _cmd=<unavailable>) at CH3_GenericChannelController.mm:288:37 [opt]
frame #7: 0x000000019e40edb0 Foundation`__NSThread__start__ + 848
frame #8: 0x00000001e4a37c74 libsystem_pthread.dylib`_pthread_start + 288
* thread #48
* frame #0: 0x00000001e4a3c864 libsystem_pthread.dylib`start_wqthread
* thread #77
* frame #0: 0x00000001e4a3c864 libsystem_pthread.dylib`start_wqthread
* thread #83
* frame #0: 0x00000001e4a3c864 libsystem_pthread.dylib`start_wqthread
* thread #84
* frame #0: 0x00000001e4a3c864 libsystem_pthread.dylib`start_wqthread
(lldb)

Related

ARKit – Renderer thread deadlock

My AR iOS App just hangs during the ARSession without any clue of the issue, or what blocking the main thread Any help is really appreciated.
Below is the threads backtrace
(lldb) thread list
Process 83660 stopped
thread #1: tid = 0xa7210c, 0x00000001d8e02784 libsystem_kernel.dylib`__psynch_rw_wrlock + 8, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
thread #6: tid = 0xa721c0, 0x00000001d8ddf644 libsystem_kernel.dylib`mach_msg_trap + 8, name = 'com.apple.uikit.eventfetch-thread'
thread #10: tid = 0xa721e2, 0x00000001d8ddf644 libsystem_kernel.dylib`mach_msg_trap + 8, name = 'AVAudioSession Notify Thread'
thread #11: tid = 0xa72247, 0x00000001d8ddf644 libsystem_kernel.dylib`mach_msg_trap + 8, name = 'com.apple.NSURLConnectionLoader'
thread #13: tid = 0xa722cc, 0x00000001d8ddf644 libsystem_kernel.dylib`mach_msg_trap + 8, name = 'com.apple.coreaudio.AQClient'
thread #26: tid = 0xa723b3, 0x00000001d8ddf644 libsystem_kernel.dylib`mach_msg_trap + 8, name = 'com.apple.CoreMotion.MotionThread'
thread #31: tid = 0xa723f8, 0x00000001d8ddf644 libsystem_kernel.dylib`mach_msg_trap + 8, name = 'com.apple.arkit.ardisplaylink.0x28057aa00'
* thread #32: tid = 0xa723f9, 0x00000001d8e03290 libsystem_kernel.dylib`__ulock_wait + 8, name = 'com.apple.scenekit.scnview-renderer', queue = 'com.apple.scenekit.renderingQueue.ARSCNView0x11391c2f0'
thread #37: tid = 0xa72477, 0x00000001f56d486c libsystem_pthread.dylib`start_wqthread
thread #38: tid = 0xa72484, 0x00000001f56d486c libsystem_pthread.dylib`start_wqthread
thread #40: tid = 0xa725a1, 0x00000001f56d486c libsystem_pthread.dylib`start_wqthread
thread #43: tid = 0xa725ae, 0x00000001d8e0348c libsystem_kernel.dylib`__workq_kernreturn + 8
(lldb) thread info
thread #32: tid = 0xa723f9, 0x00000001d8e03290 libsystem_kernel.dylib`__ulock_wait + 8, name = 'com.apple.scenekit.scnview-renderer', queue = 'com.apple.scenekit.renderingQueue.ARSCNView0x11391c2f0'
(lldb) thread backtrace
* thread #32, name = 'com.apple.scenekit.scnview-renderer', queue = 'com.apple.scenekit.renderingQueue.ARSCNView0x11391c2f0'
* frame #0: 0x00000001d8e03290 libsystem_kernel.dylib`__ulock_wait + 8
frame #1: 0x0000000112429fcc libdispatch.dylib`_dlock_wait + 52
frame #2: 0x000000011242a348 libdispatch.dylib`_dispatch_group_wait_slow + 56
frame #3: 0x00000001dedcd120 SceneKit`-[SCNTextureCoreAnimationSource _resizeLayer:toSize:updateLayer:updateTransform:caRenderer:] + 204
frame #4: 0x00000001dedcd6c4 SceneKit`-[SCNTextureCoreAnimationSource __renderLayerUsingMetal:withCARenderer:engineContext:viewport:atTime:forceUpdate:didUpdate:] + 216
frame #5: 0x00000001dedcde40 SceneKit`-[SCNTextureCoreAnimationSource __updateTextureWithLayer:texture:engineContext:sampler:] + 804
frame #6: 0x00000001dedce404 SceneKit`-[SCNTextureCoreAnimationSource metalTextureWithEngineContext:textureSampler:nextFrameTime:] + 372
frame #7: 0x00000001defea5d4 SceneKit`kSCNTextureSourceCallbackGetMetalTexture + 60
frame #8: 0x00000001dee2664c SceneKit`-[SCNMTLResourceManager(Textures) renderResourceForImageProxy:sampler:engineContext:] + 200
frame #9: 0x00000001dee2652c SceneKit`-[SCNMTLResourceManager(Textures) renderResourcesForEffectSlot:withEngineContext:] + 128
frame #10: 0x00000001dee48e38 SceneKit`__39+[SCNMTLRenderContext registerBindings]_block_invoke_28 + 80
frame #11: 0x00000001dee46270 SceneKit`_execute(SCNMTLRenderContext*, DrawCommand) + 4316
frame #12: 0x00000001dee45034 SceneKit`-[SCNMTLRenderContext drawRenderElement:withPass:] + 600
frame #13: 0x00000001dee43fa4 SceneKit`-[SCNMTLRenderContext processRendererElements:count:engineIterationContext:] + 932
frame #14: 0x00000001def6da78 SceneKit`C3D::DrawNodesPass::_renderEye(long) + 508
frame #15: 0x00000001def6d7c8 SceneKit`C3D::DrawNodesPass::execute(C3D::RenderArgs const&) + 196
frame #16: 0x00000001def74bd8 SceneKit`C3D::ScenePass::execute(C3D::RenderArgs const&) + 252
frame #17: 0x00000001dedff644 SceneKit`C3D::__renderSlice(C3D::RenderGraph*, C3D::RenderPass*, unsigned short&, C3D::RenderGraph::GraphNode const&, C3D::RenderGraph::Stage*&, C3D::RenderArgs, bool, id<MTLCommandBuffer>&) + 1672
frame #18: 0x00000001dee00e30 SceneKit`C3D::RenderGraph::execute() + 4660
frame #19: 0x00000001deef8f20 SceneKit`-[SCNRenderer _renderSceneWithEngineContext:sceneTime:] + 440
frame #20: 0x00000001deef9788 SceneKit`-[SCNRenderer _drawSceneWithNewRenderer:] + 272
frame #21: 0x00000001deef9cfc SceneKit`-[SCNRenderer _drawScene:] + 48
frame #22: 0x00000001deefa0a4 SceneKit`-[SCNRenderer _drawAtTime:] + 636
frame #23: 0x00000001def95418 SceneKit`-[SCNView _drawAtTime:] + 452
frame #24: 0x00000001dee5a2f0 SceneKit`__76-[NSObject(SCN_DisplayLinkExtensions) SCN_setupDisplayLinkWithQueue:screen:]_block_invoke + 56
frame #25: 0x00000001def60e14 SceneKit`__36-[SCNDisplayLink _callbackWithTime:]_block_invoke + 64
frame #26: 0x0000000112429528 libdispatch.dylib`_dispatch_client_callout + 16
frame #27: 0x0000000112438740 libdispatch.dylib`_dispatch_lane_barrier_sync_invoke_and_complete + 124
frame #28: 0x00000001def60da4 SceneKit`-[SCNDisplayLink _callbackWithTime:] + 232
frame #29: 0x00000001b0079640 QuartzCore`CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 660
frame #30: 0x00000001b014ba20 QuartzCore`display_timer_callback(__CFMachPort*, void*, long, void*) + 276
frame #31: 0x00000001ace9eb54 CoreFoundation`__CFMachPortPerform + 172
frame #32: 0x00000001acec2420 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 56
frame #33: 0x00000001acec1834 CoreFoundation`__CFRunLoopDoSource1 + 588
frame #34: 0x00000001acebb9f4 CoreFoundation`__CFRunLoopRun + 2332
frame #35: 0x00000001acebaba0 CoreFoundation`CFRunLoopRunSpecific + 572
frame #36: 0x00000001ae0da7f8 Foundation`-[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 228
frame #37: 0x00000001dee5a7d8 SceneKit`__78-[SCNView(SCNDisplayLink) _initializeDisplayLinkWithScreen:completionHandler:]_block_invoke + 668
frame #38: 0x00000001dee5aa74 SceneKit`__SCNRenderThread_start__ + 96
frame #39: 0x00000001f56cfc9c libsystem_pthread.dylib`_pthread_start + 288
(lldb) thread info
thread #31: tid = 0xa723f8, 0x00000001d8ddf644 libsystem_kernel.dylib`mach_msg_trap + 8, name = 'com.apple.arkit.ardisplaylink.0x28057aa00'
(lldb) thread backtrace
* thread #31, name = 'com.apple.arkit.ardisplaylink.0x28057aa00'
* frame #0: 0x00000001d8ddf644 libsystem_kernel.dylib`mach_msg_trap + 8
frame #1: 0x00000001d8ddea48 libsystem_kernel.dylib`mach_msg + 72
frame #2: 0x00000001acec10fc CoreFoundation`__CFRunLoopServiceMachPort + 376
frame #3: 0x00000001acebb570 CoreFoundation`__CFRunLoopRun + 1176
frame #4: 0x00000001acebaba0 CoreFoundation`CFRunLoopRunSpecific + 572
frame #5: 0x00000001acebbc60 CoreFoundation`CFRunLoopRun + 60
frame #6: 0x00000001d6bca270 ARKitCore`-[ARRunLoop _startThread] + 560
frame #7: 0x00000001ae2374bc Foundation`__NSThread__start__ + 848
frame #8: 0x00000001f56cfc9c libsystem_pthread.dylib`_pthread_start + 288
(lldb) thread info
thread #6: tid = 0xa721c0, 0x00000001d8ddf644 libsystem_kernel.dylib`mach_msg_trap + 8, name = 'com.apple.uikit.eventfetch-thread'
(lldb) thread backtrace
* thread #6, name = 'com.apple.uikit.eventfetch-thread'
* frame #0: 0x00000001d8ddf644 libsystem_kernel.dylib`mach_msg_trap + 8
frame #1: 0x00000001d8ddea48 libsystem_kernel.dylib`mach_msg + 72
frame #2: 0x00000001acec10fc CoreFoundation`__CFRunLoopServiceMachPort + 376
frame #3: 0x00000001acebb570 CoreFoundation`__CFRunLoopRun + 1176
frame #4: 0x00000001acebaba0 CoreFoundation`CFRunLoopRunSpecific + 572
frame #5: 0x00000001ae0da7f8 Foundation`-[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 228
frame #6: 0x00000001ae0da6d8 Foundation`-[NSRunLoop(NSRunLoop) runUntilDate:] + 88
frame #7: 0x00000001af858054 UIKitCore`-[UIEventFetcher threadMain] + 504
frame #8: 0x00000001ae2374bc Foundation`__NSThread__start__ + 848
frame #9: 0x00000001f56cfc9c libsystem_pthread.dylib`_pthread_start + 288
(lldb) thread info
thread #10: tid = 0xa721e2, 0x00000001d8ddf644 libsystem_kernel.dylib`mach_msg_trap + 8, name = 'AVAudioSession Notify Thread'
(lldb) thread backtrace
* thread #10, name = 'AVAudioSession Notify Thread'
* frame #0: 0x00000001d8ddf644 libsystem_kernel.dylib`mach_msg_trap + 8
frame #1: 0x00000001d8ddea48 libsystem_kernel.dylib`mach_msg + 72
frame #2: 0x00000001acec10fc CoreFoundation`__CFRunLoopServiceMachPort + 376
frame #3: 0x00000001acebb570 CoreFoundation`__CFRunLoopRun + 1176
frame #4: 0x00000001acebaba0 CoreFoundation`CFRunLoopRunSpecific + 572
frame #5: 0x00000001b443b098 AudioSession`GenericRunLoopThread::Entry(void*) + 156
frame #6: 0x00000001b443cff8 AudioSession`CAPThread::Entry(CAPThread*) + 88
frame #7: 0x00000001f56cfc9c libsystem_pthread.dylib`_pthread_start + 288
(lldb) thread info
thread #11: tid = 0xa72247, 0x00000001d8ddf644 libsystem_kernel.dylib`mach_msg_trap + 8, name = 'com.apple.NSURLConnectionLoader'
(lldb) thread backtrace
* thread #11, name = 'com.apple.NSURLConnectionLoader'
* frame #0: 0x00000001d8ddf644 libsystem_kernel.dylib`mach_msg_trap + 8
frame #1: 0x00000001d8ddea48 libsystem_kernel.dylib`mach_msg + 72
frame #2: 0x00000001acec10fc CoreFoundation`__CFRunLoopServiceMachPort + 376
frame #3: 0x00000001acebb570 CoreFoundation`__CFRunLoopRun + 1176
frame #4: 0x00000001acebaba0 CoreFoundation`CFRunLoopRunSpecific + 572
frame #5: 0x00000001ad74c4b0 CFNetwork`___lldb_unnamed_symbol11132$$CFNetwork + 552
frame #6: 0x00000001ae2374bc Foundation`__NSThread__start__ + 848
frame #7: 0x00000001f56cfc9c libsystem_pthread.dylib`_pthread_start + 288
(lldb) thread info
thread #13: tid = 0xa722cc, 0x00000001d8ddf644 libsystem_kernel.dylib`mach_msg_trap + 8, name = 'com.apple.coreaudio.AQClient'
(lldb) thread backtrace
* thread #13, name = 'com.apple.coreaudio.AQClient'
* frame #0: 0x00000001d8ddf644 libsystem_kernel.dylib`mach_msg_trap + 8
frame #1: 0x00000001d8ddea48 libsystem_kernel.dylib`mach_msg + 72
frame #2: 0x00000001acec10fc CoreFoundation`__CFRunLoopServiceMachPort + 376
frame #3: 0x00000001acebb570 CoreFoundation`__CFRunLoopRun + 1176
frame #4: 0x00000001acebaba0 CoreFoundation`CFRunLoopRunSpecific + 572
frame #5: 0x00000001b59334e0 AudioToolbox`GenericRunLoopThread::Entry(void*) + 156
frame #6: 0x00000001c19ec464 libAudioToolboxUtility.dylib`CADeprecated::CAPThread::Entry(CADeprecated::CAPThread*) + 88
frame #7: 0x00000001f56cfc9c libsystem_pthread.dylib`_pthread_start + 288
(lldb) thread info
thread backtrace
* thread #26, name = 'com.apple.CoreMotion.MotionThread'
* frame #0: 0x00000001d8ddf644 libsystem_kernel.dylib`mach_msg_trap + 8
frame #1: 0x00000001d8ddea48 libsystem_kernel.dylib`mach_msg + 72
frame #2: 0x00000001acec10fc CoreFoundation`__CFRunLoopServiceMachPort + 376
frame #3: 0x00000001acebb570 CoreFoundation`__CFRunLoopRun + 1176
frame #4: 0x00000001acebaba0 CoreFoundation`CFRunLoopRunSpecific + 572
frame #5: 0x00000001acebbc60 CoreFoundation`CFRunLoopRun + 60
frame #6: 0x00000001b7914d68 CoreMotion`___lldb_unnamed_symbol6249$$CoreMotion + 1308
frame #7: 0x00000001f56cfc9c libsystem_pthread.dylib`_pthread_start + 288
(lldb) thread backtrace
(lldb) thread backtrace
* thread #38
* frame #0: 0x00000001f56d486c libsystem_pthread.dylib`start_wqthread
(lldb) thread info
thread #1: tid = 0xa7210c, 0x00000001d8e02784 libsystem_kernel.dylib`__psynch_rw_wrlock + 8, queue = 'com.apple.main-thread'
(lldb) thread backtrace
* thread #1, queue = 'com.apple.main-thread'
frame #0: 0x00000001d8e02784 libsystem_kernel.dylib`__psynch_rw_wrlock + 8
frame #1: 0x00000001f56cec98 libsystem_pthread.dylib`_pthread_rwlock_lock_wait + 84
frame #2: 0x00000001f56cec20 libsystem_pthread.dylib`_pthread_rwlock_lock_slow$VARIANT$armv81 + 676
frame #3: 0x00000001defcc23c SceneKit`C3DTransactionFlush + 444
frame #4: 0x00000001acec087c CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
frame #5: 0x00000001acebaf50 CoreFoundation`__CFRunLoopDoObservers + 604
frame #6: 0x00000001acebb498 CoreFoundation`__CFRunLoopRun + 960
frame #7: 0x00000001acebaba0 CoreFoundation`CFRunLoopRunSpecific + 572
frame #8: 0x00000001c3c20598 GraphicsServices`GSEventRunModal + 160
frame #9: 0x00000001af7ac2f4 UIKitCore`-[UIApplication _run] + 1052
* frame #10: 0x00000001af7b1874 UIKitCore`UIApplicationMain + 164
frame #11: 0x0000000104389cb8 verifyt-b2c-app`main at AppDelegate.swift:14:7 [opt]
frame #12: 0x00000001acb99568 libdyld.dylib`start + 4
Use a simple SCNBox instead 3D model in your scene – and you'll see whether a number of polygons and texture size spawn this freeze. If yes, for AR app prepare a scene containing not greater than 100K polygons (ideally, not greater than 50K polygons) and png/jpg textures for models not greater than 2Kx2K in size (ideally, not greater than 1Kx1K).
If the reason of freeze isn't a mentioned one – try to use just renderer(...) methods, instead of renderer(...) and session(...) together.

Xcode 10.1 Running XCUITest and/or XCTest - Timed out waiting for target to check in

I am running Xcode 10.1 on macOS 10.14.4 (Mojave) and is unable to run any form of Test (XCUITest/XCTest) on my simulator. I constantly receive these error messages after the simulator is launched:
Assertion Failure: :0: Failure requesting automation session for [My-APP-Bundle-Identifier]:3964: Timed out waiting for
target to check in.
Tried creating a fresh new project and run Test, this error message also occurs.
Debugger Log Output:
thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP * frame #0: 0x00000001062fb22a
libsystem_kernel.dylibmach_msg_trap + 10
frame #1: 0x00000001062fb76c libsystem_kernel.dylibmach_msg + 60
frame #2: 0x00000001039a11b4 CoreFoundation__CFRunLoopServiceMachPort + 212
frame #3: 0x000000010399b7e9 CoreFoundation__CFRunLoopRun + 1689
frame #4: 0x000000010399ae11 CoreFoundationCFRunLoopRunSpecific + 625
frame #5: 0x000000010a9dc1dd GraphicsServicesGSEventRunModal + 62
frame #6: 0x000000010e6ab81d UIKitCoreUIApplicationMain + 140
frame #7: 0x000000010061f924 KeyMap-DEVmain at AppDelegate.swift:21
frame #8: 0x0000000105fd7575 libdyld.dylibstart + 1
frame #9: 0x0000000105fd7575 libdyld.dylibstart + 1 thread #5, name = 'com.apple.uikit.eventfetch-thread'
frame #0: 0x00000001062fb22a libsystem_kernel.dylibmach_msg_trap + 10
frame #1: 0x00000001062fb76c libsystem_kernel.dylibmach_msg + 60
frame #2: 0x00000001039a11b4 CoreFoundation__CFRunLoopServiceMachPort + 212
frame #3: 0x000000010399b7e9 CoreFoundation__CFRunLoopRun + 1689
frame #4: 0x000000010399ae11 CoreFoundationCFRunLoopRunSpecific + 625
frame #5: 0x0000000102a5e322 Foundation-[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 277
frame #6: 0x0000000102a5e4f4 Foundation-[NSRunLoop(NSRunLoop) runUntilDate:] + 79
frame #7: 0x000000010e7a2bcb UIKitCore-[UIEventFetcher threadMain] + 118
frame #8: 0x0000000102a73732 Foundation__NSThread__start__ + 1221
frame #9: 0x00000001063522eb libsystem_pthread.dylib_pthread_body + 126
frame #10: 0x0000000106355249 libsystem_pthread.dylib_pthread_start + 66
frame #11: 0x000000010635140d libsystem_pthread.dylibthread_start + 13 thread #7, name = 'GAIThread'
frame #0: 0x00000001062fb22a libsystem_kernel.dylibmach_msg_trap + 10
frame #1: 0x00000001062fb76c libsystem_kernel.dylibmach_msg + 60
frame #2: 0x00000001039a11b4 CoreFoundation__CFRunLoopServiceMachPort + 212
frame #3: 0x000000010399b7e9 CoreFoundation__CFRunLoopRun + 1689
frame #4: 0x000000010399ae11 CoreFoundationCFRunLoopRunSpecific + 625
frame #5: 0x0000000102a5e322 Foundation-[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 277
frame #6: 0x0000000102a5e492 Foundation-[NSRunLoop(NSRunLoop) run] + 76
frame #7: 0x0000000100674a98 KeyMap-DEV+[GAI threadMain:] + 62
frame #8: 0x0000000102a73732 Foundation__NSThread__start__ + 1221
frame #9: 0x00000001063522eb libsystem_pthread.dylib_pthread_body + 126
frame #10: 0x0000000106355249 libsystem_pthread.dylib_pthread_start + 66
frame #11: 0x000000010635140d libsystem_pthread.dylibthread_start + 13 thread #13
frame #0: 0x00000001062fcbfe libsystem_kernel.dylib__workq_kernreturn + 10
frame #1: 0x0000000106351636 libsystem_pthread.dylib_pthread_wqthread + 458
frame #2: 0x00000001063513fd libsystem_pthread.dylib`start_wqthread + 13
Anyone is experiencing this and found a resolution? Thanks!

Swift / SKStoreProductViewController pushViewController results in (lldb)

To push the user to the iTunes store for desired items I'm using the following function:
func openStoreProductWithiTunesItemIdentifier(identifier: String) {
let storeViewController = SKStoreProductViewController()
storeViewController.delegate = self
let parameters = [ SKStoreProductParameterITunesItemIdentifier : identifier, SKStoreProductParameterAffiliateToken : ITUNES_AFFILIATE_ID]
storeViewController.loadProductWithParameters(parameters) { [weak self] (loaded, error) -> Void in
if loaded {
self!.navigationController?.pushViewControllerWithHandler(storeViewController, animated: true) {
LilithProgressHUD.hide() // custom progress hud
}
}
}
}
extension UINavigationController {
func pushViewControllerWithHandler(viewController: UIViewController, animated: Bool, completion: Void -> Void) {
CATransaction.begin()
CATransaction.setCompletionBlock(completion)
pushViewController(viewController, animated: animated)
CATransaction.commit()
}
}
Called by
let trackID = "thisIsMyTrackID"
openStoreProductWithiTunesItemIdentifier(trackID)
This results in
If I'm instead of:
self!.navigationController?.pushViewControllerWithHandler(storeViewController, animated: true) {
LilithProgressHUD.hide() // custom progress hud
}
Using:
self?.presentViewController(storeViewController, animated: true, completion: {
LilithProgressHUD.hide() // custom progress hud
})
, it is working. But I need the controller to push within the navigationController to fit the rest of the views and animations. What am I missing? Help is very appreciated.
Backtrace as requested:
(lldb) bt all
* thread #1: tid = 0x9bb48, 0x000000018fcac524 libobjc.A.dylib`objc_exception_throw, queue = 'com.apple.main-thread', stop reason = breakpoint 1.2
frame #0: 0x000000018fcac524 libobjc.A.dylib`objc_exception_throw
frame #1: 0x0000000191274108 CoreFoundation`+[NSException raise:format:] + 116
frame #2: 0x000000019dca04d0 StoreKit`-[SKStoreProductViewController _throwUnsupportedPresentationException] + 76
frame #3: 0x000000019dc9ed24 StoreKit`-[SKStoreProductViewController willMoveToParentViewController:] + 108
frame #4: 0x0000000197159174 UIKit`-[UIViewController _addChildViewController:performHierarchyCheck:notifyWillMove:] + 568
frame #5: 0x000000019714f580 UIKit`-[UINavigationController pushViewController:transition:forceImmediate:] + 1220
frame #6: 0x000000019714f06c UIKit`-[UINavigationController pushViewController:animated:] + 652
* frame #7: 0x00000001000a32f4 cya`UINavigationController.pushViewControllerWithHandler(viewController=0x00000001028ae9c0, animated=true, completion=0x00000001000a35c4 cya`partial apply forwarder for reabstraction thunk helper from #callee_unowned #convention(block) () -> (#unowned ()) to #callee_owned () -> (#unowned ()) with unmangled suffix ".16" at UINavigationControllerExtensions.swift, self=0x0000000103844600) -> ()) -> () + 504 at UINavigationControllerExtensions.swift:24
frame #8: 0x00000001000a3578 cya`#objc UINavigationController.pushViewControllerWithHandler(UIViewController, animated : Bool, completion : () -> ()) -> () + 196 at UINavigationControllerExtensions.swift:0
frame #9: 0x00000001001b04f4 cya`DJProfileAsUserMusicTableVC.(loaded=true, error=nil, self=0x0000000102a358d0, storeViewController=0x00000001028ae9c0) -> ()).(closure #1) + 416 at DJProfileAsUserMusicTableVC.swift:697
frame #10: 0x00000001001b0654 cya`thunk + 56 at DJProfileAsUserMusicTableVC.swift:0
frame #11: 0x00000001001b0714 cya`thunk + 36 at DJProfileAsUserMusicTableVC.swift:0
frame #12: 0x00000001001b0804 cya`thunk + 80 at DJProfileAsUserMusicTableVC.swift:0
frame #13: 0x000000019dc9fb84 StoreKit`-[SKStoreProductViewController _loadDidFinishWithResult:error:] + 92
frame #14: 0x000000019127a160 CoreFoundation`__invoking___ + 144
frame #15: 0x000000019116dc3c CoreFoundation`-[NSInvocation invoke] + 284
frame #16: 0x0000000192e158bc FrontBoardServices`__FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 36
frame #17: 0x0000000192e15728 FrontBoardServices`-[FBSSerialQueue _performNext] + 176
frame #18: 0x0000000192e15ad0 FrontBoardServices`-[FBSSerialQueue _performNextFromRunLoopSource] + 56
frame #19: 0x0000000191222278 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
frame #20: 0x0000000191221bc0 CoreFoundation`__CFRunLoopDoSources0 + 524
frame #21: 0x000000019121f7c0 CoreFoundation`__CFRunLoopRun + 804
frame #22: 0x000000019114e048 CoreFoundation`CFRunLoopRunSpecific + 444
frame #23: 0x0000000192bd1198 GraphicsServices`GSEventRunModal + 180
frame #24: 0x0000000197128628 UIKit`-[UIApplication _run] + 684
frame #25: 0x0000000197123360 UIKit`UIApplicationMain + 208
frame #26: 0x000000010020c08c cya`main + 144 at AppDelegate.swift:19
frame #27: 0x00000001901305b8 libdyld.dylib`start + 4
thread #3: tid = 0x9bbc9, 0x0000000190242a88 libsystem_kernel.dylib`__workq_kernreturn + 8
frame #0: 0x0000000190242a88 libsystem_kernel.dylib`__workq_kernreturn + 8
frame #1: 0x0000000190305188 libsystem_pthread.dylib`_pthread_wqthread + 968
frame #2: 0x0000000190304db4 libsystem_pthread.dylib`start_wqthread + 4
thread #4: tid = 0x9bbca, 0x0000000190304db0 libsystem_pthread.dylib`start_wqthread
frame #0: 0x0000000190304db0 libsystem_pthread.dylib`start_wqthread
thread #7: tid = 0x9bbdc, 0x0000000190242314 libsystem_kernel.dylib`__semwait_signal + 8, name = 'gputools.smt_poll.0x17403cde0'
frame #0: 0x0000000190242314 libsystem_kernel.dylib`__semwait_signal + 8
frame #1: 0x000000019016027c libsystem_c.dylib`nanosleep + 212
frame #2: 0x000000019016019c libsystem_c.dylib`usleep + 64
frame #3: 0x00000001025adeb0 GPUToolsCore`smt_poll_thread_entry(void*) + 136
frame #4: 0x0000000190307860 libsystem_pthread.dylib`_pthread_body + 240
frame #5: 0x0000000190307770 libsystem_pthread.dylib`_pthread_start + 284
frame #6: 0x0000000190304dbc libsystem_pthread.dylib`thread_start + 4
thread #8: tid = 0x9bbef, 0x0000000190242314 libsystem_kernel.dylib`__semwait_signal + 8, name = 'gputools.smt_poll.0x170220020'
frame #0: 0x0000000190242314 libsystem_kernel.dylib`__semwait_signal + 8
frame #1: 0x000000019016027c libsystem_c.dylib`nanosleep + 212
frame #2: 0x000000019016019c libsystem_c.dylib`usleep + 64
frame #3: 0x00000001025adeb0 GPUToolsCore`smt_poll_thread_entry(void*) + 136
frame #4: 0x0000000190307860 libsystem_pthread.dylib`_pthread_body + 240
frame #5: 0x0000000190307770 libsystem_pthread.dylib`_pthread_start + 284
frame #6: 0x0000000190304dbc libsystem_pthread.dylib`thread_start + 4
thread #9: tid = 0x9bbf4, 0x000000019022416c libsystem_kernel.dylib`mach_msg_trap + 8, name = 'com.apple.uikit.eventfetch-thread'
frame #0: 0x000000019022416c libsystem_kernel.dylib`mach_msg_trap + 8
frame #1: 0x0000000190223fdc libsystem_kernel.dylib`mach_msg + 72
frame #2: 0x0000000191221cec CoreFoundation`__CFRunLoopServiceMachPort + 192
frame #3: 0x000000019121f908 CoreFoundation`__CFRunLoopRun + 1132
frame #4: 0x000000019114e048 CoreFoundation`CFRunLoopRunSpecific + 444
frame #5: 0x0000000191c5cb1c Foundation`-[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
frame #6: 0x0000000191c7d60c Foundation`-[NSRunLoop(NSRunLoop) runUntilDate:] + 96
frame #7: 0x0000000197a9dc7c UIKit`-[UIEventFetcher threadMain] + 136
frame #8: 0x0000000191d5a50c Foundation`__NSThread__start__ + 1024
frame #9: 0x0000000190307860 libsystem_pthread.dylib`_pthread_body + 240
frame #10: 0x0000000190307770 libsystem_pthread.dylib`_pthread_start + 284
frame #11: 0x0000000190304dbc libsystem_pthread.dylib`thread_start + 4
thread #12: tid = 0x9bbfb, 0x000000019022416c libsystem_kernel.dylib`mach_msg_trap + 8, name = 'com.apple.NSURLConnectionLoader'
frame #0: 0x000000019022416c libsystem_kernel.dylib`mach_msg_trap + 8
frame #1: 0x0000000190223fdc libsystem_kernel.dylib`mach_msg + 72
frame #2: 0x0000000191221cec CoreFoundation`__CFRunLoopServiceMachPort + 192
frame #3: 0x000000019121f908 CoreFoundation`__CFRunLoopRun + 1132
frame #4: 0x000000019114e048 CoreFoundation`CFRunLoopRunSpecific + 444
frame #5: 0x000000019193bcec CFNetwork`+[NSURLConnection(Loader) _resourceLoadLoop:] + 336
frame #6: 0x0000000191d5a50c Foundation`__NSThread__start__ + 1024
frame #7: 0x0000000190307860 libsystem_pthread.dylib`_pthread_body + 240
frame #8: 0x0000000190307770 libsystem_pthread.dylib`_pthread_start + 284
frame #9: 0x0000000190304dbc libsystem_pthread.dylib`thread_start + 4
thread #14: tid = 0x9bbfd, 0x000000019022416c libsystem_kernel.dylib`mach_msg_trap + 8, name = 'AVAudioSession Notify Thread'
frame #0: 0x000000019022416c libsystem_kernel.dylib`mach_msg_trap + 8
frame #1: 0x0000000190223fdc libsystem_kernel.dylib`mach_msg + 72
frame #2: 0x0000000191221cec CoreFoundation`__CFRunLoopServiceMachPort + 192
frame #3: 0x000000019121f908 CoreFoundation`__CFRunLoopRun + 1132
frame #4: 0x000000019114e048 CoreFoundation`CFRunLoopRunSpecific + 444
frame #5: 0x00000001aa8f1fe8 AVFAudio`GenericRunLoopThread::Entry(void*) + 164
frame #6: 0x00000001aa917f14 AVFAudio`CAPThread::Entry(CAPThread*) + 84
frame #7: 0x0000000190307860 libsystem_pthread.dylib`_pthread_body + 240
frame #8: 0x0000000190307770 libsystem_pthread.dylib`_pthread_start + 284
frame #9: 0x0000000190304dbc libsystem_pthread.dylib`thread_start + 4
thread #17: tid = 0x9bc0f, 0x000000019022416c libsystem_kernel.dylib`mach_msg_trap + 8, name = 'com.squareup.SocketRocket.NetworkThread'
frame #0: 0x000000019022416c libsystem_kernel.dylib`mach_msg_trap + 8
frame #1: 0x0000000190223fdc libsystem_kernel.dylib`mach_msg + 72
frame #2: 0x0000000191221cec CoreFoundation`__CFRunLoopServiceMachPort + 192
frame #3: 0x000000019121f908 CoreFoundation`__CFRunLoopRun + 1132
frame #4: 0x000000019114e048 CoreFoundation`CFRunLoopRunSpecific + 444
frame #5: 0x0000000191c5cb1c Foundation`-[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
frame #6: 0x00000001003f57ec cya`-[_FSRRunLoopThread main](self=0x00000001740918f0, _cmd=<unavailable>) + 252 at FSRWebSocket.m:1838
frame #7: 0x0000000191d5a50c Foundation`__NSThread__start__ + 1024
frame #8: 0x0000000190307860 libsystem_pthread.dylib`_pthread_body + 240
frame #9: 0x0000000190307770 libsystem_pthread.dylib`_pthread_start + 284
frame #10: 0x0000000190304dbc libsystem_pthread.dylib`thread_start + 4
thread #18: tid = 0x9bc21, 0x000000019024223c libsystem_kernel.dylib`__select + 8, name = 'com.apple.CFSocket.private'
frame #0: 0x000000019024223c libsystem_kernel.dylib`__select + 8
frame #1: 0x0000000191228b84 CoreFoundation`__CFSocketManager + 640
frame #2: 0x0000000190307860 libsystem_pthread.dylib`_pthread_body + 240
frame #3: 0x0000000190307770 libsystem_pthread.dylib`_pthread_start + 284
frame #4: 0x0000000190304dbc libsystem_pthread.dylib`thread_start + 4
thread #19: tid = 0x9bc70, 0x0000000190242a88 libsystem_kernel.dylib`__workq_kernreturn + 8
frame #0: 0x0000000190242a88 libsystem_kernel.dylib`__workq_kernreturn + 8
frame #1: 0x000000019030536c libsystem_pthread.dylib`_pthread_wqthread + 1452
frame #2: 0x0000000190304db4 libsystem_pthread.dylib`start_wqthread + 4
thread #20: tid = 0x9bc77, 0x0000000190304db0 libsystem_pthread.dylib`start_wqthread
frame #0: 0x0000000190304db0 libsystem_pthread.dylib`start_wqthread
thread #21: tid = 0x9bc78, 0x0000000000000000
frame #0: 0x0000000000000000
(lldb)
Backtrace without exception breakpoint:
(lldb) bt all
warning: could not load any Objective-C class information. This will significantly reduce the quality of type information available.
* thread #1: tid = 0x9c221, 0x0000000190242014 libsystem_kernel.dylib`__pthread_kill + 8, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
frame #0: 0x0000000190242014 libsystem_kernel.dylib`__pthread_kill + 8
frame #1: 0x0000000190309460 libsystem_pthread.dylib`pthread_kill + 112
frame #2: 0x00000001901b63f4 libsystem_c.dylib`abort + 140
frame #3: 0x000000018fc812d4 libc++abi.dylib`abort_message + 132
frame #4: 0x000000018fc9ecc0 libc++abi.dylib`default_terminate_handler() + 304
frame #5: 0x000000018fcac844 libobjc.A.dylib`_objc_terminate() + 124
frame #6: 0x000000018fcac844 libobjc.A.dylib`_objc_terminate() + 124
frame #7: 0x000000018fc9b66c libc++abi.dylib`std::__terminate(void (*)()) + 16
frame #8: 0x000000018fc9b234 libc++abi.dylib`__cxa_rethrow + 144
frame #9: 0x000000018fcac71c libobjc.A.dylib`objc_exception_rethrow + 44
frame #10: 0x000000019114e0bc CoreFoundation`CFRunLoopRunSpecific + 560
frame #11: 0x0000000192bd1198 GraphicsServices`GSEventRunModal + 180
frame #12: 0x0000000197128628 UIKit`-[UIApplication _run] + 684
frame #13: 0x0000000197123360 UIKit`UIApplicationMain + 208
* frame #14: 0x00000001001e408c cya`main + 144 at AppDelegate.swift:19
frame #15: 0x00000001901305b8 libdyld.dylib`start + 4
thread #5: tid = 0x9c29d, 0x0000000190242a88 libsystem_kernel.dylib`__workq_kernreturn + 8
frame #0: 0x0000000190242a88 libsystem_kernel.dylib`__workq_kernreturn + 8
frame #1: 0x000000019030536c libsystem_pthread.dylib`_pthread_wqthread + 1452
frame #2: 0x0000000190304db4 libsystem_pthread.dylib`start_wqthread + 4
thread #7: tid = 0x9c2a7, 0x0000000190242314 libsystem_kernel.dylib`__semwait_signal + 8, name = 'gputools.smt_poll.0x174036a80'
frame #0: 0x0000000190242314 libsystem_kernel.dylib`__semwait_signal + 8
frame #1: 0x000000019016027c libsystem_c.dylib`nanosleep + 212
frame #2: 0x000000019016019c libsystem_c.dylib`usleep + 64
frame #3: 0x000000010257deb0 GPUToolsCore`smt_poll_thread_entry(void*) + 136
frame #4: 0x0000000190307860 libsystem_pthread.dylib`_pthread_body + 240
frame #5: 0x0000000190307770 libsystem_pthread.dylib`_pthread_start + 284
frame #6: 0x0000000190304dbc libsystem_pthread.dylib`thread_start + 4
thread #8: tid = 0x9c2b2, 0x0000000190242314 libsystem_kernel.dylib`__semwait_signal + 8, name = 'gputools.smt_poll.0x1740366c0'
frame #0: 0x0000000190242314 libsystem_kernel.dylib`__semwait_signal + 8
frame #1: 0x000000019016027c libsystem_c.dylib`nanosleep + 212
frame #2: 0x000000019016019c libsystem_c.dylib`usleep + 64
frame #3: 0x000000010257deb0 GPUToolsCore`smt_poll_thread_entry(void*) + 136
frame #4: 0x0000000190307860 libsystem_pthread.dylib`_pthread_body + 240
frame #5: 0x0000000190307770 libsystem_pthread.dylib`_pthread_start + 284
frame #6: 0x0000000190304dbc libsystem_pthread.dylib`thread_start + 4
thread #9: tid = 0x9c2b6, 0x000000019022416c libsystem_kernel.dylib`mach_msg_trap + 8, name = 'com.apple.uikit.eventfetch-thread'
frame #0: 0x000000019022416c libsystem_kernel.dylib`mach_msg_trap + 8
frame #1: 0x0000000190223fdc libsystem_kernel.dylib`mach_msg + 72
frame #2: 0x0000000191221cec CoreFoundation`__CFRunLoopServiceMachPort + 192
frame #3: 0x000000019121f908 CoreFoundation`__CFRunLoopRun + 1132
frame #4: 0x000000019114e048 CoreFoundation`CFRunLoopRunSpecific + 444
frame #5: 0x0000000191c5cb1c Foundation`-[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
frame #6: 0x0000000191c7d60c Foundation`-[NSRunLoop(NSRunLoop) runUntilDate:] + 96
frame #7: 0x0000000197a9dc7c UIKit`-[UIEventFetcher threadMain] + 136
frame #8: 0x0000000191d5a50c Foundation`__NSThread__start__ + 1024
frame #9: 0x0000000190307860 libsystem_pthread.dylib`_pthread_body + 240
frame #10: 0x0000000190307770 libsystem_pthread.dylib`_pthread_start + 284
frame #11: 0x0000000190304dbc libsystem_pthread.dylib`thread_start + 4
thread #10: tid = 0x9c2b7, 0x0000000190242a88 libsystem_kernel.dylib`__workq_kernreturn + 8
frame #0: 0x0000000190242a88 libsystem_kernel.dylib`__workq_kernreturn + 8
frame #1: 0x000000019030536c libsystem_pthread.dylib`_pthread_wqthread + 1452
frame #2: 0x0000000190304db4 libsystem_pthread.dylib`start_wqthread + 4
thread #12: tid = 0x9c2bf, 0x000000019022416c libsystem_kernel.dylib`mach_msg_trap + 8, name = 'com.apple.NSURLConnectionLoader'
frame #0: 0x000000019022416c libsystem_kernel.dylib`mach_msg_trap + 8
frame #1: 0x0000000190223fdc libsystem_kernel.dylib`mach_msg + 72
frame #2: 0x0000000191221cec CoreFoundation`__CFRunLoopServiceMachPort + 192
frame #3: 0x000000019121f908 CoreFoundation`__CFRunLoopRun + 1132
frame #4: 0x000000019114e048 CoreFoundation`CFRunLoopRunSpecific + 444
frame #5: 0x000000019193bcec CFNetwork`+[NSURLConnection(Loader) _resourceLoadLoop:] + 336
frame #6: 0x0000000191d5a50c Foundation`__NSThread__start__ + 1024
frame #7: 0x0000000190307860 libsystem_pthread.dylib`_pthread_body + 240
frame #8: 0x0000000190307770 libsystem_pthread.dylib`_pthread_start + 284
frame #9: 0x0000000190304dbc libsystem_pthread.dylib`thread_start + 4
thread #14: tid = 0x9c2c3, 0x000000019022416c libsystem_kernel.dylib`mach_msg_trap + 8, name = 'AVAudioSession Notify Thread'
frame #0: 0x000000019022416c libsystem_kernel.dylib`mach_msg_trap + 8
frame #1: 0x0000000190223fdc libsystem_kernel.dylib`mach_msg + 72
frame #2: 0x0000000191221cec CoreFoundation`__CFRunLoopServiceMachPort + 192
frame #3: 0x000000019121f908 CoreFoundation`__CFRunLoopRun + 1132
frame #4: 0x000000019114e048 CoreFoundation`CFRunLoopRunSpecific + 444
frame #5: 0x00000001aa8f1fe8 AVFAudio`GenericRunLoopThread::Entry(void*) + 164
frame #6: 0x00000001aa917f14 AVFAudio`CAPThread::Entry(CAPThread*) + 84
frame #7: 0x0000000190307860 libsystem_pthread.dylib`_pthread_body + 240
frame #8: 0x0000000190307770 libsystem_pthread.dylib`_pthread_start + 284
frame #9: 0x0000000190304dbc libsystem_pthread.dylib`thread_start + 4
thread #15: tid = 0x9c2cc, 0x000000019022416c libsystem_kernel.dylib`mach_msg_trap + 8, name = 'com.squareup.SocketRocket.NetworkThread'
frame #0: 0x000000019022416c libsystem_kernel.dylib`mach_msg_trap + 8
frame #1: 0x0000000190223fdc libsystem_kernel.dylib`mach_msg + 72
frame #2: 0x0000000191221cec CoreFoundation`__CFRunLoopServiceMachPort + 192
frame #3: 0x000000019121f908 CoreFoundation`__CFRunLoopRun + 1132
frame #4: 0x000000019114e048 CoreFoundation`CFRunLoopRunSpecific + 444
frame #5: 0x0000000191c5cb1c Foundation`-[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
frame #6: 0x00000001003cd7ec cya`-[_FSRRunLoopThread main](self=0x0000000170097c00, _cmd=<unavailable>) + 252 at FSRWebSocket.m:1838
frame #7: 0x0000000191d5a50c Foundation`__NSThread__start__ + 1024
frame #8: 0x0000000190307860 libsystem_pthread.dylib`_pthread_body + 240
frame #9: 0x0000000190307770 libsystem_pthread.dylib`_pthread_start + 284
frame #10: 0x0000000190304dbc libsystem_pthread.dylib`thread_start + 4
thread #16: tid = 0x9c2d8, 0x0000000190242a88 libsystem_kernel.dylib`__workq_kernreturn + 8
frame #0: 0x0000000190242a88 libsystem_kernel.dylib`__workq_kernreturn + 8
frame #1: 0x000000019030536c libsystem_pthread.dylib`_pthread_wqthread + 1452
frame #2: 0x0000000190304db4 libsystem_pthread.dylib`start_wqthread + 4
thread #18: tid = 0x9c2e8, 0x000000019024223c libsystem_kernel.dylib`__select + 8, name = 'com.apple.CFSocket.private'
frame #0: 0x000000019024223c libsystem_kernel.dylib`__select + 8
frame #1: 0x0000000191228b84 CoreFoundation`__CFSocketManager + 640
frame #2: 0x0000000190307860 libsystem_pthread.dylib`_pthread_body + 240
frame #3: 0x0000000190307770 libsystem_pthread.dylib`_pthread_start + 284
frame #4: 0x0000000190304dbc libsystem_pthread.dylib`thread_start + 4
thread #19: tid = 0x9c355, 0x0000000190242a88 libsystem_kernel.dylib`__workq_kernreturn + 8
frame #0: 0x0000000190242a88 libsystem_kernel.dylib`__workq_kernreturn + 8
frame #1: 0x0000000190305188 libsystem_pthread.dylib`_pthread_wqthread + 968
frame #2: 0x0000000190304db4 libsystem_pthread.dylib`start_wqthread + 4
thread #20: tid = 0x9c35f, 0x0000000190242a88 libsystem_kernel.dylib`__workq_kernreturn + 8
frame #0: 0x0000000190242a88 libsystem_kernel.dylib`__workq_kernreturn + 8
frame #1: 0x000000019030536c libsystem_pthread.dylib`_pthread_wqthread + 1452
frame #2: 0x0000000190304db4 libsystem_pthread.dylib`start_wqthread + 4
thread #21: tid = 0x9c360, 0x0000000190242a88 libsystem_kernel.dylib`__workq_kernreturn + 8
frame #0: 0x0000000190242a88 libsystem_kernel.dylib`__workq_kernreturn + 8
frame #1: 0x0000000190305188 libsystem_pthread.dylib`_pthread_wqthread + 968
frame #2: 0x0000000190304db4 libsystem_pthread.dylib`start_wqthread + 4
(lldb)
The exception and stack trace tell you that the store view controller isn't happy about being pushed into a nav stack. Your test shows it is happy being presented. From the documentation:
present the view controller modally from another view controller in your app
So, you should present it modally.
While it's possible that you could perhaps make it work in some other way it's likely to break in the future if you don't follow the (inconvenient) guidelines.

iOS 7 and OpenGL issues/crashes

I'm working on an iPad app for work and ever since the update to iOS 7, we're seeing random hangs on iPads. I am a little new to debugging with XCode. From what I can tell, the main thread is blocked waiting for something to complete, but I don't know what that is. Here is the thread dump:
* thread #1: tid = 0x260c, 0x384f4554 libsystem_kernel.dylib`__semwait_signal + 28, queue = 'com.apple.main-thread, stop reason = instruction step over
frame #0: 0x384f4554 libsystem_kernel.dylib`__semwait_signal + 28
frame #1: 0x3846580c libsystem_c.dylib`nanosleep + 172
frame #2: 0x3846575a libsystem_c.dylib`usleep + 50
frame #3: 0x2fd28b9e QuartzCore`native_window_begin_iosurface(_EAGLNativeWindowObject*) + 1062
frame #4: 0x2fa25d42 GLEngine`gliGetNewIOSurfaceES + 54
frame #5: 0x2c53d148 IMGSGX543GLDriver`sgxResolveDeferredFramebufferOffset + 48
frame #6: 0x2c5337a0 IMGSGX543GLDriver`sgxPatchDeferredFramebufferOffsets + 28
frame #7: 0x2c538a1c IMGSGX543GLDriver`sgxEndRender + 12
frame #8: 0x2c531828 IMGSGX543GLDriver`SubmitPackets + 24
frame #9: 0x2fa25c6a GLEngine`gliPresentViewES + 166
frame #10: 0x2fa30138 OpenGLES`-[EAGLContext presentRenderbuffer:] + 64
frame #11: 0x00cba74e libglInterpose.dylib`EAGLContext_presentRenderbuffer(EAGLContext*, objc_selector*, unsigned int) + 370
Has anyone else seen a similar issue with OpenGL on the iPad after iOS 7?
EDIT: By request, the other threads:
Thread 5:
* thread #5: tid = 0x3ade2, 0x3998e550 libsystem_kernel.dylib`__semwait_signal + 24, name = 'gputools.smt_poll.0x1461ec90
frame #0: 0x3998e550 libsystem_kernel.dylib`__semwait_signal + 24
frame #1: 0x398ff80c libsystem_c.dylib`nanosleep + 172
frame #2: 0x398ff75a libsystem_c.dylib`usleep + 50
frame #3: 0x00cb1f38 GPUToolsCore`smt_poll_thread_entry(void*) + 124
frame #4: 0x399f6c1c libsystem_pthread.dylib`_pthread_body + 140
frame #5: 0x399f6b8e libsystem_pthread.dylib`_pthread_start + 102
frame #6: 0x399f4c90 libsystem_pthread.dylib`thread_start + 8
Thread 6:
* thread #6: tid = 0x3ade4, 0x3997b83c libsystem_kernel.dylib`kevent64 + 24, queue = 'com.apple.libdispatch-manager
frame #0: 0x3997b83c libsystem_kernel.dylib`kevent64 + 24
frame #1: 0x398bc224 libdispatch.dylib`_dispatch_mgr_invoke + 232
frame #2: 0x398bbfaa libdispatch.dylib`_dispatch_mgr_thread$VARIANT$mp + 38
Thread 8:
* thread #8: tid = 0x3ade5, 0x3998df38 libsystem_kernel.dylib`__psynch_cvwait + 24
frame #0: 0x3998df38 libsystem_kernel.dylib`__psynch_cvwait + 24
frame #1: 0x399f6228 libsystem_pthread.dylib`_pthread_cond_wait + 540
frame #2: 0x399f7004 libsystem_pthread.dylib`pthread_cond_wait + 40
frame #3: 0x000c7f60 Bones`awThread::Condition::wait(this=0x145322a8, i=Interval at 0x032dcd78) + 100 at awThreadCondition.cpp:344
frame #4: 0x000c73f0 Bones`awThread::Barrier::Impl::wait(this=0x145322a0) + 596 at awThreadBarrier.cpp:52
frame #5: 0x000c716c Bones`awThread::Barrier::wait(this=0x14532290) + 28 at awThreadBarrier.cpp:118
frame #6: 0x000c9b0c Bones`awThread::PoolImpl::threadFunc(this=0x145321b0) + 260 at awThreadPoolImpl.cpp:133
frame #7: 0x000c960c Bones`awThread::PoolImpl::staticThreadFunc(data=0x145321b0) + 32 at awThreadPoolImpl.cpp:178
frame #8: 0x000c5d34 Bones`(anonymous namespace)::awThreadFunction(data_=0x1452bcd0) + 168 at awThread.cpp:79
frame #9: 0x399f6c1c libsystem_pthread.dylib`_pthread_body + 140
frame #10: 0x399f6b8e libsystem_pthread.dylib`_pthread_start + 102
Thread 9:
* thread #9: tid = 0x3ade6, 0x3998df38 libsystem_kernel.dylib`__psynch_cvwait + 24
frame #0: 0x3998df38 libsystem_kernel.dylib`__psynch_cvwait + 24
frame #1: 0x399f6228 libsystem_pthread.dylib`_pthread_cond_wait + 540
frame #2: 0x399f7004 libsystem_pthread.dylib`pthread_cond_wait + 40
frame #3: 0x000c7f60 Bones`awThread::Condition::wait(this=0x145322a8, i=Interval at 0x0335ed78) + 100 at awThreadCondition.cpp:344
frame #4: 0x000c73f0 Bones`awThread::Barrier::Impl::wait(this=0x145322a0) + 596 at awThreadBarrier.cpp:52
frame #5: 0x000c716c Bones`awThread::Barrier::wait(this=0x14532290) + 28 at awThreadBarrier.cpp:118
frame #6: 0x000c9b0c Bones`awThread::PoolImpl::threadFunc(this=0x145321b0) + 260 at awThreadPoolImpl.cpp:133
frame #7: 0x000c960c Bones`awThread::PoolImpl::staticThreadFunc(data=0x145321b0) + 32 at awThreadPoolImpl.cpp:178
frame #8: 0x000c5d34 Bones`(anonymous namespace)::awThreadFunction(data_=0x14532280) + 168 at awThread.cpp:79
frame #9: 0x399f6c1c libsystem_pthread.dylib`_pthread_body + 140
frame #10: 0x399f6b8e libsystem_pthread.dylib`_pthread_start + 102
Thread 12:
* thread #12: tid = 0x3ae4e, 0x3997ba8c libsystem_kernel.dylib`mach_msg_trap + 20, name = 'com.apple.NSURLConnectionLoader
frame #0: 0x3997ba8c libsystem_kernel.dylib`mach_msg_trap + 20
frame #1: 0x3997b88c libsystem_kernel.dylib`mach_msg + 48
frame #2: 0x2ec937ca CoreFoundation`__CFRunLoopServiceMachPort + 154
frame #3: 0x2ec91ef0 CoreFoundation`__CFRunLoopRun + 784
frame #4: 0x2ebfcce6 CoreFoundation`CFRunLoopRunSpecific + 522
frame #5: 0x2ebfcaca CoreFoundation`CFRunLoopRunInMode + 106
frame #6: 0x2f636496 Foundation`+[NSURLConnection(Loader) _resourceLoadLoop:] + 318
frame #7: 0x2f6abe26 Foundation`__NSThread__main__ + 1062
frame #8: 0x399f6c1c libsystem_pthread.dylib`_pthread_body + 140
frame #9: 0x399f6b8e libsystem_pthread.dylib`_pthread_start + 102
Thread 15:
* thread #15: tid = 0x3ae54, 0x3998e440 libsystem_kernel.dylib`select$DARWIN_EXTSN + 20, name = 'com.apple.CFSocket.private
frame #0: 0x3998e440 libsystem_kernel.dylib`select$DARWIN_EXTSN + 20
frame #1: 0x2ec9768c CoreFoundation`__CFSocketManager + 484
frame #2: 0x399f6c1c libsystem_pthread.dylib`_pthread_body + 140
frame #3: 0x399f6b8e libsystem_pthread.dylib`_pthread_start + 102
Thread 23:
* thread #23: tid = 0x3b191, 0x3998ec7c libsystem_kernel.dylib`__workq_kernreturn + 8
frame #0: 0x3998ec7c libsystem_kernel.dylib`__workq_kernreturn + 8
frame #1: 0x399f4dca libsystem_pthread.dylib`_pthread_wqthread + 310
frame #2: 0x399f4c84 libsystem_pthread.dylib`start_wqthread + 8

Mysterious SIGKILL in iPad application running in the simulator

My iPad application has recently been receiving mysterious SIGKILL signals while running in the iOS Simulator. It seems to happen within 2 minutes of application launch, but not every time.
Does this backtrace indicate anything, or should I try removing things until I find the culprit?
There are some components that could be involved; one example is that I recently integrated Crashlytics. Another example is I'm using CLGeocoder to plot a location on an MKMapView, which could explain why the problem happens at some undetermined point after the launch (and why MapKit appears in one of the threads). But without clearer indication from a backtrace or a log, I'm shooting in the dark.
Xcode 4.3.2; targeting iOS 5.
* thread #1: tid = 0x1f03, 0x9c2c4c22 libsystem_kernel.dylib`mach_msg_trap + 10, stop reason = signal SIGKILL
frame #0: 0x9c2c4c22 libsystem_kernel.dylib`mach_msg_trap + 10
frame #1: 0x9c2c41f6 libsystem_kernel.dylib`mach_msg + 70
frame #2: 0x0178110a CoreFoundation`__CFRunLoopServiceMachPort + 186
frame #3: 0x016e4550 CoreFoundation`__CFRunLoopRun + 1312
frame #4: 0x016e3d84 CoreFoundation`CFRunLoopRunSpecific + 212
frame #5: 0x016e3c9b CoreFoundation`CFRunLoopRunInMode + 123
frame #6: 0x015af7d8 GraphicsServices`GSEventRunModal + 190
frame #7: 0x015af88a GraphicsServices`GSEventRun + 103
frame #8: 0x00394626 UIKit`UIApplicationMain + 1163
frame #9: 0x00001d4d Tablecloth`main + 141 at main.m:16
frame #10: 0x00001cb5 Tablecloth`start + 53
thread #3: tid = 0x2403, 0x9c2c790a libsystem_kernel.dylib`kevent + 10
frame #0: 0x9c2c790a libsystem_kernel.dylib`kevent + 10
frame #1: 0x020b9372 libdispatch.dylib`_dispatch_mgr_invoke + 918
frame #2: 0x020b7be1 libdispatch.dylib`_dispatch_mgr_thread + 53
thread #5: tid = 0x2603, 0x9c2c4c22 libsystem_kernel.dylib`mach_msg_trap + 10
frame #0: 0x9c2c4c22 libsystem_kernel.dylib`mach_msg_trap + 10
frame #1: 0x9c2c41f6 libsystem_kernel.dylib`mach_msg + 70
frame #2: 0x0178110a CoreFoundation`__CFRunLoopServiceMachPort + 186
frame #3: 0x016e45d5 CoreFoundation`__CFRunLoopRun + 1445
frame #4: 0x016e3d84 CoreFoundation`CFRunLoopRunSpecific + 212
frame #5: 0x016e3c9b CoreFoundation`CFRunLoopRunInMode + 123
frame #6: 0x03ede420 WebCore`_ZL12RunWebThreadPv + 560
frame #7: 0x93ebced9 libsystem_c.dylib`_pthread_start + 335
thread #6: tid = 0x2703, 0x9c2c4c22 libsystem_kernel.dylib`mach_msg_trap + 10
frame #0: 0x9c2c4c22 libsystem_kernel.dylib`mach_msg_trap + 10
frame #1: 0x9c2c41f6 libsystem_kernel.dylib`mach_msg + 70
frame #2: 0x0178110a CoreFoundation`__CFRunLoopServiceMachPort + 186
frame #3: 0x016e45d5 CoreFoundation`__CFRunLoopRun + 1445
frame #4: 0x016e3d84 CoreFoundation`CFRunLoopRunSpecific + 212
frame #5: 0x016e3c9b CoreFoundation`CFRunLoopRunInMode + 123
frame #6: 0x00d94e30 Foundation`+[NSURLConnection(Loader) _resourceLoadLoop:] + 398
frame #7: 0x00ca64d6 Foundation`-[NSThread main] + 76
frame #8: 0x00ca6447 Foundation`__NSThread__main__ + 1258
frame #9: 0x93ebced9 libsystem_c.dylib`_pthread_start + 335
thread #7: tid = 0x2803, 0x9c2c4c22 libsystem_kernel.dylib`mach_msg_trap + 10
frame #0: 0x9c2c4c22 libsystem_kernel.dylib`mach_msg_trap + 10
frame #1: 0x9c2c41f6 libsystem_kernel.dylib`mach_msg + 70
frame #2: 0x0178110a CoreFoundation`__CFRunLoopServiceMachPort + 186
frame #3: 0x016e45d5 CoreFoundation`__CFRunLoopRun + 1445
frame #4: 0x016e3d84 CoreFoundation`CFRunLoopRunSpecific + 212
frame #5: 0x016e3c9b CoreFoundation`CFRunLoopRunInMode + 123
frame #6: 0x0012286b MapKit`MKNormalizedPointForLayer + 30057
frame #7: 0x00ca64d6 Foundation`-[NSThread main] + 76
frame #8: 0x00ca6447 Foundation`__NSThread__main__ + 1258
frame #9: 0x93ebced9 libsystem_c.dylib`_pthread_start + 335
thread #8: tid = 0x2903, 0x9c2c6b42 libsystem_kernel.dylib`select$DARWIN_EXTSN + 10
frame #0: 0x9c2c6b42 libsystem_kernel.dylib`select$DARWIN_EXTSN + 10
frame #1: 0x017157cb CoreFoundation`__CFSocketManager + 939
frame #2: 0x93ebced9 libsystem_c.dylib`_pthread_start + 335
thread #9: tid = 0x2a03, 0x9c2c702e libsystem_kernel.dylib`__workq_kernreturn + 10
frame #0: 0x9c2c702e libsystem_kernel.dylib`__workq_kernreturn + 10
frame #1: 0x93ebeccf libsystem_c.dylib`_pthread_wqthread + 773
EDIT: The Crashlytics support team helped me debug this, and the thing that seemed to fix it was to use the "Reset Content and Settings…" menu item in the Simulator app. It's not clear why exactly this happened, but I'm not getting the debugging interruptions anymore.
SIGKILL generally suggests that you were killed by the OS. Your console logs are going to be more useful than the stack traces. If it were on device, I would suspect using too much memory, but that's very unlikely in the simulator. The other common SIGKILL is if you block your main thread too long, so I'd look for that (though I didn't think the simulator provided that one).
But your best place to look is in the run log.

Resources