Prevent view to layout Subviews - ios

I've designed a UIViewController in a .xib file. It uses Autolayout.
I have in it a UISlider which change the text of a UILabel when its value change : I've linked the sent event "Value changed" to my header file and then implements the function in the .m file of my controller. This method only changes the text of the label, depending of the value of the slider.
When the view appears, the slider is not show (set outside of the screen). I present it on the view using animations.
The problem is when I change the value of my slider, it calls automatically
-(void)viewDidLayoutSubviews
{
}
And unfortunately, it reset all the subviews of my controller's view to their original positions.
How to present the slider to "destroy" the actual layout.
EDIT
My slider's connections in the interface builder :
and the code of the associated function :
- (IBAction)sliderDureeValueChanged:(id)sender {
dureeMois = (int) sliderDuree.value;
if (sliderDuree.maximumValue == sliderDuree.value)
{
[lblDuree setText:#"Max"];
}
else if (sliderDuree.minimumValue == sliderDuree.value)
{
[lblDuree setText:#"Min"];
}
else
{
[lblDuree setText:[NSString stringWithFormat:#"%d month",dureeMois]
}
}
EDIT2
Here is the stack obtained with [NSThread callStackSymbols] in viewDidLayoutSubviews when called by using the slider.
2013-07-16 16:39:47.420 MyApp[2363:907] Stack trace : (
0 MyApp 0x0003cd5f -[GraphiqueFVViewController viewDidLayoutSubviews] + 50
1 UIKit 0x34f938c9 <redacted> + 456
2 QuartzCore 0x34d3dd8b <redacted> + 214
3 QuartzCore 0x34d3d929 <redacted> + 460
4 QuartzCore 0x34d3e85d <redacted> + 16
5 QuartzCore 0x34d3e243 <redacted> + 238
6 QuartzCore 0x34d3e051 <redacted> + 316
7 QuartzCore 0x34d3deb1 <redacted> + 60
8 CoreFoundation 0x3315d6cd <redacted> + 20
9 CoreFoundation 0x3315b9c1 <redacted> + 276
10 CoreFoundation 0x3315bd17 <redacted> + 742
11 CoreFoundation 0x330ceebd CFRunLoopRunSpecific + 356
12 CoreFoundation 0x330ced49 CFRunLoopRunInMode + 104
13 GraphicsServices 0x36c922eb GSEventRunModal + 74
14 UIKit 0x34fe4301 UIApplicationMain + 1120
15 MyApp 0x00021add main + 116
16 libdyld.dylib 0x3b264b20 <redacted> + 0
and backtracing all in the debug area :
* thread #1: tid = 0x2503, 0x00101d46 MyApp`-[GraphiqueFVViewController viewDidLayoutSubviews](self=0x1ed972f0, _cmd=0x3541247c) + 42 at GraphiqueFVViewController.m:386, stop reason = breakpoint 2.1
frame #0: 0x00101d46 MyApp`-[GraphiqueFVViewController viewDidLayoutSubviews](self=0x1ed972f0, _cmd=0x3541247c) + 42 at GraphiqueFVViewController.m:386
frame #1: 0x34f938c8 UIKit`-[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 456
frame #2: 0x34d3dd8a QuartzCore`-[CALayer layoutSublayers] + 214
frame #3: 0x34d3d928 QuartzCore`CA::Layer::layout_if_needed(CA::Transaction*) + 460
frame #4: 0x34d3e85c QuartzCore`CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 16
frame #5: 0x34d3e242 QuartzCore`CA::Context::commit_transaction(CA::Transaction*) + 238
frame #6: 0x34d3e050 QuartzCore`CA::Transaction::commit() + 316
frame #7: 0x34d3deb0 QuartzCore`CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 60
frame #8: 0x3315d6cc CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 20
frame #9: 0x3315b9c0 CoreFoundation`__CFRunLoopDoObservers + 276
frame #10: 0x3315bd16 CoreFoundation`__CFRunLoopRun + 742
frame #11: 0x330ceebc CoreFoundation`CFRunLoopRunSpecific + 356
frame #12: 0x330ced48 CoreFoundation`CFRunLoopRunInMode + 104
frame #13: 0x36c922ea GraphicsServices`GSEventRunModal + 74
frame #14: 0x34fe4300 UIKit`UIApplicationMain + 1120
frame #15: 0x000e6a84 MyApp`main(argc=1, argv=0x2fd1bd18) + 116 at main.m:16
frame #16: 0x3b264b20 libdyld.dylib`start + 4
thread #3: tid = 0x2903, 0x3b31b648 libsystem_kernel.dylib`kevent64 + 24
frame #0: 0x3b31b648 libsystem_kernel.dylib`kevent64 + 24
frame #1: 0x3b2544f0 libdispatch.dylib`_dispatch_mgr_invoke + 796
frame #2: 0x3b246df8 libdispatch.dylib`_dispatch_mgr_thread$VARIANT$up + 36
thread #5: tid = 0x2b03, 0x3b31aeb4 libsystem_kernel.dylib`mach_msg_trap + 20
frame #0: 0x3b31aeb4 libsystem_kernel.dylib`mach_msg_trap + 20
frame #1: 0x3b31b04c libsystem_kernel.dylib`mach_msg + 40
frame #2: 0x3315d044 CoreFoundation`__CFRunLoopServiceMachPort + 128
frame #3: 0x3315bda2 CoreFoundation`__CFRunLoopRun + 882
frame #4: 0x330ceebc CoreFoundation`CFRunLoopRunSpecific + 356
frame #5: 0x330ced48 CoreFoundation`CFRunLoopRunInMode + 104
frame #6: 0x390cd504 WebCore`RunWebThread(void*) + 444
frame #7: 0x3b284310 libsystem_c.dylib`_pthread_start + 308
thread #7: tid = 0x241f, 0x3b31aeb4 libsystem_kernel.dylib`mach_msg_trap + 20
frame #0: 0x3b31aeb4 libsystem_kernel.dylib`mach_msg_trap + 20
frame #1: 0x3b31b04c libsystem_kernel.dylib`mach_msg + 40
frame #2: 0x3315d044 CoreFoundation`__CFRunLoopServiceMachPort + 128
frame #3: 0x3315bda2 CoreFoundation`__CFRunLoopRun + 882
frame #4: 0x330ceebc CoreFoundation`CFRunLoopRunSpecific + 356
frame #5: 0x330ced48 CoreFoundation`CFRunLoopRunInMode + 104
frame #6: 0x33a1b3d4 Foundation`+[NSURLConnection(Loader) _resourceLoadLoop:] + 308
frame #7: 0x33a9ee84 Foundation`__NSThread__main__ + 972
frame #8: 0x3b284310 libsystem_c.dylib`_pthread_start + 308
thread #8: tid = 0x2d03, 0x3b32b594 libsystem_kernel.dylib`select$DARWIN_EXTSN + 20
frame #0: 0x3b32b594 libsystem_kernel.dylib`select$DARWIN_EXTSN + 20
frame #1: 0x331611f6 CoreFoundation`__CFSocketManager + 678
frame #2: 0x3b284310 libsystem_c.dylib`_pthread_start + 308
thread #11: tid = 0x3003, 0x3b32b08c libsystem_kernel.dylib`__psynch_cvwait + 24
frame #0: 0x3b32b08c libsystem_kernel.dylib`__psynch_cvwait + 24
frame #1: 0x3b27cd2e libsystem_c.dylib`_pthread_cond_wait + 646
frame #2: 0x3b27caa4 libsystem_c.dylib`pthread_cond_timedwait + 44
frame #3: 0x37088c74 JavaScriptCore`WTF::ThreadCondition::timedWait(WTF::Mutex&, double) + 108
frame #4: 0x3719a556 JavaScriptCore`JSC::BlockAllocator::blockFreeingThreadMain() + 82
frame #5: 0x371acfaa JavaScriptCore`WTF::wtfThreadEntryPoint(void*) + 14
frame #6: 0x3b284310 libsystem_c.dylib`_pthread_start + 308
thread #12: tid = 0x3103, 0x3b31aeb4 libsystem_kernel.dylib`mach_msg_trap + 20
frame #0: 0x3b31aeb4 libsystem_kernel.dylib`mach_msg_trap + 20
frame #1: 0x3b31b04c libsystem_kernel.dylib`mach_msg + 40
frame #2: 0x3315d044 CoreFoundation`__CFRunLoopServiceMachPort + 128
frame #3: 0x3315bda2 CoreFoundation`__CFRunLoopRun + 882
frame #4: 0x330ceebc CoreFoundation`CFRunLoopRunSpecific + 356
frame #5: 0x330ced48 CoreFoundation`CFRunLoopRunInMode + 104
frame #6: 0x39167d06 WebCore`WebCore::runLoaderThread(void*) + 142
frame #7: 0x371acfaa JavaScriptCore`WTF::wtfThreadEntryPoint(void*) + 14
frame #8: 0x3b284310 libsystem_c.dylib`_pthread_start + 308
thread #15: tid = 0x3403, 0x3b32b08c libsystem_kernel.dylib`__psynch_cvwait + 24
frame #0: 0x3b32b08c libsystem_kernel.dylib`__psynch_cvwait + 24
frame #1: 0x3b27cd2e libsystem_c.dylib`_pthread_cond_wait + 646
frame #2: 0x3b286f18 libsystem_c.dylib`pthread_cond_wait + 40
frame #3: 0x37088c46 JavaScriptCore`WTF::ThreadCondition::timedWait(WTF::Mutex&, double) + 62
frame #4: 0x392e1e8c WebCore`WTF::PassOwnPtr<WebCore::StorageTask> WTF::MessageQueue<WebCore::StorageTask>::waitForMessageFilteredWithTimeout<bool (WebCore::StorageTask*)>(WTF::MessageQueueWaitResult&, bool (&)(WebCore::StorageTask*), double) + 56
frame #5: 0x392e1e40 WebCore`WebCore::StorageThread::threadEntryPoint() + 124
frame #6: 0x371acfaa JavaScriptCore`WTF::wtfThreadEntryPoint(void*) + 14
frame #7: 0x3b284310 libsystem_c.dylib`_pthread_start + 308
thread #17: tid = 0x3903, 0x3b32bd98 libsystem_kernel.dylib`__workq_kernreturn + 8
frame #0: 0x3b32bd98 libsystem_kernel.dylib`__workq_kernreturn + 8
frame #1: 0x3b279cfa libsystem_c.dylib`_pthread_workq_return + 18
frame #2: 0x3b279a16 libsystem_c.dylib`_pthread_wqthread + 366
thread #18: tid = 0x3b03, 0x3b32bd98 libsystem_kernel.dylib`__workq_kernreturn + 8
frame #0: 0x3b32bd98 libsystem_kernel.dylib`__workq_kernreturn + 8
frame #1: 0x3b279cfa libsystem_c.dylib`_pthread_workq_return + 18
frame #2: 0x3b279a16 libsystem_c.dylib`_pthread_wqthread + 366
thread #19: tid = 0x3707, 0x3b32bd98 libsystem_kernel.dylib`__workq_kernreturn + 8
frame #0: 0x3b32bd98 libsystem_kernel.dylib`__workq_kernreturn + 8
frame #1: 0x3b279cfa libsystem_c.dylib`_pthread_workq_return + 18
frame #2: 0x3b279a16 libsystem_c.dylib`_pthread_wqthread + 366

Hey super late to the party here but we had relatively the same issue and I wanted to shed a little light on it.
We had 3 views contained in our main view: a label, a view containing login fields, and a view containing a facebook button. When you pressed a button it would toggle between the 2 login views and when it encountered an error, the label would scale to 0, switch the text, then scale back up to 1. We found that when the label animated and changed size, the constraints would be reapplied and the first view would be toggled back into position.
We found that the documentation for "didLayoutSubviews" says it gets called on the parent of a view when that view changes bounds. We're assuming that it also counts as changing the bounds when you modify the transform of the view.
So the problem is that if a view animates, it will cause all of its sibling views to reposition to their original states.
We fixed this by putting the label inside of its own view. When it animates, it calls "layoutSubviews" on its parent, which only lays out itself.

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)

main thread was blocked when i use UIWebView

Today i find a bug in my app relate to UIWebView, there are two case for it, the url i request is https://estore-cn.pandora.net/Bracelets-1/
When I use UIWebView to show a web page, and I exit that page, the webView's dealloc been called, but the UI thread been blocked, and several minutes later it recovers.
This is the thread stack here when I press pause program execution button in Xcode.
* thread #1: tid = 0x580710, 0x0000000180da3f6c libsystem_kernel.dylib`__psynch_mutexwait + 8, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
* frame #0: 0x0000000180da3f6c libsystem_kernel.dylib`__psynch_mutexwait + 8
frame #1: 0x0000000180e7239c libsystem_pthread.dylib`_pthread_mutex_lock_wait + 96
frame #2: 0x0000000180e7257c libsystem_pthread.dylib`_pthread_mutex_lock_slow + 296
frame #3: 0x00000001850dc3b0 WebCore`_WebTryThreadLock(bool) + 52
frame #4: 0x00000001850dcb3c WebCore`WebThreadLock + 108
frame #5: 0x00000001865abfc0 UIKit`-[UIWebView dealloc] + 36
frame #6: 0x000000010032ba64 QDaily`-[QDWebView dealloc](self=0x00000001575f3980, _cmd="dealloc") + 148 at QDWebView.m:63
frame #7: 0x0000000180889ae8 libobjc.A.dylib`(anonymous namespace)::AutoreleasePoolPage::pop(void*) + 508
frame #8: 0x00000001810e89fc CoreFoundation`_CFAutoreleasePoolPop + 28
frame #9: 0x00000001811bebc0 CoreFoundation`__CFRunLoopRun + 1636
frame #10: 0x00000001810e8c50 CoreFoundation`CFRunLoopRunSpecific + 384
frame #11: 0x00000001829d0088 GraphicsServices`GSEventRunModal + 180
frame #12: 0x00000001863d6088 UIKit`UIApplicationMain + 204
frame #13: 0x000000010037490c QDaily`main(argc=1, argv=0x000000016fd03af0) + 172 at main.m:16
frame #14: 0x0000000180c868b8 libdyld.dylib`start + 4
second case is ,when i begin skip into the webView page, the same case happened.
thread #1: tid = 0x5801dc, 0x0000000180da3f6c libsystem_kernel.dylib`__psynch_mutexwait + 8, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
frame #0: 0x0000000180da3f6c libsystem_kernel.dylib`__psynch_mutexwait + 8
frame #1: 0x0000000180e7239c libsystem_pthread.dylib`_pthread_mutex_lock_wait + 96
frame #2: 0x0000000180e7257c libsystem_pthread.dylib`_pthread_mutex_lock_slow + 296
frame #3: 0x00000001850dc3b0 WebCore`_WebTryThreadLock(bool) + 52
frame #4: 0x00000001850dcb3c WebCore`WebThreadLock + 108
frame #5: 0x00000001867f3dc4 UIKit`-[UIWebView _webViewCommonInitWithWebView:scalesPageToFit:] + 128
frame #6: 0x00000001865a83ec UIKit`-[UIWebView initWithFrame:] + 80
frame #7: 0x00000001002abb60 QDaily`-[QDWebView initWithFrame:](self=0x0000000000000000, _cmd="initWithFrame:", frame=(origin = (x = 0, y = 20), size = (width = 414, height = 666))) + 120 at QDWebView.m:71
frame #8: 0x0000000100212244 QDaily`-[QDSimpleWebViewController viewDidLoad](self=0x0000000131225070, _cmd="viewDidLoad") + 796 at QDSimpleWebViewController.m:57
frame #9: 0x000000018636cc40 UIKit`-[UIViewController loadViewIfRequired] + 996
frame #10: 0x00000001863850d0 UIKit`-[UIViewController __viewWillAppear:] + 132
frame #11: 0x000000018651fe5c UIKit`-[UINavigationController _startCustomTransition:] + 1052
frame #12: 0x000000018642be40 UIKit`-[UINavigationController _startDeferredTransitionIfNeeded:] + 688
frame #13: 0x000000018642bb1c UIKit`-[UINavigationController __viewWillLayoutSubviews] + 60
frame #14: 0x000000018642ba84 UIKit`-[UILayoutContainerView layoutSubviews] + 208
frame #15: 0x00000001863681e4 UIKit`-[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 656
frame #16: 0x0000000183cf698c QuartzCore`-[CALayer layoutSublayers] + 148
frame #17: 0x0000000183cf15c8 QuartzCore`CA::Layer::layout_if_needed(CA::Transaction*) + 292
frame #18: 0x0000000183cf1488 QuartzCore`CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 32
frame #19: 0x0000000183cf0ab8 QuartzCore`CA::Context::commit_transaction(CA::Transaction*) + 252
frame #20: 0x0000000183cf0818 QuartzCore`CA::Transaction::commit() + 500
frame #21: 0x000000018636aff4 UIKit`_UIApplicationHandleEventQueue + 4980
frame #22: 0x00000001811c109c CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
frame #23: 0x00000001811c0b30 CoreFoundation`__CFRunLoopDoSources0 + 540
frame #24: 0x00000001811be830 CoreFoundation`__CFRunLoopRun + 724
frame #25: 0x00000001810e8c50 CoreFoundation`CFRunLoopRunSpecific + 384
frame #26: 0x00000001829d0088 GraphicsServices`GSEventRunModal + 180
frame #27: 0x00000001863d6088 UIKit`UIApplicationMain + 204
frame #28: 0x00000001002f490c QDaily`main(argc=1, argv=0x000000016fd83af0) + 172 at main.m:16
frame #29: 0x0000000180c868b8 libdyld.dylib`start + 4
I don't know how to resolve it
ADD: this is the webThread when happened dead lock
* thread #19: tid = 0x58076c, 0x00000001854180f0 WebCore`WTF::HashMap<unsigned long, WTF::RefPtr<WebCore::ResourceLoader>, WTF::IntHash<unsigned long>, WTF::HashTraits<unsigned long>, WTF::HashTraits<WTF::RefPtr<WebCore::ResourceLoader> > >::remove(unsigned long const&) + 164, name = 'WebThread'
* frame #0: 0x00000001854180f0 WebCore`WTF::HashMap<unsigned long, WTF::RefPtr<WebCore::ResourceLoader>, WTF::IntHash<unsigned long>, WTF::HashTraits<unsigned long>, WTF::HashTraits<WTF::RefPtr<WebCore::ResourceLoader> > >::remove(unsigned long const&) + 164
frame #1: 0x0000000185126e54 WebCore`WebCore::DocumentLoader::removeSubresourceLoader(WebCore::ResourceLoader*) + 40
frame #2: 0x00000001851292a0 WebCore`WebCore::ResourceLoader::cancel(WebCore::ResourceError const&) + 492
frame #3: 0x0000000185087764 WebCore`WebCore::ResourceLoader::init(WebCore::ResourceRequest const&) + 404
frame #4: 0x00000001850873fc WebCore`WebCore::SubresourceLoader::startLoading() + 36
frame #5: 0x000000018508735c WebCore`WebCore::ResourceLoadScheduler::servePendingRequests(WebCore::ResourceLoadScheduler::HostInformation*, WebCore::ResourceLoadPriority) + 516
frame #6: 0x00000001851070b8 WebCore`WebCore::ResourceLoadScheduler::servePendingRequests(WebCore::ResourceLoadPriority) + 412
frame #7: 0x0000000185079f1c WebCore`WebCore::ThreadTimers::sharedTimerFiredInternal() + 148
frame #8: 0x0000000185079e5c WebCore`WebCore::timerFired(__CFRunLoopTimer*, void*) + 36
frame #9: 0x00000001811c1794 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 28
frame #10: 0x00000001811c1438 CoreFoundation`__CFRunLoopDoTimer + 884
frame #11: 0x00000001811beb4c CoreFoundation`__CFRunLoopRun + 1520
frame #12: 0x00000001810e8c50 CoreFoundation`CFRunLoopRunSpecific + 384
frame #13: 0x00000001850da108 WebCore`RunWebThread(void*) + 456
frame #14: 0x0000000180e6fb28 libsystem_pthread.dylib`_pthread_body + 156
frame #15: 0x0000000180e6fa8c libsystem_pthread.dylib`_pthread_start + 156
frame #16: 0x0000000180e6d028 libsystem_pthread.dylib`thread_start + 4
ADD: JavaScriptCore :: Marking thread
* thread #20: tid = 0x58076d, 0x0000000180da3f24 libsystem_kernel.dylib`__psynch_cvwait + 8, name = 'JavaScriptCore::Marking'
* frame #0: 0x0000000180da3f24 libsystem_kernel.dylib`__psynch_cvwait + 8
frame #1: 0x0000000180e6ece8 libsystem_pthread.dylib`_pthread_cond_wait + 648
frame #2: 0x00000001807fb42c libc++.1.dylib`std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 56
frame #3: 0x0000000184bc0d5c JavaScriptCore`JSC::GCThread::waitForNextPhase() + 144
frame #4: 0x0000000184bc0df4 JavaScriptCore`JSC::GCThread::gcThreadMain() + 84
frame #5: 0x0000000184896614 JavaScriptCore`WTF::threadEntryPoint(void*) + 212
frame #6: 0x0000000184896524 JavaScriptCore`WTF::wtfThreadEntryPoint(void*) + 24
frame #7: 0x0000000180e6fb28 libsystem_pthread.dylib`_pthread_body + 156
frame #8: 0x0000000180e6fa8c libsystem_pthread.dylib`_pthread_start + 156
frame #9: 0x0000000180e6d028 libsystem_pthread.dylib`thread_start + 4

iOS App crashes only when attached to the debugger

i have an issue where my app crashes when attached to the debugger in just one case. My App downloads json data and transform it into core data objects. For this purpose i start a background thread to load it and have a successHandler handling the import:
RemoteConnectionService.sharedInstance.sendRequest(UserRequest(userID: user!.webID.integerValue), successHandler: { requestHandler, result in
var userData = result["user"] as! [String: AnyObject]
self.user?.update(userData)
self.tableView.reloadData()
}, errorHandler: nil)
this works everywhere as expected. the successHandler is called on the main thread, core data gets updated and all. but when doing this special request (it happens always and only with this request) Xcode stop pointing to
class AppDelegate: UIResponder, UIApplicationDelegate
with no specific failure reason. here's the backtrace (via bt):
* thread #1: tid = 0x6ab4b, 0x00000001051b19c0 libobjc.A.dylib`objc_release + 16, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT)
frame #0: 0x00000001051b19c0 libobjc.A.dylib`objc_release + 16
frame #1: 0x00000001051b28cd libobjc.A.dylib`(anonymous namespace)::AutoreleasePoolPage::pop(void*) + 591
frame #2: 0x00000001082348d8 CFNetwork`-[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:] + 207
frame #3: 0x0000000108234a37 CFNetwork`-[NSURLConnectionInternal _withActiveConnectionAndDelegate:] + 48
frame #4: 0x00000001081043a7 CFNetwork`___ZN27URLConnectionClient_Classic26_delegate_didFinishLoadingEU13block_pointerFvvE_block_invoke + 107
frame #5: 0x00000001081d1891 CFNetwork`___ZN27URLConnectionClient_Classic18_withDelegateAsyncEPKcU13block_pointerFvP16_CFURLConnectionPK33CFURLConnectionClientCurrent_VMaxE_block_invoke_2 + 273
frame #6: 0x00000001080ef6e6 CFNetwork`RunloopBlockContext::_invoke_block(void const*, void*) + 72
frame #7: 0x00000001057c13d4 CoreFoundation`CFArrayApplyFunction + 68
frame #8: 0x00000001080ef5a7 CFNetwork`RunloopBlockContext::perform() + 133
frame #9: 0x00000001080ef3e6 CFNetwork`MultiplexerSource::perform() + 256
frame #10: 0x00000001080ef1fc CFNetwork`MultiplexerSource::_perform(void*) + 72
frame #11: 0x00000001057ee4b1 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
frame #12: 0x00000001057e437d CoreFoundation`__CFRunLoopDoSources0 + 269
frame #13: 0x00000001057e39b4 CoreFoundation`__CFRunLoopRun + 868
frame #14: 0x00000001057e33e6 CoreFoundation`CFRunLoopRunSpecific + 470
frame #15: 0x000000010abdba3e GraphicsServices`GSEventRunModal + 161
frame #16: 0x00000001063cab60 UIKit`UIApplicationMain + 1282
* frame #17: 0x00000001049556b7 App`main + 135 at AppDelegate.swift:13
frame #18: 0x00000001088fd145 libdyld.dylib`start + 1
What i don't get here is that when trying to profile it in instruments or just running it in the simulator without Xcode it works just fine. On the device it crashes on that particular request no matter what.
device backtrace looks a bit different:
* thread #1: tid = 0x19e6ab, 0x0000000192490174 libobjc.A.dylib`objc_release + 20, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x13723bec8)
frame #0: 0x0000000192490174 libobjc.A.dylib`objc_release + 20
frame #1: 0x0000000192491724 libobjc.A.dylib`(anonymous namespace)::AutoreleasePoolPage::pop(void*) + 564
frame #2: 0x00000001817d2e08 CFNetwork`-[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:] + 216
frame #3: 0x00000001817d2f7c CFNetwork`-[NSURLConnectionInternal _withActiveConnectionAndDelegate:] + 60
frame #4: 0x00000001816a78e4 CFNetwork`___ZN27URLConnectionClient_Classic26_delegate_didFinishLoadingEU13block_pointerFvvE_block_invoke + 104
frame #5: 0x0000000181770540 CFNetwork`___ZN27URLConnectionClient_Classic18_withDelegateAsyncEPKcU13block_pointerFvP16_CFURLConnectionPK33CFURLConnectionClientCurrent_VMaxE_block_invoke_2 + 104
frame #6: 0x0000000181693b54 CFNetwork`RunloopBlockContext::_invoke_block(void const*, void*) + 76
frame #7: 0x0000000181c10aac CoreFoundation`CFArrayApplyFunction + 68
frame #8: 0x0000000181693a00 CFNetwork`RunloopBlockContext::perform() + 136
frame #9: 0x00000001816938b4 CFNetwork`MultiplexerSource::perform() + 312
frame #10: 0x00000001816936e0 CFNetwork`MultiplexerSource::_perform(void*) + 68
frame #11: 0x0000000181ce69ec CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
frame #12: 0x0000000181ce5c90 CoreFoundation`__CFRunLoopDoSources0 + 264
frame #13: 0x0000000181ce3d40 CoreFoundation`__CFRunLoopRun + 712
frame #14: 0x0000000181c110a4 CoreFoundation`CFRunLoopRunSpecific + 396
frame #15: 0x000000018adab5a4 GraphicsServices`GSEventRunModal + 168
frame #16: 0x0000000186542aa4 UIKit`UIApplicationMain + 1488
* frame #17: 0x0000000100069c8c App`main + 164 at AppDelegate.swift:13
frame #18: 0x0000000192ae6a08 libdyld.dylib`start + 4
Any suggestions on how to debug this? Very much appreciated :)

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