Mysterious SIGKILL in iPad application running in the simulator - ios

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.

Related

iOS Application keeps deadlocks in the field out of no where

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)

GLKViewController hangs after a few hours

My iOS app is using GLKViewController to display data received from an external camera streaming on a local network. However, after a few hours it hangs and the app becomes not responsive. If I pause the execution on the debugger, I can see that the app is actually running (network threads for instance are alive) but the Update and DrawInRect methods are not being fired and the main thread seems to be stuck.
In particular, backtracing threads produces this output as far as gpu related threads are concerned:
thread #1, queue = 'gputools.DYSharedMemoryTransport.0x102d00000.send', stop reason = instruction step over
* frame #0: 0x00000001f88c559c libsystem_c.dylib`nanosleep + 160
frame #1: 0x00000001f88c54a4 libsystem_c.dylib`usleep + 64
frame #2: 0x0000000102933780 GPUToolsCore`-[DYSharedMemoryTransport _waitEAGAIN] + 40
frame #3: 0x0000000102957510 GPUToolsCore`-[DYBaseStreamTransport _writeBuffers:] + 232
frame #4: 0x0000000102957b00 GPUToolsCore`-[DYBaseStreamTransport _sendMessage:error:] + 508
frame #5: 0x0000000102946064 GPUToolsCore`__63-[DYTransport send:inReplyTo:error:replyQueue:timeout:handler:]_block_invoke.223 + 116
frame #6: 0x0000000102314de4 libdispatch.dylib`_dispatch_client_callout + 16
frame #7: 0x0000000102323d18 libdispatch.dylib`_dispatch_sync_invoke_and_complete_recurse + 132
frame #8: 0x0000000102945e38 GPUToolsCore`-[DYTransport send:inReplyTo:error:replyQueue:timeout:handler:] + 644
frame #9: 0x0000000102932530 GPUToolsCore`-[DYSharedMemoryTransport send:inReplyTo:error:replyQueue:timeout:handler:] + 252
frame #10: 0x00000001024a5120 libglInterpose.dylib`handle_frame_boundary + 472
frame #11: 0x00000001026917a0 libglInterpose.dylib`_EAGLContext_PresentInterposeCommon(EAGLContext*, unsigned int, unsigned long, double, bool () block_pointer) + 988
frame #12: 0x000000010268f074 libglInterpose.dylib`EAGLContext_presentRenderbuffer(EAGLContext*, objc_selector*, unsigned long) + 80
frame #13: 0x0000000205f8192c GLKit`-[GLKView _display:] + 308
frame #14: 0x0000000205f82b08 GLKit`-[GLKViewController _updateAndDraw] + 520
frame #15: 0x000000010293d66c GPUToolsCore`-[DYDisplayLinkInterposer forwardDisplayLinkCallback:] + 176
frame #16: 0x00000001fd270574 QuartzCore`CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 828
frame #17: 0x00000001f901a58c IOKit`IODispatchCalloutFromCFMessage + 488
frame #18: 0x00000001f8d223e4 CoreFoundation`__CFMachPortPerform + 188
frame #19: 0x00000001f8d49c30 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 56
frame #20: 0x00000001f8d4937c CoreFoundation`__CFRunLoopDoSource1 + 440
frame #21: 0x00000001f8d44134 CoreFoundation`__CFRunLoopRun + 2140
frame #22: 0x00000001f8d435b8 CoreFoundation`CFRunLoopRunSpecific + 436
frame #23: 0x00000001fafb7584 GraphicsServices`GSEventRunModal + 100
frame #24: 0x0000000225383558 UIKitCore`UIApplicationMain + 212
frame #25: 0x0000000100471798 KiberField`main(argc=1, argv=0x000000016f9f7780) at main.m:14:16
frame #26: 0x00000001f8803b94 libdyld.dylib`start + 4
thread #2, name = 'gputools.smt_poll.0x281b4a8a0'
frame #0: 0x00000001f8950428 libsystem_kernel.dylib`__semwait_signal + 8
frame #1: 0x00000001f88c55d0 libsystem_c.dylib`nanosleep + 212
frame #2: 0x00000001f88c54a4 libsystem_c.dylib`usleep + 64
frame #3: 0x0000000102932df4 GPUToolsCore`smt_poll_thread_entry(void*) + 136
frame #4: 0x00000001f89d42fc libsystem_pthread.dylib`_pthread_body + 128
frame #5: 0x00000001f89d425c libsystem_pthread.dylib`_pthread_start + 48
frame #6: 0x00000001f89d7d08 libsystem_pthread.dylib`thread_start + 4
thread #3, name = 'gputools.smt_poll.0x281b58ce0'
frame #0: 0x00000001f8950428 libsystem_kernel.dylib`__semwait_signal + 8
frame #1: 0x00000001f88c55d0 libsystem_c.dylib`nanosleep + 212
frame #2: 0x00000001f88c54a4 libsystem_c.dylib`usleep + 64
frame #3: 0x0000000102932df4 GPUToolsCore`smt_poll_thread_entry(void*) + 136
frame #4: 0x00000001f89d42fc libsystem_pthread.dylib`_pthread_body + 128
frame #5: 0x00000001f89d425c libsystem_pthread.dylib`_pthread_start + 48
frame #6: 0x00000001f89d7d08 libsystem_pthread.dylib`thread_start + 4
My question is: what could be possibly blocking the thread?
Alternatively, I can detect this deadlock with a timeout timer checked in another thread: is there a way to unblock the graphical thread (for instance manually calling Update or whatever else) ?
I met this problem also.I use the 'RTCEAGLVideoView' in webrtc to display video images.The main thread seems won't get cpu time anymore!Could this is a bug in iPadOS 13?

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!

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

Strange crash in UITextField

I did not have this issue before. Every thing was working fine, but recently the UITextField in my every view controller crashes when I touch at it. It throws some exception like -[UITextField window]: message sent to deallocated instance 0x11843f80. I have properly set up the IBOutlet and actions, delegate for the UITextField. Until recently I did not have this problem but with addition of new view controller this problem has come across all the view controller that I am using. When I run lldb command to trace the application, the trace log shows something like this,
thread #1: tid = 0x1c03, 0x02fb3dee CoreFoundation`___forwarding___ + 206, stop reason = EXC_BREAKPOINT (code=EXC_I386_BPT, subcode=0x0)
frame #0: 0x02fb3dee CoreFoundation`___forwarding___ + 206
frame #1: 0x02fb3cb2 CoreFoundation`_CF_forwarding_prep_0 + 50
frame #2: 0x00f6c592 UIKit`-[UITextSelectionView textSelectionViewActivated:] + 117
frame #3: 0x0195ea29 Foundation`__57-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke_0 + 40
frame #4: 0x03018855 CoreFoundation`___CFXNotificationPost_block_invoke_0 + 85
frame #5: 0x03018778 CoreFoundation`_CFXNotificationPost + 1976
frame #6: 0x018a319a Foundation`-[NSNotificationCenter postNotificationName:object:userInfo:] + 98
frame #7: 0x018afb03 Foundation`-[NSNotificationCenter postNotificationName:object:] + 55
frame #8: 0x00f6bcb3 UIKit`-[UITextSelectionView activate] + 83
frame #9: 0x00d428bb UIKit`-[UIFieldEditor becomeFieldEditorForView:] + 1523
frame #10: 0x00d2ff02 UIKit`-[UITextField _becomeFirstResponder] + 99
frame #11: 0x00d6e093 UIKit`-[UIResponder becomeFirstResponder] + 351
frame #12: 0x00f4d8fb UIKit`-[UITextInteractionAssistant setFirstResponderIfNecessary] + 208
frame #13: 0x00f4f5f8 UIKit`-[UITextInteractionAssistant oneFingerTap:] + 1989
frame #14: 0x00f47e29 UIKit`_UIGestureRecognizerSendActions + 143
frame #15: 0x00f47133 UIKit`-[UIGestureRecognizer _updateGestureWithEvent:] + 379
frame #16: 0x00f483bf UIKit`-[UIGestureRecognizer _delayedUpdateGesture] + 46
frame #17: 0x00f4aa21 UIKit`___UIGestureRecognizerUpdate_block_invoke_0541 + 57
frame #18: 0x00f4a97c UIKit`_UIGestureRecognizerApplyBlocksToArray + 277
frame #19: 0x00f433d7 UIKit`_UIGestureRecognizerUpdate + 1026
frame #20: 0x00ca81a2 UIKit`-[UIWindow _sendGesturesForEvent:] + 1121
frame #21: 0x00ca8532 UIKit`-[UIWindow sendEvent:] + 93
frame #22: 0x00c8edc4 UIKit`-[UIApplication sendEvent:] + 464
frame #23: 0x00c82634 UIKit`_UIApplicationHandleEvent + 8196
frame #24: 0x03451ef5 GraphicsServices`PurpleEventCallback + 1274
frame #25: 0x03021195 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 53
frame #26: 0x02f85ff2 CoreFoundation`__CFRunLoopDoSource1 + 146
frame #27: 0x02f848da CoreFoundation`__CFRunLoopRun + 2218
frame #28: 0x02f83d84 CoreFoundation`CFRunLoopRunSpecific + 212
frame #29: 0x02f83c9b CoreFoundation`CFRunLoopRunInMode + 123
frame #30: 0x034507d8 GraphicsServices`GSEventRunModal + 190
frame #31: 0x0345088a GraphicsServices`GSEventRun + 103
frame #32: 0x00c80626 UIKit`UIApplicationMain + 1163
frame #33: 0x000a99bd Introdex`main + 141 at main.m:15
frame #34: 0x000029d5 Introdex`start + 53
thread #2: tid = 0x2103, 0x95de79ae libsystem_kernel.dylib`kevent + 10
frame #0: 0x95de79ae libsystem_kernel.dylib`kevent + 10
frame #1: 0x033f6372 libdispatch.dylib`_dispatch_mgr_invoke + 918
frame #2: 0x033f4be1 libdispatch.dylib`_dispatch_mgr_thread + 53
thread #4: tid = 0x2303, 0x95de691a libsystem_kernel.dylib`__psynch_mutexwait + 10
frame #0: 0x95de691a libsystem_kernel.dylib`__psynch_mutexwait + 10
frame #1: 0x969fa13b libsystem_c.dylib`pthread_mutex_lock + 595
frame #2: 0x070e475e WebCore`_WebTryThreadLock(bool) + 46
frame #3: 0x070e4455 WebCore`WebRunLoopLock(__CFRunLoopObserver*, unsigned long, void*) + 37
frame #4: 0x0302199e CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 30
frame #5: 0x02fb8640 CoreFoundation`__CFRunLoopDoObservers + 384
frame #6: 0x02f84635 CoreFoundation`__CFRunLoopRun + 1541
frame #7: 0x02f83d84 CoreFoundation`CFRunLoopRunSpecific + 212
frame #8: 0x02f83c9b CoreFoundation`CFRunLoopRunInMode + 123
frame #9: 0x070e4420 WebCore`RunWebThread(void*) + 560
frame #10: 0x969f4557 libsystem_c.dylib`_pthread_start + 344
thread #8: tid = 0x2703, 0x95de47d2 libsystem_kernel.dylib`mach_msg_trap + 10
frame #0: 0x95de47d2 libsystem_kernel.dylib`mach_msg_trap + 10
frame #1: 0x95de3cb0 libsystem_kernel.dylib`mach_msg + 68
frame #2: 0x0302110a CoreFoundation`__CFRunLoopServiceMachPort + 186
frame #3: 0x02f845d5 CoreFoundation`__CFRunLoopRun + 1445
frame #4: 0x02f83d84 CoreFoundation`CFRunLoopRunSpecific + 212
frame #5: 0x02f83c9b CoreFoundation`CFRunLoopRunInMode + 123
frame #6: 0x0199ce30 Foundation`+[NSURLConnection(Loader) _resourceLoadLoop:] + 398
frame #7: 0x018ae4d6 Foundation`-[NSThread main] + 76
frame #8: 0x018ae447 Foundation`__NSThread__main__ + 1258
frame #9: 0x969f4557 libsystem_c.dylib`_pthread_start + 344
thread #9: tid = 0x2803, 0x95de6be6 libsystem_kernel.dylib`select$DARWIN_EXTSN + 10
frame #0: 0x95de6be6 libsystem_kernel.dylib`select$DARWIN_EXTSN + 10
frame #1: 0x02fb57cb CoreFoundation`__CFSocketManager + 939
frame #2: 0x969f4557 libsystem_c.dylib`_pthread_start + 344
thread #10: tid = 0x2903, 0x95de47d2 libsystem_kernel.dylib`mach_msg_trap + 10
frame #0: 0x95de47d2 libsystem_kernel.dylib`mach_msg_trap + 10
frame #1: 0x95de3cb0 libsystem_kernel.dylib`mach_msg + 68
frame #2: 0x0302110a CoreFoundation`__CFRunLoopServiceMachPort + 186
frame #3: 0x02f845d5 CoreFoundation`__CFRunLoopRun + 1445
frame #4: 0x02f83d84 CoreFoundation`CFRunLoopRunSpecific + 212
frame #5: 0x02f83c9b CoreFoundation`CFRunLoopRunInMode + 123
frame #6: 0x06df9f50 WebCore`WebCore::runLoaderThread(void*) + 176
frame #7: 0x086ce807 JavaScriptCore`WTF::threadEntryPoint(void*) + 71
frame #8: 0x969f4557 libsystem_c.dylib`_pthread_start + 344
thread #18: tid = 0x3103, 0x95de47d2 libsystem_kernel.dylib`mach_msg_trap + 10
frame #0: 0x95de47d2 libsystem_kernel.dylib`mach_msg_trap + 10
frame #1: 0x95de3cb0 libsystem_kernel.dylib`mach_msg + 68
frame #2: 0x0302110a CoreFoundation`__CFRunLoopServiceMachPort + 186
frame #3: 0x02f845d5 CoreFoundation`__CFRunLoopRun + 1445
frame #4: 0x02f83d84 CoreFoundation`CFRunLoopRunSpecific + 212
frame #5: 0x02f83c9b CoreFoundation`CFRunLoopRunInMode + 123
frame #6: 0x018e240f Foundation`-[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 300
frame #7: 0x018e22d3 Foundation`-[NSRunLoop(NSRunLoop) run] + 76
frame #8: 0x0012853f Introdex`+[AFURLConnectionOperation networkRequestThreadEntryPoint:] + 111 at AFURLConnectionOperation.m:156
frame #9: 0x018ae4d6 Foundation`-[NSThread main] + 76
frame #10: 0x018ae447 Foundation`__NSThread__main__ + 1258
frame #11: 0x969f4557 libsystem_c.dylib`_pthread_start + 344
thread #21: tid = 0x3403, 0x95de70ee libsystem_kernel.dylib`__workq_kernreturn + 10
frame #0: 0x95de70ee libsystem_kernel.dylib`__workq_kernreturn + 10
frame #1: 0x969f704c libsystem_c.dylib`_pthread_workq_return + 45
frame #2: 0x969f6e19 libsystem_c.dylib`_pthread_wqthread + 448
What might me the issue here. Please if anyone could help me, I would really be glad.
Use Instruments for zombie. This will tell you what is really happening there.

Resources