RuntimeError: Unknown IValue type for pickling: Device - save

i want convert pytorch model to torchscript, the model is a pytorch LSTM module.
step 1: score_pos is normal as expected
step 2: convert to torchscript module
step 3: the score score_pos_scripted run by scripted module is same with score_pos but with wrong order
step 4: save torchscript module error!
# result is right
score_pos = model(src, src_len, trg_pos, trg_len_pos)
scripted_model = torch.jit.script(model)
score_pos_scripted = scripted_model(src, src_len, trg_pos, trg_len_pos)
# error
scripted_model.save("dual_encoder_scripted.pt")
the error message(my pytorch version:1.3.1):
RuntimeError: Unknown IValue type for pickling: Device (pushIValueImpl at /pytorch/torch/csrc/jit/pickler.cpp:125)
frame #0: c10::Error::Error(c10::SourceLocation, std::string const&) + 0x33 (0x7fa8194cd813 in /mnt/d/anaconda3/lib/python3.6/site-packages/torch/lib/libc10.so)
frame #1: <unknown function> + 0x3e1de5e (0x7fa7c5076e5e in /mnt/d/anaconda3/lib/python3.6/site-packages/torch/lib/libtorch.so)
frame #2: <unknown function> + 0x3e1e11b (0x7fa7c507711b in /mnt/d/anaconda3/lib/python3.6/site-packages/torch/lib/libtorch.so)
frame #3: <unknown function> + 0x3e1da36 (0x7fa7c5076a36 in /mnt/d/anaconda3/lib/python3.6/site-packages/torch/lib/libtorch.so)
frame #4: <unknown function> + 0x3e1e13b (0x7fa7c507713b in /mnt/d/anaconda3/lib/python3.6/site-packages/torch/lib/libtorch.so)
frame #5: <unknown function> + 0x3e1da36 (0x7fa7c5076a36 in /mnt/d/anaconda3/lib/python3.6/site-packages/torch/lib/libtorch.so)
frame #6: <unknown function> + 0x3e1e13b (0x7fa7c507713b in /mnt/d/anaconda3/lib/python3.6/site-packages/torch/lib/libtorch.so)
frame #7: <unknown function> + 0x411f045 (0x7fa7c5378045 in /mnt/d/anaconda3/lib/python3.6/site-packages/torch/lib/libtorch.so)
frame #8: <unknown function> + 0x4126df6 (0x7fa7c537fdf6 in /mnt/d/anaconda3/lib/python3.6/site-packages/torch/lib/libtorch.so)
frame #9: torch::jit::ExportModule(torch::jit::script::Module const&, std::string const&, std::unordered_map<std::string, std::string, std::hash<std::string>, std::equal_to<std::string>, std::allocator<std::pair<std::string const, std::string> > > const&, bool) + 0x20d (0x7fa7c538291d in /mnt/d/anaconda3/lib/python3.6/site-packages/torch/lib/libtorch.so)
frame #10: <unknown function> + 0x57b95f (0x7fa819eaf95f in /mnt/d/anaconda3/lib/python3.6/site-packages/torch/lib/libtorch_python.so)
frame #11: <unknown function> + 0x211014 (0x7fa819b45014 in /mnt/d/anaconda3/lib/python3.6/site-packages/torch/lib/libtorch_python.so)
frame #12: _PyCFunction_FastCallDict + 0x154 (0x7fa83a30eb94 in /mnt/d/anaconda3/bin/python)
frame #13: _PyObject_FastCallDict + 0x2bf (0x7fa83a30efaf in /mnt/d/anaconda3/bin/python)
frame #14: _PyObject_Call_Prepend + 0x63 (0x7fa83a313a03 in /mnt/d/anaconda3/bin/python)
frame #15: PyObject_Call + 0x3e (0x7fa83a30e99e in /mnt/d/anaconda3/bin/python)
frame #16: _PyEval_EvalFrameDefault + 0x1ab0 (0x7fa83a3c2470 in /mnt/d/anaconda3/bin/python)
frame #17: <unknown function> + 0x197a94 (0x7fa83a397a94 in /mnt/d/anaconda3/bin/python)
frame #18: <unknown function> + 0x198941 (0x7fa83a398941 in /mnt/d/anaconda3/bin/python)
frame #19: <unknown function> + 0x19e755 (0x7fa83a39e755 in /mnt/d/anaconda3/bin/python)
frame #20: _PyEval_EvalFrameDefault + 0x2fa (0x7fa83a3c0cba in /mnt/d/anaconda3/bin/python)
frame #21: PyEval_EvalCodeEx + 0x329 (0x7fa83a399459 in /mnt/d/anaconda3/bin/python)
frame #22: PyEval_EvalCode + 0x1c (0x7fa83a39a1ec in /mnt/d/anaconda3/bin/python)
frame #23: <unknown function> + 0x1be6cb (0x7fa83a3be6cb in /mnt/d/anaconda3/bin/python)
frame #24: _PyCFunction_FastCallDict + 0x91 (0x7fa83a30ead1 in /mnt/d/anaconda3/bin/python)
frame #25: <unknown function> + 0x19e860 (0x7fa83a39e860 in /mnt/d/anaconda3/bin/python)
frame #26: _PyEval_EvalFrameDefault + 0x2fa (0x7fa83a3c0cba in /mnt/d/anaconda3/bin/python)
frame #27: <unknown function> + 0x197a94 (0x7fa83a397a94 in /mnt/d/anaconda3/bin/python)
frame #28: <unknown function> + 0x198941 (0x7fa83a398941 in /mnt/d/anaconda3/bin/python)
frame #29: <unknown function> + 0x19e755 (0x7fa83a39e755 in /mnt/d/anaconda3/bin/python)
frame #30: _PyEval_EvalFrameDefault + 0x2fa (0x7fa83a3c0cba in /mnt/d/anaconda3/bin/python)
frame #31: <unknown function> + 0x197a94 (0x7fa83a397a94 in /mnt/d/anaconda3/bin/python)
frame #32: <unknown function> + 0x198941 (0x7fa83a398941 in /mnt/d/anaconda3/bin/python)
frame #33: <unknown function> + 0x19e755 (0x7fa83a39e755 in /mnt/d/anaconda3/bin/python)
frame #34: _PyEval_EvalFrameDefault + 0x2fa (0x7fa83a3c0cba in /mnt/d/anaconda3/bin/python)
frame #35: <unknown function> + 0x19870b (0x7fa83a39870b in /mnt/d/anaconda3/bin/python)
frame #36: <unknown function> + 0x19e755 (0x7fa83a39e755 in /mnt/d/anaconda3/bin/python)
frame #37: _PyEval_EvalFrameDefault + 0x2fa (0x7fa83a3c0cba in /mnt/d/anaconda3/bin/python)
frame #38: PyEval_EvalCodeEx + 0x329 (0x7fa83a399459 in /mnt/d/anaconda3/bin/python)
frame #39: PyEval_EvalCode + 0x1c (0x7fa83a39a1ec in /mnt/d/anaconda3/bin/python)
frame #40: <unknown function> + 0x2149a4 (0x7fa83a4149a4 in /mnt/d/anaconda3/bin/python)
frame #41: PyRun_FileExFlags + 0xa1 (0x7fa83a414da1 in /mnt/d/anaconda3/bin/python)
frame #42: PyRun_SimpleFileExFlags + 0x1c4 (0x7fa83a414fa4 in /mnt/d/anaconda3/bin/python)
frame #43: Py_Main + 0x63e (0x7fa83a418a9e in /mnt/d/anaconda3/bin/python)
frame #44: main + 0xee (0x7fa83a2e04be in /mnt/d/anaconda3/bin/python)
frame #45: __libc_start_main + 0xe7 (0x7fa839801b97 in /lib/x86_64-linux-gnu/libc.so.6)
frame #46: <unknown function> + 0x1c7773 (0x7fa83a3c7773 in /mnt/d/anaconda3/bin/python)
can somebody help me about step 2 and step 4 error?

I had a similar error in 1.4.0 and it is gone after upgrading to 1.8.1. The release notes for 1.8.0 reference PR #46441 which
adds hashing for many other types including Tuple , bool , device by implementing generic hashing on IValue
I believe this is the improvement that resolved the root issue

Related

EAGLContext presentRenderbuffer cause deadlock

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

All exception breakpoint can't catch objc_exception_throw

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!

How to fix MP3AudioStream error?

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?

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.

iOS crash on mapview CGLocation

I had this crash occurs while testing the map using Xcode 4.3.2; targeting iOS 5.1, below is the backtrace :
(lldb) bt all
* thread #1: tid = 0x1f03, 0x026edcaa libobjc.A.dylib`objc_exception_throw, stop reason = breakpoint 1.3
frame #0: 0x026edcaa libobjc.A.dylib`objc_exception_throw
frame #1: 0x029da644 CoreFoundation`-[__NSArrayI objectAtIndex:] + 196
frame #2: 0x000f21fb SubwayDA`-[LocationsMapSubviewController mapView:annotationView:calloutAccessoryControlTapped:] + 699 at LocationsMapSubviewController.m:174
frame #3: 0x00073b27 SubwayDA`-[CalloutMapAnnotationView calloutAccessoryTapped:] + 263 at CalloutMapAnnotationView.m:382
frame #4: 0x029efe99 CoreFoundation`-[NSObject performSelector:withObject:withObject:] + 73
frame #5: 0x00f1514e UIKit`-[UIApplication sendAction:to:from:forEvent:] + 96
frame #6: 0x00f150e6 UIKit`-[UIApplication sendAction:toTarget:fromSender:forEvent:] + 61
frame #7: 0x00fbbade UIKit`-[UIControl sendAction:to:forEvent:] + 66
frame #8: 0x00fbbfa7 UIKit`-[UIControl(Internal) _sendActionsForEvents:withEvent:] + 503
frame #9: 0x00fba1f8 UIKit`-[UIControl cancelTrackingWithEvent:] + 142
frame #10: 0x00fba0b9 UIKit`-[UIControl cancelTouchTracking] + 65
frame #11: 0x00fbb47b UIKit`-[UIControl _didMoveFromWindow:toWindow:] + 109
frame #12: 0x00f4dedb UIKit`-[UIView(Internal) _didMoveFromWindow:toWindow:] + 479
frame #13: 0x00f4a692 UIKit`-[UIView(Hierarchy) _postMovedFromSuperview:] + 158
frame #14: 0x00f48ee6 UIKit`__UIViewWasRemovedFromSuperview + 140
frame #15: 0x00f48b61 UIKit`-[UIView(Hierarchy) removeFromSuperview] + 176
frame #16: 0x00caaa83 MapKit`MKLongHash + 38425
frame #17: 0x00caa91c MapKit`MKLongHash + 38066
frame #18: 0x00caa620 MapKit`MKLongHash + 37302
frame #19: 0x00caa6b5 MapKit`MKLongHash + 37451
frame #20: 0x00c98370 MapKit
frame #21: 0x000f3615 SubwayDA`-[LocationsMapSubviewController updateMapWithSpan:centered:] + 293 at LocationsMapSubviewController.m:304
frame #22: 0x000f9f5e SubwayDA`-[LocationsViewController DidFCPositionUpdateFinished] + 94 at LocationsViewController.m:570
frame #23: 0x029efdea CoreFoundation`-[NSObject performSelector:] + 58
frame #24: 0x00080904 SubwayDA`-[ModelDataServerSynchronizer callSuccesfulDelegate] + 228 at ModelDataServerSynchronizer.m:1031
frame #25: 0x000807f6 SubwayDA`-[ModelDataServerSynchronizer CallDelegates] + 134 at ModelDataServerSynchronizer.m:1015
frame #26: 0x0007b12f SubwayDA`-[ModelDataServerSynchronizer DidUpdateAllFCPositions:] + 751 at ModelDataServerSynchronizer.m:542
frame #27: 0x00079e1d SubwayDA`-[ModelDataServerSynchronizer requestFinished:] + 429 at ModelDataServerSynchronizer.m:346
frame #28: 0x029efe42 CoreFoundation`-[NSObject performSelector:withObject:] + 66
frame #29: 0x0008b8f6 SubwayDA`-[RestDataService requestFinished:] + 1766 at RestDataService.m:350
frame #30: 0x029efe42 CoreFoundation`-[NSObject performSelector:withObject:] + 66
frame #31: 0x00031eeb SubwayDA`-[ASIHTTPRequest reportFinished] + 171 at ASIHTTPRequest.m:2019
frame #32: 0x029efe42 CoreFoundation`-[NSObject performSelector:withObject:] + 66
frame #33: 0x018389df Foundation`__NSThreadPerformPerform + 254
frame #34: 0x029c294f CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
frame #35: 0x02925b43 CoreFoundation`__CFRunLoopDoSources0 + 243
frame #36: 0x02925424 CoreFoundation`__CFRunLoopRun + 1012
frame #37: 0x02924d84 CoreFoundation`CFRunLoopRunSpecific + 212
frame #38: 0x02924c9b CoreFoundation`CFRunLoopRunInMode + 123
frame #39: 0x02df17d8 GraphicsServices`GSEventRunModal + 190
frame #40: 0x02df188a GraphicsServices`GSEventRun + 103
frame #41: 0x00f12626 UIKit`UIApplicationMain + 1163
frame #42: 0x0000269d SubwayDA`main + 125 at main.m:12
thread #3: tid = 0x2403, 0x980b990a libsystem_kernel.dylib`kevent + 10
frame #0: 0x980b990a libsystem_kernel.dylib`kevent + 10
frame #1: 0x02d97372 libdispatch.dylib`_dispatch_mgr_invoke + 918
frame #2: 0x02d95be1 libdispatch.dylib`_dispatch_mgr_thread + 53
thread #5: tid = 0x2603, 0x980b6c22 libsystem_kernel.dylib`mach_msg_trap + 10
frame #0: 0x980b6c22 libsystem_kernel.dylib`mach_msg_trap + 10
frame #1: 0x980b61f6 libsystem_kernel.dylib`mach_msg + 70
frame #2: 0x029c210a CoreFoundation`__CFRunLoopServiceMachPort + 186
frame #3: 0x029255d5 CoreFoundation`__CFRunLoopRun + 1445
frame #4: 0x02924d84 CoreFoundation`CFRunLoopRunSpecific + 212
frame #5: 0x02924c9b CoreFoundation`CFRunLoopRunInMode + 123
frame #6: 0x06ef9420 WebCore`_ZL12RunWebThreadPv + 560
frame #7: 0x9b2c3ed9 libsystem_c.dylib`_pthread_start + 335
thread #9: tid = 0x2a03, 0x980b6c22 libsystem_kernel.dylib`mach_msg_trap + 10
frame #0: 0x980b6c22 libsystem_kernel.dylib`mach_msg_trap + 10
frame #1: 0x980b61f6 libsystem_kernel.dylib`mach_msg + 70
frame #2: 0x029c210a CoreFoundation`__CFRunLoopServiceMachPort + 186
frame #3: 0x029255d5 CoreFoundation`__CFRunLoopRun + 1445
frame #4: 0x02924d84 CoreFoundation`CFRunLoopRunSpecific + 212
frame #5: 0x02924c9b CoreFoundation`CFRunLoopRunInMode + 123
frame #6: 0x01912e30 Foundation`+[NSURLConnection(Loader) _resourceLoadLoop:] + 398
frame #7: 0x018244d6 Foundation`-[NSThread main] + 76
frame #8: 0x01824447 Foundation`__NSThread__main__ + 1258
frame #9: 0x9b2c3ed9 libsystem_c.dylib`_pthread_start + 335
thread #10: tid = 0x2b03, 0x980b902e libsystem_kernel.dylib`__workq_kernreturn + 10
frame #0: 0x980b902e libsystem_kernel.dylib`__workq_kernreturn + 10
frame #1: 0x9b2c5ccf libsystem_c.dylib`_pthread_wqthread + 773
thread #13: tid = 0x2e03, 0x980b902e libsystem_kernel.dylib`__workq_kernreturn + 10
frame #0: 0x980b902e libsystem_kernel.dylib`__workq_kernreturn + 10
frame #1: 0x9b2c5ccf libsystem_c.dylib`_pthread_wqthread + 773
thread #14: tid = 0x2f03, 0x980b8b42 libsystem_kernel.dylib`select$DARWIN_EXTSN + 10
frame #0: 0x980b8b42 libsystem_kernel.dylib`select$DARWIN_EXTSN + 10
frame #1: 0x029567cb CoreFoundation`__CFSocketManager + 939
frame #2: 0x9b2c3ed9 libsystem_c.dylib`_pthread_start + 335
thread #15: tid = 0x3003, 0x980b6c22 libsystem_kernel.dylib`mach_msg_trap + 10
frame #0: 0x980b6c22 libsystem_kernel.dylib`mach_msg_trap + 10
frame #1: 0x980b61f6 libsystem_kernel.dylib`mach_msg + 70
frame #2: 0x029c210a CoreFoundation`__CFRunLoopServiceMachPort + 186
frame #3: 0x029255d5 CoreFoundation`__CFRunLoopRun + 1445
frame #4: 0x02924d84 CoreFoundation`CFRunLoopRunSpecific + 212
frame #5: 0x02926e81 CoreFoundation`CFRunLoopRun + 129
frame #6: 0x000416ef SubwayDA`+[ASIHTTPRequest runRequests] + 223 at ASIHTTPRequest.m:4793
frame #7: 0x018244d6 Foundation`-[NSThread main] + 76
frame #8: 0x01824447 Foundation`__NSThread__main__ + 1258
frame #9: 0x9b2c3ed9 libsystem_c.dylib`_pthread_start + 335
thread #16: tid = 0x3103, 0x980b6c22 libsystem_kernel.dylib`mach_msg_trap + 10
frame #0: 0x980b6c22 libsystem_kernel.dylib`mach_msg_trap + 10
frame #1: 0x980b61f6 libsystem_kernel.dylib`mach_msg + 70
frame #2: 0x029c210a CoreFoundation`__CFRunLoopServiceMachPort + 186
frame #3: 0x029255d5 CoreFoundation`__CFRunLoopRun + 1445
frame #4: 0x02924d84 CoreFoundation`CFRunLoopRunSpecific + 212
frame #5: 0x02924c9b CoreFoundation`CFRunLoopRunInMode + 123
frame #6: 0x00ca086b MapKit`MKNormalizedPointForLayer + 30057
frame #7: 0x018244d6 Foundation`-[NSThread main] + 76
frame #8: 0x01824447 Foundation`__NSThread__main__ + 1258
frame #9: 0x9b2c3ed9 libsystem_c.dylib`_pthread_start + 335
thread #17: tid = 0x3203, 0x980b6c76 libsystem_kernel.dylib`semaphore_timedwait_trap + 10
frame #0: 0x980b6c76 libsystem_kernel.dylib`semaphore_timedwait_trap + 10
frame #1: 0x02d990ad libdispatch.dylib`_dispatch_semaphore_wait_slow + 247
frame #2: 0x02d990fa libdispatch.dylib`dispatch_semaphore_wait + 36
frame #3: 0x0080bac3 CoreLocation`CLClientInvokeCallback(__CLClient*, CLClientEvent, __CFDictionary const*) + 469
frame #4: 0x0080de18 CoreLocation`___CLClientCreateConnection_block_invoke_0 + 307
frame #5: 0x0084183d CoreLocation`__setDefaultMessageHandler_onQueue_block_invoke_0 + 76
frame #6: 0x0083ef01 CoreLocation`CLConnection::handleMessage(CLConnectionMessage*) + 75
frame #7: 0x0083eeb1 CoreLocation`__initializeConnection_nl_block_invoke_0 + 27
frame #8: 0x0083fc07 CoreLocation`__setEventHandler_block_invoke_0 + 286
frame #9: 0x02db4c84 libxpc.dylib`__XPC_CONNECTION_EVENT_HANDLER_CALLOUT__ + 52
frame #10: 0x02db70e3 libxpc.dylib`_xpc_connection_recv_message + 650
frame #11: 0x02db7b87 libxpc.dylib`_xpc_connection_wakeup_recv + 199
frame #12: 0x02db7a2e libxpc.dylib`_xpc_connection_wakeup2 + 1598
frame #13: 0x02db7c59 libxpc.dylib`_xpc_connection_wakeup + 101
frame #14: 0x02d9a450 libdispatch.dylib`_dispatch_source_invoke + 719
frame #15: 0x02d96cc4 libdispatch.dylib`_dispatch_queue_invoke + 66
frame #16: 0x02d96e50 libdispatch.dylib`_dispatch_queue_drain + 272
frame #17: 0x02d96cb4 libdispatch.dylib`_dispatch_queue_invoke + 50
frame #18: 0x02d96e50 libdispatch.dylib`_dispatch_queue_drain + 272
frame #19: 0x02d96cb4 libdispatch.dylib`_dispatch_queue_invoke + 50
frame #20: 0x02d96e50 libdispatch.dylib`_dispatch_queue_drain + 272
frame #21: 0x02d96cb4 libdispatch.dylib`_dispatch_queue_invoke + 50
frame #22: 0x02d96402 libdispatch.dylib`_dispatch_worker_thread2 + 247
frame #23: 0x9b2c5b24 libsystem_c.dylib`_pthread_wqthread + 346
thread #18: tid = 0x3303, 0x980b902e libsystem_kernel.dylib`__workq_kernreturn + 10
frame #0: 0x980b902e libsystem_kernel.dylib`__workq_kernreturn + 10
frame #1: 0x9b2c5ccf libsystem_c.dylib`_pthread_wqthread + 773
thread #19: tid = 0x3403, 0x980b902e libsystem_kernel.dylib`__workq_kernreturn + 10
frame #0: 0x980b902e libsystem_kernel.dylib`__workq_kernreturn + 10
frame #1: 0x9b2c5ccf libsystem_c.dylib`_pthread_wqthread + 773
(lldb)
any help to trace it or clue on what is on going on would be appreciated ?
Thanks in advance,

Resources