I recently get a strange problem, exception breakpoint can't catch objc_exception_throw. In this case, I can't locate where is the problem? Follow is stack strace:
(lldb) bt
* thread #7: tid = 0x40df6f, 0x00000001097a9b8a libobjc.A.dylib`objc_exception_throw, name = 'com.apple.NSURLConnectionLoader', stop reason = breakpoint 1.3 2.2
* frame #0: 0x00000001097a9b8a libobjc.A.dylib`objc_exception_throw
frame #1: 0x0000000109b749ad CoreFoundation`+[NSException raise:format:] + 205
frame #2: 0x00000001091abab7 Foundation`NSRequestConcreteImplementation + 240
frame #3: 0x00000001091b2da2 Foundation`-[NSStream(NSStream) streamStatus] + 39
frame #4: 0x0000000107ab011d CFNetwork`HTTPProtocol::useNetStreamInfoForRequest(MetaNetStreamInfo*, HTTPRequestMessage const*, unsigned char) + 311
frame #5: 0x0000000107abc561 CFNetwork`HTTPConnectionCacheEntry::dispatchConnectionToProtocol(HTTPNetConnection*, HTTPConnectionCacheEnqueuedRequestInfo*, unsigned char) + 265
frame #6: 0x0000000107abb67a CFNetwork`HTTPConnectionCacheEntry::ingestTube(Tube*) + 728
frame #7: 0x0000000107abf0d1 CFNetwork`___ZN24HTTPConnectionCacheEntry12newTubeReadyEP4TubeP9__CFError_block_invoke + 26
frame #8: 0x00000001079f7d16 CFNetwork`RunloopBlockContext::_invoke_block(void const*, void*) + 72
frame #9: 0x0000000109a7cb44 CoreFoundation`CFArrayApplyFunction + 68
frame #10: 0x00000001079f7bd7 CFNetwork`RunloopBlockContext::perform() + 133
frame #11: 0x00000001079f7a16 CFNetwork`MultiplexerSource::perform() + 256
frame #12: 0x00000001079f782c CFNetwork`MultiplexerSource::_perform(void*) + 72
frame #13: 0x0000000109aa9c91 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
frame #14: 0x0000000109a9fb5d CoreFoundation`__CFRunLoopDoSources0 + 269
frame #15: 0x0000000109a9f194 CoreFoundation`__CFRunLoopRun + 868
frame #16: 0x0000000109a9ebc6 CoreFoundation`CFRunLoopRunSpecific + 470
frame #17: 0x0000000107a7d250 CFNetwork`+[NSURLConnection(Loader) _resourceLoadLoop:] + 434
frame #18: 0x00000001091201dd Foundation`__NSThread__main__ + 1194
frame #19: 0x000000010a874268 libsystem_pthread.dylib`_pthread_body + 131
frame #20: 0x000000010a8741e5 libsystem_pthread.dylib`_pthread_start + 176
frame #21: 0x000000010a87241d libsystem_pthread.dylib`thread_start + 13
Any suggestion will be appreciation!
Related
I use openGLES in my IOS app. The deadlock occurs in some case. The deadlocked Threads are as following. It seem The EAGLContext presentRenderbuffer cause semaphore::wait() in the sync queue 'gputools.DYSharedMemoryTransport.0x109700000.send', then the main thread reach to wait the same queue, this is deadlock. My question is how EAGLContext presentRenderbuffer cause that wait semaphore::wait()?
thread #1, queue = 'com.apple.main-thread'
frame #0: 0x00000001a6c788b0 libsystem_kernel.dylib`__ulock_wait + 8
frame #1: 0x000000010915b720 libdispatch.dylib`_dlock_wait + 52
frame #2: 0x000000010915b504 libdispatch.dylib`_dispatch_thread_event_wait_slow + 48
frame #3: 0x0000000109169c60 libdispatch.dylib`__DISPATCH_WAIT_FOR_QUEUE__ + 340
frame #4: 0x0000000109169694 libdispatch.dylib`_dispatch_sync_f_slow + 176
frame #5: 0x0000000109389284 GPUToolsCore`-[DYTransport send:inReplyTo:error:replyQueue:timeout:handler:] + 556
frame #6: 0x00000001093759e0 GPUToolsCore`-[DYSharedMemoryTransport send:inReplyTo:error:replyQueue:timeout:handler:] + 232
frame #7: 0x00000001a6e52094 CoreFoundation`__NSARRAY_IS_CALLING_OUT_TO_A_BLOCK__ + 16
frame #8: 0x00000001a6d5566c CoreFoundation`-[__NSArrayM enumerateObjectsWithOptions:usingBlock:] + 192
frame #9: 0x0000000109381a60 GPUToolsCore`CADisplayLink_initWithDisplayLink(CADisplayLink*, objc_selector*, void*) + 240
frame #10: 0x00000001ad6a7fdc QuartzCore`+[CADisplayLink(CADisplayLinkPrivate) displayLinkWithDisplay:target:selector:] + 276
frame #11: 0x0000000109381fd4 GPUToolsCore`CADisplayLink_displayLinkWithDisplay_target_selector(objc_class*, objc_selector*, CADisplay*, objc_object*, objc_selector*) + 112
frame #12: 0x00000001aae4b8ec UIKitCore`-[_UITouchForceObservable receiveObservedValue:] + 164
frame #13: 0x00000001aaa65444 UIKitCore`-[UIGestureRecognizer _updateForceClassifierWithEvent:] + 72
frame #14: 0x00000001aaa655a0 UIKitCore`-[UIGestureRecognizer _touchesBegan:withEvent:] + 232
frame #15: 0x00000001aaeddda8 UIKitCore`-[UITouchesEvent _sendEventToGestureRecognizer:] + 360
frame #16: 0x00000001aaa5b7f8 UIKitCore`__47-[UIGestureEnvironment _updateForEvent:window:]_block_invoke + 68
frame #17: 0x00000001aaa5b8f4 UIKitCore`-[UIGestureEnvironment _deliverEvent:toGestureRecognizers:usingBlock:] + 216
frame #18: 0x00000001aaa5b77c UIKitCore`-[UIGestureEnvironment _updateForEvent:window:] + 204
frame #19: 0x00000001aae9d238 UIKitCore`-[UIWindow sendEvent:] + 3324
frame #20: 0x00000001aae79f64 UIKitCore`-[UIApplication sendEvent:] + 336
frame #21: 0x00000001aaef0868 UIKitCore`__dispatchPreprocessedEventFromEventQueue + 5880
frame #22: 0x00000001aaef2dc4 UIKitCore`__handleEventQueueInternal + 4924
frame #23: 0x00000001aaeebc38 UIKitCore`__handleHIDEventFetcherDrain + 108
frame #24: 0x00000001a6dfd090 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
frame #25: 0x00000001a6dfcfe8 CoreFoundation`__CFRunLoopDoSource0 + 80
frame #26: 0x00000001a6dfc780 CoreFoundation`__CFRunLoopDoSources0 + 180
frame #27: 0x00000001a6df78cc CoreFoundation`__CFRunLoopRun + 1080
frame #28: 0x00000001a6df716c CoreFoundation`CFRunLoopRunSpecific + 464
frame #29: 0x00000001b0c2f328 GraphicsServices`GSEventRunModal + 104
frame #30: 0x00000001aae61d0c UIKitCore`UIApplicationMain + 1936
frame #31: 0x00000001046d4e00 BAvatar`main(argc=1, argv=0x000000016bc0f7b0) at main.m:14:16
frame #32: 0x00000001a6c82424 libdyld.dylib`start + 4
thread #91
frame #0: 0x00000001a6c56630 libsystem_kernel.dylib`semaphore_wait_trap + 8
frame #1: 0x00000001c9d68864 caulk`caulk::mach::semaphore::wait() + 24
frame #2: 0x00000001c9d63538 caulk`caulk::semaphore::timed_wait(double) + 140
frame #3: 0x00000001c9d67220 caulk`caulk::concurrent::details::worker_thread::run() + 40
frame #4: 0x00000001c9d673b0 caulk`void* caulk::thread_proxy<std::__1::tuple<caulk::thread::attributes, void (caulk::concurrent::details::worker_thread::*)(), std::__1::tuple<caulk::concurrent::details::worker_thread*> > >(void*) + 56
frame #5: 0x00000001a6b9c1f0 libsystem_pthread.dylib`_pthread_start + 124
* thread #187, queue = 'gputools.DYSharedMemoryTransport.0x109700000.send'
frame #0: 0x00000001a6c78238 libsystem_kernel.dylib`__semwait_signal + 8
frame #1: 0x00000001a6ae5664 libsystem_c.dylib`nanosleep + 212
frame #2: 0x00000001a6ae553c libsystem_c.dylib`usleep + 64
frame #3: 0x0000000109376bac GPUToolsCore`-[DYSharedMemoryTransport _waitEAGAIN] + 40
frame #4: 0x0000000109398940 GPUToolsCore`-[DYBaseStreamTransport _writeBuffers:] + 232
frame #5: 0x0000000109398ed4 GPUToolsCore`-[DYBaseStreamTransport _sendMessage:error:] + 476
frame #6: 0x0000000109389408 GPUToolsCore`__63-[DYTransport send:inReplyTo:error:replyQueue:timeout:handler:]_block_invoke.153 + 100
frame #7: 0x000000010915ac88 libdispatch.dylib`_dispatch_client_callout + 16
frame #8: 0x0000000109169dcc libdispatch.dylib`_dispatch_sync_invoke_and_complete_recurse + 132
frame #9: 0x0000000109389284 GPUToolsCore`-[DYTransport send:inReplyTo:error:replyQueue:timeout:handler:] + 556
frame #10: 0x00000001093759e0 GPUToolsCore`-[DYSharedMemoryTransport send:inReplyTo:error:replyQueue:timeout:handler:] + 232
frame #11: 0x0000000106710470 libglInterpose.dylib`handle_frame_boundary + 456
frame #12: 0x00000001068ca0d8 libglInterpose.dylib`_EAGLContext_PresentInterposeCommon(EAGLContext*, unsigned int, unsigned long, double, bool () block_pointer) + 1012
frame #13: 0x00000001068c7ee4 libglInterpose.dylib`EAGLContext_presentRenderbuffer(EAGLContext*, objc_selector*, unsigned long) + 80```
EAGLContext is part of OpenGL, which is deprecated. You should switch to Metal on this link: https://developer.apple.com/documentation/coreimage/cicontext/1437609-init
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
When I click on any button my app crashes. It throws a lldb run time error. I printed the backtrace:
* thread #1: tid = 0x2aaf3, 0x000000018db701c0 libobjc.A.dylib`objc_exception_throw, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1 2.1
frame #0: 0x000000018db701c0 libobjc.A.dylib`objc_exception_throw
frame #1: 0x0000000181666bd4 CoreFoundation`-[NSException raise] + 12
frame #2: 0x0000000182124720 Foundation`-[NSObject(NSKeyValueCoding) setValue:forKey:] + 256
frame #3: 0x00000001815b25ec CoreFoundation`-[NSArray makeObjectsPerformSelector:] + 248
frame #4: 0x00000001849eadd0 UIKit`-[UINib instantiateWithOwner:options:] + 1232
frame #5: 0x000000018492f878 UIKit`-[UIViewController _loadViewFromNibNamed:bundle:] + 280
frame #6: 0x0000000184630488 UIKit`-[UIViewController loadViewIfRequired] + 88
frame #7: 0x00000001846303f4 UIKit`-[UIViewController view] + 32
frame #8: 0x00000001847dd868 UIKit`-[UINavigationController _startCustomTransition:] + 704
frame #9: 0x00000001846e7f54 UIKit`-[UINavigationController _startDeferredTransitionIfNeeded:] + 464
frame #10: 0x00000001846e7d24 UIKit`-[UINavigationController __viewWillLayoutSubviews] + 56
frame #11: 0x00000001846e7ca4 UIKit`-[UILayoutContainerView layoutSubviews] + 200
frame #12: 0x000000018462aff8 UIKit`-[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 348
frame #13: 0x000000018421c258 QuartzCore`-[CALayer layoutSublayers] + 184
frame #14: 0x0000000184216e20 QuartzCore`CA::Layer::layout_if_needed(CA::Transaction*) + 300
frame #15: 0x0000000184216cd8 QuartzCore`CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 32
frame #16: 0x0000000184216560 QuartzCore`CA::Context::commit_transaction(CA::Transaction*) + 280
frame #17: 0x0000000184216304 QuartzCore`CA::Transaction::commit() + 424
frame #18: 0x000000018420fc38 QuartzCore`CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 80
frame #19: 0x00000001816276a8 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
frame #20: 0x0000000181624930 CoreFoundation`__CFRunLoopDoObservers + 372
frame #21: 0x0000000181624cbc CoreFoundation`__CFRunLoopRun + 764
frame #22: 0x0000000181565c20 CoreFoundation`CFRunLoopRunSpecific + 452
frame #23: 0x000000018724dc0c GraphicsServices`GSEventRunModal + 168
frame #24: 0x0000000184696fdc UIKit`UIApplicationMain + 1156
* frame #25: 0x00000001001297a4 myapp`main(argc=1, argv=0x000000016fd33ca8) + 116 at main.m:16
frame #26: 0x000000018e163aa0 libdyld.dylib`start + 4
What does it mean?
This is your problem:
Foundation`-[NSObject(NSKeyValueCoding) setValue:forKey:]
because after this, is raised an Exception:
CoreFoundation`-[NSException raise] + 12
You are trying to set a value for a key in your object that could not exists or has some other problem.
P.S.: Update your answer with some relevant code so I can update my answer with more explanations.
I'm getting the following error randomly (and sometimes consistently on launch). It can happen when there are background threads and when there aren't and it seems to be a problem with the library so I'm having trouble tracking down the problem in my code. The breakpoint triggers on:
#0 0x07bb489b in MP3AudioStream::GeneratePackets(AudioFileStreamContinuation&) ()
and the backtrace is as follows:
* thread #1: tid = 0x1c03, 0x07bb489b AudioToolbox`MP3AudioStream::GeneratePackets(AudioFileStreamContinuation&) + 2843, stop reason = EXC_BAD_ACCESS (code=2, address=0x4)
frame #0: 0x07bb489b AudioToolbox`MP3AudioStream::GeneratePackets(AudioFileStreamContinuation&) + 2843
frame #1: 0x07b92535 AudioToolbox`AudioFileStreamWrapper::ParseBytes(unsigned long, void const*, unsigned long) + 181
frame #2: 0x07b8f41d AudioToolbox`AudioFileStreamParseBytes + 93
frame #3: 0x07f7a1be MediaToolbox`PushBytesThroughParser + 484
frame #4: 0x07f7a69a MediaToolbox`GetAudioFileStreamPacketAndFrameCount + 221
frame #5: 0x07f7c57e MediaToolbox`FigAudioFileStreamFormatReaderCopyProperty + 225
frame #6: 0x07f9bd1d MediaToolbox`FigPlaybackBossGetDuration + 165
frame #7: 0x07f9f75a MediaToolbox`FigPlaybackBossSetTimeWithRange + 192
frame #8: 0x07f66bef MediaToolbox`itemfig_rebuildRenderPipelinesAndBoss + 10196
frame #9: 0x07f63f01 MediaToolbox`playerfig_prepareWorkingItem2 + 117
frame #10: 0x07f5bdb9 MediaToolbox`playerfig_prepareWorkingItem + 88
frame #11: 0x07f6c536 MediaToolbox`itemfig_assetPropertyBatchLoaded_prepareWorkingItem + 125
frame #12: 0x01bc8758 CoreMedia`figDeferredNotificationRun + 69
frame #13: 0x01de4376 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 22
frame #14: 0x01de3e06 CoreFoundation`__CFRunLoopDoTimer + 534
frame #15: 0x01dcba82 CoreFoundation`__CFRunLoopRun + 1810
frame #16: 0x01dcaf44 CoreFoundation`CFRunLoopRunSpecific + 276
frame #17: 0x01dcae1b CoreFoundation`CFRunLoopRunInMode + 123
frame #18: 0x02afb7e3 GraphicsServices`GSEventRunModal + 88
frame #19: 0x02afb668 GraphicsServices`GSEventRun + 104
frame #20: 0x00330ffc UIKit`UIApplicationMain + 1211
frame #21: 0x00002a7d FMA`main(argc=1, argv=0xbffff3f0) + 141 at main.m:16
Has anyone had this error and does anyone know how I might go about fixing it?
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.