About the iOS10 API AVKeyPathFlattener crash - avplayer

recent I used AVPlayer to play while downloading, everything seems fine. Bug I found some crash about AVKeyPathFlattener on the other threads. I can't reproduce and don't know how to solve it. Can you please help me ? Thanks.
Here is the crash log:
#10 Thread
NSInternalInconsistencyException
An instance 0x170031fa0 of class AVKeyPathFlattener was deallocated while key value observers were still registered with it. Current observation info: <NSKeyValueObservationInfo 0x170432860> ( <NSKeyValueObservance 0x17404c660: Observer: 0x170269f80, Key path: operationCount, Options: <New: NO, Old: NO, Prior: NO> Context: 0x0, Property: 0x17404c510> )
0 CoreFoundation ___exceptionPreprocess + 124
1 libobjc.A.dylib objc_exception_throw + 56
2 CoreFoundation -[NSException initWithCoder:]
3 Foundation _NSKVODeallocate + 300
4 AVFoundation -[AVPlayerLayer _stopObservingPlayer:] + 244
5 libdispatch.dylib __dispatch_call_block_and_release + 24
6 libdispatch.dylib __dispatch_client_callout + 16
7 libdispatch.dylib __dispatch_queue_serial_drain + 928
8 libdispatch.dylib __dispatch_queue_invoke + 652
9 libdispatch.dylib __dispatch_queue_override_invoke + 360
10 libdispatch.dylib __dispatch_root_queue_drain + 572
11 libdispatch.dylib __dispatch_worker_thread3 + 124
12 libsystem_pthread.dylib _pthread_wqthread + 1288
13 libsystem_pthread.dylib start_wqthread + 4
#0 Thread
0 libsystem_platform.dylib 0x0000000181a916c0 OSAtomicEnqueue
1 CoreFoundation 0x00000001829b4770 __CFRelease
2 CoreText 0x0000000185674d8c TFont::~TFont()
3 CoreFoundation 0x00000001829b4358 __CFRelease
4 CoreText 0x000000018569df44 CTTateChuYokoRun::CloneRange(CTRun const*, CFRange, TRun::SubrangingStyle)
5 CoreText 0x000000018566c7b4 TFontCascade::~TFontCascade()
6 CoreText 0x0000000185669bf4 TGlyphEncoder::EncodeChars(CFRange, TAttributes const&, TGlyphList&, TGlyphEncoder::Fallbacks)
7 CoreText 0x00000001856693b4 TTypesetterAttrString::Initialize(__CFAttributedString const*)
8 CoreText 0x00000001856690cc TTypesetterAttrString::TTypesetterAttrString(__CFAttributedString const*)
9 CoreText 0x0000000185668fb4 CTLineCreateWithAttributedString
10 UIFoundation 0x0000000188828b18 ___NSStringDrawingEngine
11 UIFoundation 0x0000000188827acc -[NSString(NSExtendedStringDrawing) boundingRectWithSize:options:attributes:context:]
12 UIFoundation 0x0000000188825fec -[NSString(NSStringDrawing) sizeWithAttributes:]
13 MyApp 0x0000000100328240 -[ECAnalysisLyric analysisLyric:withMaxFont:orLyricData:twoline:] (ECAnalysisLyric.m:264)
14 MyApp 0x00000001002a8b34 -[ECArtworkViewController getLyricInfo:] (ECArtworkViewController.m:2685)
15 libdispatch.dylib 0x000000018188e1fc __dispatch_call_block_and_release
16 libdispatch.dylib 0x000000018188e1bc __dispatch_client_callout
17 libdispatch.dylib 0x0000000181892d68 _dispatch_main_queue_callback_4CF
18 CoreFoundation 0x00000001829b2810 _CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE
19 CoreFoundation 0x00000001829b03fc ___CFRunLoopRun
20 CoreFoundation 0x00000001828de2b8 CFRunLoopRunSpecific
21 GraphicsServices 0x0000000184392198 GSEventRunModal
22 UIKit 0x00000001889257fc -[UIApplication _run]
23 UIKit 0x0000000188920534 UIApplicationMain
24 MyApp 0x000000010040e04c main (main.m:14)
25 libdyld.dylib 0x00000001818c15b8 _start
#1Thread com.apple.uikit.eventfetch-thread
0 libsystem_kernel.dylib 0x00000001819b5188 mach_msg_trap
1 libsystem_kernel.dylib 0x00000001819b4ff8 mach_msg
2 CoreFoundation 0x00000001829b25d0 ___CFRunLoopServiceMachPort
3 CoreFoundation 0x00000001829b01ec ___CFRunLoopRun
4 CoreFoundation 0x00000001828de2b8 CFRunLoopRunSpecific
5 Foundation 0x000000018341b26c -[NSRunLoop(NSRunLoop) runMode:beforeDate:]
6 Foundation 0x000000018343bdd0 -[NSRunLoop(NSRunLoop) runUntilDate:]
7 UIKit 0x0000000189299c38 -[UIEventFetcher threadMain]
8 Foundation 0x0000000183518e68 _NSThread__start
9 libsystem_pthread.dylib 0x0000000181a99850 __pthread_body
10 libsystem_pthread.dylib 0x0000000181a99760 __pthread_body
#2 Thread
0 libsystem_kernel.dylib 0x00000001819b5188 mach_msg_trap
1 libsystem_kernel.dylib 0x00000001819b4ff8 mach_msg
2 CoreFoundation 0x00000001829b25d0 ___CFRunLoopServiceMachPort
3 CoreFoundation 0x00000001829b01ec ___CFRunLoopRun
4 CoreFoundation 0x00000001828de2b8 CFRunLoopRunSpecific
5 MyApp 0x00000001003de900 +[ASIHTTPRequest runRequests] (ASIHTTPRequest.m:4913)
6 Foundation 0x0000000183518e68 _NSThread__start
7 libsystem_pthread.dylib 0x0000000181a99850 __pthread_body
8 libsystem_pthread.dylib 0x0000000181a99760 __pthread_body
#3 com.apple.NSURLConnectionLoader
0 libsystem_kernel.dylib 0x00000001819b5188 mach_msg_trap
1 libsystem_kernel.dylib 0x00000001819b4ff8 mach_msg
2 CoreFoundation 0x00000001829b25d0 ___CFRunLoopServiceMachPort
3 CoreFoundation 0x00000001829b01ec ___CFRunLoopRun
4 CoreFoundation 0x00000001828de2b8 CFRunLoopRunSpecific
5 CFNetwork 0x00000001830e3a70 +[NSURLConnection(Loader) _resourceLoadLoop:]
6 Foundation 0x0000000183518e68 _NSThread__start
7 libsystem_pthread.dylib 0x0000000181a99850 __pthread_body
8 libsystem_pthread.dylib 0x0000000181a99760 __pthread_body
#4 AVAudioSession Notify Thread
0 libsystem_kernel.dylib 0x00000001819b5188 mach_msg_trap
1 libsystem_kernel.dylib 0x00000001819b4ff8 mach_msg
2 CoreFoundation 0x00000001829b25d0 ___CFRunLoopServiceMachPort
3 CoreFoundation 0x00000001829b01ec ___CFRunLoopRun
4 CoreFoundation 0x00000001828de2b8 CFRunLoopRunSpecific
5 AVFAudio 0x000000019c57fd24 GenericRunLoopThread::Entry(void*)
6 AVFAudio 0x000000019c5a5d9c CAPThread::Entry(CAPThread*)
7 libsystem_pthread.dylib 0x0000000181a99850 __pthread_body
8 libsystem_pthread.dylib 0x0000000181a99760 __pthread_body
#5 keep live
0 libsystem_kernel.dylib 0x00000001819d3314 __semwait_signal
1 libsystem_c.dylib 0x00000001818f125c nanosleep
2 Foundation 0x0000000183518118 +[NSThread sleepForTimeInterval:]
3 MyApp 0x00000001000ab03c -[EncoreProtoInterface run] (EncoreProtoInterface.mm:119)
4 Foundation 0x0000000183518e68 _NSThread__start
5 libsystem_pthread.dylib 0x0000000181a99850 __pthread_body
6 libsystem_pthread.dylib 0x0000000181a99760 __pthread_body
#6 com.apple.CFSocket.private
0 libsystem_kernel.dylib 0x00000001819d323c __select
1 CoreFoundation 0x00000001829b9468 ___CFSocketManager
2 libsystem_pthread.dylib 0x0000000181a99850 __pthread_body
3 libsystem_pthread.dylib 0x0000000181a99760 __pthread_body
#7 Thread
0 libsystem_kernel.dylib 0x00000001819b51dc semaphore_timedwait_trap
1 libdispatch.dylib 0x00000001818a0770 __dispatch_semaphore_wait_slow
2 libdispatch.dylib 0x000000018189f808 __dispatch_worker_thread
3 libsystem_pthread.dylib 0x0000000181a99850 __pthread_body
4 libsystem_pthread.dylib 0x0000000181a99760 __pthread_body
#8 Thread
0 libsystem_kernel.dylib 0x00000001819d3a88 __workq_kernreturn
1 libsystem_pthread.dylib 0x0000000181a97344 _pthread_wqthread
#9 Thread
0 libsystem_kernel.dylib 0x00000001819d2e1c __psynch_cvwait
1 libsystem_pthread.dylib 0x0000000181a989c0 __pthread_cond_wait
2 Foundation 0x00000001834f25c8 -[__NSOperationInternal _waitUntilFinished:]
3 CFNetwork 0x000000018326154c -[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:]
4 CFNetwork 0x00000001832616c0 -[NSURLConnectionInternal _withActiveConnectionAndDelegate:]
5 CFNetwork 0x000000018321f974 _NSURLConnectionDidReceiveResponse(_CFURLConnection*, _CFURLResponse*, void const*)
6 CFNetwork 0x0000000183185c78 invocation function for block in URLConnectionClient_Classic::_delegate_didReceiveResponse(_CFURLResponse*)
7 CFNetwork 0x00000001831817ac invocation function for block in URLConnectionClient_Classic::_withDelegateAsync(char const*, void (_CFURLConnection*, CFURLConnectionClientCurrent_VMax const*) block_pointer)
8 CFNetwork 0x000000018323e85c invocation function for block in QCoreSchedulingSet::performAsync(void () block_pointer) const
9 libdispatch.dylib 0x000000018188e1fc __dispatch_call_block_and_release
10 libdispatch.dylib 0x000000018188e1bc __dispatch_client_callout
11 libdispatch.dylib 0x000000018189c3dc __dispatch_queue_serial_drain
12 libdispatch.dylib 0x00000001818919a4 __dispatch_queue_invoke
13 libdispatch.dylib 0x000000018189e34c __dispatch_root_queue_drain
14 libdispatch.dylib 0x000000018189e0ac __dispatch_worker_thread3
15 libsystem_pthread.dylib 0x0000000181a972a0 _pthread_wqthread
#11 Thread
0 libsystem_kernel.dylib 0x00000001819d3a88 __workq_kernreturn
1 libsystem_pthread.dylib 0x0000000181a97160 _pthread_wqthread
#12 Thread
0 libsystem_kernel.dylib 0x00000001819d3a88 __workq_kernreturn
1 libsystem_pthread.dylib 0x0000000181a97344 _pthread_wqthread
#13 Thread
0 libsystem_kernel.dylib 0x00000001819d3a88 __workq_kernreturn
1 libsystem_pthread.dylib 0x0000000181a97344 _pthread_wqthread
#14 Thread
0 libsystem_kernel.dylib 0x00000001819d3a88 __workq_kernreturn
1 libsystem_pthread.dylib 0x0000000181a97344 _pthread_wqthread

Related

Xamarin IOS random crashing on UI change

We have an iPad app build with Xamarin.iOS that has started to crash randomly for our customers.
This occurs when users interact with the UI but appears to happen randomly, as they can work fine for hours then, all of a sudden they click on something and the app crashes.
All attempts to replicate locally have failed (both on simulator and on physical devices) but the number of users reporting this has increased, as well as the number of crashes logged in App Center.
Any help/insight into the below call stack would be greatly appreciated.
Exception Type: SIGABRT
Exception Codes: #0 at 0x1bc0febbc
Crashed Thread: 0
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x00000001bc0febbc __pthread_kill + 8
1 libsystem_c.dylib 0x000000018cc336ac abort + 120
2 MyApp 0x0000000112a1bf40 xamarin_unhandled_exception_handler (runtime.m:1109)
3 MyApp 0x00000001128c1bbc mono_invoke_unhandled_exception_hook (exception.c:1265)
4 MyApp 0x0000000112856d28 mono_handle_exception_internal (mini-exceptions.c:2782)
5 MyApp 0x00000001128556fc mono_handle_exception (mini-exceptions.c:3107)
6 MyApp 0x000000011284b3fc mono_arm_throw_exception (exceptions-arm64.c:401)
7 MyApp 0x0000000101371fbc throw_exception + 168
8 MyApp 0x00000001010d613c System_Runtime_ExceptionServices_ExceptionDispatchInfo_Throw + 40
9 MyApp 0x00000001010dc424 System_Runtime_CompilerServices_AsyncMethodBuilderCore__c__ThrowAsyncb__7_0_object + 80
10 MyApp 0x0000000101da69cc Foundation_NSAsyncSynchronizationContextDispatcher_Apply (NSAction.cs:178)
11 MyApp 0x000000010132d8c0 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 268
12 MyApp 0x0000000112868a94 mono_jit_runtime_invoke (mini-runtime.c:3190)
13 MyApp 0x00000001129226c4 mono_runtime_invoke_checked (object.c:3052)
14 MyApp 0x0000000112925f04 mono_runtime_invoke (object.c:3107)
15 MyApp 0x0000000100f09230 native_to_managed_trampoline_7(objc_object*, objc_selector*, _MonoMethod**, unsigned int) (registrar.m:424)
16 MyApp 0x0000000100f09764 -[__MonoMac_NSAsyncSynchronizationContextDispatcher xamarinApplySelector] (registrar.m:6646)
17 Foundation 0x0000000183c066a0 __NSThreadPerformPerform + 160
18 CoreFoundation 0x000000018256a4fc __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 20
19 CoreFoundation 0x000000018257a62c __CFRunLoopDoSource0 + 200
20 CoreFoundation 0x00000001824bc834 __CFRunLoopDoSources0 + 252
21 CoreFoundation 0x00000001824c1f08 __CFRunLoopRun + 764
22 CoreFoundation 0x00000001824d5250 CFRunLoopRunSpecific + 568
23 GraphicsServices 0x00000001a2e20988 GSEventRunModal + 156
24 UIKitCore 0x0000000184cd5a94 -[UIApplication _run] + 1076
25 UIKitCore 0x0000000184a6efd4 UIApplicationMain + 332
26 MyApp 0x0000000101e50c38 wrapper_managed_to_native_UIKit_UIApplication_UIApplicationMain_int_string___intptr_intptr + 340
27 MyApp 0x0000000101dcf3f0 UIKit_UIApplication_Main_string___string_string (UIApplication.cs:75)
28 MyApp 0x0000000100f4b9e0 MyApp_Main_string__ (Main.cs:19)
29 MyApp 0x000000010132d8c0 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 268
30 MyApp 0x0000000112868a94 mono_jit_runtime_invoke (mini-runtime.c:3190)
31 MyApp 0x00000001129226c4 mono_runtime_invoke_checked (object.c:3052)
32 MyApp 0x00000001129289cc mono_runtime_exec_main_checked (object.c:0)
33 MyApp 0x0000000112846e04 mono_jit_exec (driver.c:1383)
34 MyApp 0x0000000112a2e4ac xamarin_main (monotouch-main.m:494)
35 MyApp 0x0000000100f4917c main (main.m:298)
36 ??? 0x0000000113f244d0 0x0 + 0
Thread 1:
0 libsystem_kernel.dylib 0x00000001bc0f9484 __psynch_cvwait + 8
1 MyApp 0x00000001129c58ec thread_func (mono-os-mutex.h:219)
2 libsystem_pthread.dylib 0x00000001dc7ae348 _pthread_start + 112
3 libsystem_pthread.dylib 0x00000001dc7ac948 thread_start + 4
Thread 2:
0 libsystem_kernel.dylib 0x00000001bc0f8ae8 semaphore_wait_trap + 8
1 MyApp 0x000000011297021c start_wrapper_internal (threads.c:1233)
2 MyApp 0x00000001129700a0 start_wrapper (threads.c:1308)
3 libsystem_pthread.dylib 0x00000001dc7ae348 _pthread_start + 112
4 libsystem_pthread.dylib 0x00000001dc7ac948 thread_start + 4
Thread 3:
0 libsystem_kernel.dylib 0x00000001bc0f8aac mach_msg_trap + 8
1 CoreFoundation 0x00000001824bdd88 __CFRunLoopServiceMachPort + 364
2 CoreFoundation 0x00000001824c2090 __CFRunLoopRun + 1156
3 CoreFoundation 0x00000001824d5250 CFRunLoopRunSpecific + 568
4 Foundation 0x0000000183be2eec -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 228
5 Foundation 0x0000000183c22000 -[NSRunLoop(NSRunLoop) runUntilDate:] + 84
6 UIKitCore 0x0000000184c54f00 -[UIEventFetcher threadMain] + 508
7 Foundation 0x0000000183c2fbfc __NSThread__start__ + 788
8 libsystem_pthread.dylib 0x00000001dc7ae348 _pthread_start + 112
9 libsystem_pthread.dylib 0x00000001dc7ac948 thread_start + 4
Thread 4:
0 libsystem_kernel.dylib 0x00000001bc0f9484 __psynch_cvwait + 8
1 MyApp 0x00000001129d4e68 mono_os_cond_timedwait (mono-os-mutex.c:75)
2 MyApp 0x000000011297b944 mono_w32handle_timedwait_signal_handle (mono-coop-mutex.h:103)
3 MyApp 0x000000011297b81c mono_w32handle_wait_one (w32handle.c:0)
4 MyApp 0x000000011297ba40 mono_w32handle_wait_multiple (w32handle.c:1002)
5 MyApp 0x000000011296a748 ves_icall_System_Threading_WaitHandle_Wait_internal (threads.c:2314)
6 MyApp 0x00000001128e66e8 ves_icall_System_Threading_WaitHandle_Wait_internal_raw (icall-def.h:1100)
7 MyApp 0x000000010105efb8 wrapper_managed_to_native_System_Threading_WaitHandle_Wait_internal_intptr__int_bool_int + 116
8 MyApp 0x000000010105eb18 System_Threading_WaitHandle_WaitOneNative_System_Runtime_InteropServices_SafeHandle_uint_bool_bool + 260
9 MyApp 0x000000010105e56c System_Threading_WaitHandle_InternalWaitOne_System_Runtime_InteropServices_SafeHandle_long_bool_bool + 56
10 MyApp 0x000000010105e51c System_Threading_WaitHandle_WaitOne_long_bool + 56
11 MyApp 0x000000010105e41c System_Threading_WaitHandle_WaitOne_int_bool + 56
12 MyApp 0x000000010105e4cc System_Threading_WaitHandle_WaitOne_int + 40
13 MyApp 0x00000001010629f8 System_Threading_Timer_Scheduler_SchedulerThread + 212
14 MyApp 0x0000000101057124 System_Threading_ThreadHelper_ThreadStart + 112
15 MyApp 0x000000010132d8c0 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 268
16 MyApp 0x0000000112868a94 mono_jit_runtime_invoke (mini-runtime.c:3190)
17 MyApp 0x00000001129226c4 mono_runtime_invoke_checked (object.c:3052)
18 MyApp 0x0000000112928060 mono_runtime_delegate_try_invoke (object.c:4438)
19 MyApp 0x0000000112970314 start_wrapper_internal (threads.c:1255)
20 MyApp 0x00000001129700a0 start_wrapper (threads.c:1308)
21 libsystem_pthread.dylib 0x00000001dc7ae348 _pthread_start + 112
22 libsystem_pthread.dylib 0x00000001dc7ac948 thread_start + 4
Thread 5:
0 libsystem_kernel.dylib 0x00000001bc0f96b0 __select + 8
1 MyApp 0x00000001129617a8 poll_event_wait (threadpool-io-poll.c:153)
2 MyApp 0x000000011296121c selector_thread (threadpool-io.c:460)
3 MyApp 0x000000011297021c start_wrapper_internal (threads.c:1233)
4 MyApp 0x00000001129700a0 start_wrapper (threads.c:1308)
5 libsystem_pthread.dylib 0x00000001dc7ae348 _pthread_start + 112
6 libsystem_pthread.dylib 0x00000001dc7ac948 thread_start + 4
Thread 6:
0 libsystem_kernel.dylib 0x00000001bc0f8aac mach_msg_trap + 8
1 CoreFoundation 0x00000001824bdd88 __CFRunLoopServiceMachPort + 364
2 CoreFoundation 0x00000001824c2090 __CFRunLoopRun + 1156
3 CoreFoundation 0x00000001824d5250 CFRunLoopRunSpecific + 568
4 CFNetwork 0x0000000182edaaa8 _CFURLStorageSessionDisableCache + 50416
5 Foundation 0x0000000183c2fbfc __NSThread__start__ + 788
6 libsystem_pthread.dylib 0x00000001dc7ae348 _pthread_start + 112
7 libsystem_pthread.dylib 0x00000001dc7ac948 thread_start + 4
=
We have build this app with the following version of Xamarin.iOS
Xamarin.iOS
Version: 15.10.0.5
Hash: 96b3edb6d
Branch: d17-2
Build date: 2022-05-18 07:32:07-0400

iOS12 play video in webview crash

I received a crash in iOS12.
The way to reproduce:
1.Play a video with UIWebView, then the video will play in fullScreen.
2.After the video start play, tap the left-top reduced Button to stop the video.
3.Replay it and the video will still in fullScreeen.
4.Repeat step2 and step3 several times.
5.Normal speed, at most 10 times, the crash will come.
Some detail info of the crash:
Hardware Model: iPhone10,3
Code Type: ARM-64 (Native)
Role: Non UI
Parent Process: launchd [1]
Date/Time: 2018-10-08 18:59:20.8570 +0800
Launch Time: 2018-10-08 18:58:58.7757 +0800
OS Version: iPhone OS 12.0 (16A366)
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x000047c300000111
VM Region Info: 0x47c300000111 is not in any region. Bytes after previous region: 78891569905938
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
MALLOC_NANO 0000000280000000-00000002a0000000 [512.0M] rw-/rwx SM=PRV
--->
UNUSED SPACE AT END
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [658]
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 WebCore 0x00000001be5f4270 VideoFullscreenControllerContext::rateChanged+ 4784752 (bool, float) + 308
1 WebCore 0x00000001be5f4164 VideoFullscreenControllerContext::rateChanged+ 4784484 (bool, float) + 40
2 libdispatch.dylib 0x00000001b529b6c8 _dispatch_call_block_and_release + 24
3 libdispatch.dylib 0x00000001b529c484 _dispatch_client_callout + 16
4 libdispatch.dylib 0x00000001b527bb44 _dispatch_main_queue_callback_4CF$VARIANT$armv81 + 1012
5 CoreFoundation 0x00000001b57f21bc __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
6 CoreFoundation 0x00000001b57ed084 __CFRunLoopRun + 1964
7 CoreFoundation 0x00000001b57ec5b8 CFRunLoopRunSpecific + 436
8 GraphicsServices 0x00000001b7a60584 GSEventRunModal + 100
9 UIKitCore 0x00000001e2117558 UIApplicationMain + 212
10 xxxx 0x00000001023d29e4 main + 59876 (main.m:16)
11 libdyld.dylib 0x00000001b52acb94 start + 4
Thread 1 name: JavaScriptCore bmalloc scavenger
Thread 1:
0 libsystem_kernel.dylib 0x00000001b53f8f0c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001b547a4c8 _pthread_cond_wait$VARIANT$armv81 + 620
2 libc++.1.dylib 0x00000001b49c44d0 std::__1::condition_variable::wait+ 34000 (std::__1::unique_lock<std::__1::mutex>&) + 24
3 JavaScriptCore 0x00000001bcb5bd7c void std::__1::condition_variable_any::wait<std::__1::unique_lock<bmalloc::Mutex> >+ 376188 (std::__1::unique_lock<bmalloc::Mutex>&) + 104
4 JavaScriptCore 0x00000001bcb5fe70 bmalloc::Scavenger::threadRunLoop+ 392816 () + 176
5 JavaScriptCore 0x00000001bcb5f5a4 bmalloc::Scavenger::Scavenger+ 390564 (std::__1::lock_guard<bmalloc::Mutex>&) + 0
6 JavaScriptCore 0x00000001bcb61050 std::__1::__thread_specific_ptr<std::__1::__thread_struct>::set_pointer+ 397392 (std::__1::__thread_struct*) + 0
7 libsystem_pthread.dylib 0x00000001b547d2fc _pthread_body + 128
8 libsystem_pthread.dylib 0x00000001b547d25c _pthread_start + 48
9 libsystem_pthread.dylib 0x00000001b5480d08 thread_start + 4
Thread 2 name: WebThread
Thread 2:
0 libsystem_kernel.dylib 0x00000001b53eded0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001b53ed3a8 mach_msg + 72
2 libdispatch.dylib 0x00000001b526d630 _dispatch_mach_send_and_wait_for_reply + 500
3 libdispatch.dylib 0x00000001b526dad0 dispatch_mach_send_with_result_and_wait_for_reply$VARIANT$armv81 + 56
4 libxpc.dylib 0x00000001b54b4eb4 xpc_connection_send_message_with_reply_sync + 204
5 CoreMedia 0x00000001b8f1176c FigXPCRemoteClientSendSyncMessageCreatingReply + 36
6 MediaToolbox 0x00000001ba4e5868 remoteXPCAsset_GetStatusOfValueForProperty + 152
7 AVFoundation 0x00000001bb954930 -[AVFigAssetInspectorLoader _loadStatusForProperty:figAsset:error:] + 84
8 AVFoundation 0x00000001bb954af4 -[AVFigAssetInspectorLoader statusOfValueForKey:error:] + 312
9 WebCore 0x00000001be232e98 WebCore::MediaPlayerPrivateAVFoundationObjC::assetStatus+ 847512 () const + 248
10 WebCore 0x00000001be2213a8 WebCore::MediaPlayerPrivateAVFoundation::updateStates+ 775080 () + 764
11 WebCore 0x00000001be23dcec WebCore::MediaPlayerPrivateAVFoundationObjC::rateDidChange+ 892140 (double) + 24
12 WebCore 0x00000001be2222bc WebCore::MediaPlayerPrivateAVFoundation::dispatchNotification+ 778940 () + 1064
13 JavaScriptCore 0x00000001bcb273e0 WTF::dispatchFunctionsFromMainThread+ 160736 () + 308
14 Foundation 0x00000001b63135a0 __NSThreadPerformPerform + 336
15 CoreFoundation 0x00000001b57f25b8 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
16 CoreFoundation 0x00000001b57f2538 __CFRunLoopDoSource0 + 88
17 CoreFoundation 0x00000001b57f1e1c __CFRunLoopDoSources0 + 176
18 CoreFoundation 0x00000001b57ecce8 __CFRunLoopRun + 1040
19 CoreFoundation 0x00000001b57ec5b8 CFRunLoopRunSpecific + 436
20 WebCore 0x00000001be613ba4 RunWebThread+ 4914084 (void*) + 592
21 libsystem_pthread.dylib 0x00000001b547d2fc _pthread_body + 128
22 libsystem_pthread.dylib 0x00000001b547d25c _pthread_start + 48
23 libsystem_pthread.dylib 0x00000001b5480d08 thread_start + 4
Anyone have any idea?
ps.There are a similar question at Multiple UIWebView WebCore Crashes

ECSlidingViewController bound using Xamarin causes crash

I am using a binding project to wrap ECSlidingViewController for use with MonoTouch/Xamarin. I have this setup. However when I attempt to open the menu (by triggering a segue on button click) the app crashes with no error report, nor anything in the application output. All I have to go on is the following crash report I retrieved from the console. Can anyone shed any light on the problem?
The only code being executed is:
// in ViewDidLoad()
menuButton.TouchUpInside += (object sender, EventArgs e) => ToggleMenu();
private void ToggleMenu()
{
PerformSegue("ReturnToMenu", this);
}
The mammoth crash report. I've removed the irrelevant sections and the 20-odd other threads it ilsted.
Process: TrendsyiOS [20438] Path:
/Users/USER/Library/Application Support/iPhone
Simulator/*/TrendsyiOS.app/TrendsyiOS Identifier: TrendsyiOS
Version: 0 Code Type: X86 (Native) Parent Process:
launchd_sim [20410] Responsible: launchd_sim [20410] User ID:
501
Date/Time: 2014-03-07 18:38:48.964 +0000 OS Version: Mac OS
X 10.9.2 (13C64) Report Version: 11 Anonymous UUID:
16AD87BD-E1A0-85E1-ABA2-1B42ED40C5AA
Sleep/Wake UUID: BD75E8D8-A7D6-4ADA-8D92-7D304EF39EAC
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception Codes:
0x0000000000000002, 0x0000000000000000
Application Specific Information: iPhone Simulator 463.9.4.2, iPhone
OS 7.0.3 (iPhone Retina (4-inch)/11B508)
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0
CoreFoundation 0x0511db71 CFRetain + 113 1 ???
0x1426c448 0 + 338084936 2 ???
0x1426c168 0 + 338084200 3 ???
0x1426c3a6 0 + 338084774 4 TrendsyiOS
0x00223a74 mono_jit_runtime_invoke + 820 (mini.c:6622) 5 TrendsyiOS
0x002be66f mono_runtime_invoke + 127 (object.c:2827) 6 TrendsyiOS
0x00361b3a get_delegate_for_block_parameter + 138
(monotouch-glue.m:292) 7 TrendsyiOS 0x00368ee7
monotouch_trampoline + 1847
(.monotouch-trampoline-setup-callstack.inc:70) 8 TrendsyiOS
0x0013ace7 -[ECSlidingViewController anchorTopViewToRightAnimated:] +
49 (ECSlidingViewController.m:413) 9 TrendsyiOS
0x00138f66 -[ECSlidingSegue perform] + 264 (ECSlidingSegue.m:51) 10
UIKit 0x03a57203
-[UIStoryboardUnwindSegueTemplate _perform:] + 554 11 UIKit 0x034ce280 -[UIViewController performSegueWithIdentifier:sender:] +
72 12 ??? 0x132d61c4 0 + 321741252 13 ???
0x132d60ec 0 + 321741036 14 ???
0x132a8e79 0 + 321556089 15 ???
0x132b9fe8 0 + 321626088 16 ???
0x12da1c87 0 + 316284039 17 ???
0x10067b6d 0 + 268860269 18 TrendsyiOS
0x00223a74 mono_jit_runtime_invoke + 820 (mini.c:6622) 19 TrendsyiOS
0x002be66f mono_runtime_invoke + 127 (object.c:2827) 20 TrendsyiOS
0x0036980a monotouch_trampoline + 4186
(.monotouch-trampoline-invoke.inc:1) 21 libobjc.A.dylib
0x04f6e874 -[NSObject performSelector:withObject:withObject:] + 77 22
UIKit 0x033ba0c2 -[UIApplication
sendAction:to:from:forEvent:] + 108 23 UIKit
0x033ba04e -[UIApplication sendAction:toTarget:fromSender:forEvent:]
+ 61 24 UIKit 0x034b20c1 -[UIControl sendAction:to:forEvent:] + 66 25 UIKit
0x034b2484 -[UIControl _sendActionsForEvents:withEvent:] + 577 26
UIKit 0x034b1733 -[UIControl
touchesEnded:withEvent:] + 641 27 UIKit
0x033f751d -[UIWindow _sendTouchesForEvent:] + 852 28 UIKit
0x033f8184 -[UIWindow sendEvent:] + 1232 29 UIKit
0x033cbe86 -[UIApplication sendEvent:] + 242 30 UIKit
0x033b618f _UIApplicationHandleEventQueue + 11421 31 CoreFoundation
0x0512b83f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
+ 15 32 CoreFoundation 0x0512b1cb __CFRunLoopDoSources0 + 235 33 CoreFoundation 0x0514829e __CFRunLoopRun + 910 34 CoreFoundation
0x05147ac3 CFRunLoopRunSpecific + 467 35 CoreFoundation
0x051478db CFRunLoopRunInMode + 123 36 GraphicsServices
0x066b59e2 GSEventRunModal + 192 37 GraphicsServices
0x066b5809 GSEventRun + 104 38 UIKit
0x033b8d3b UIApplicationMain + 1225 39 ???
0x110efaa8 0 + 286194344 40 ???
0x110edc1c 0 + 286186524 41 ???
0x110ed7f8 0 + 286185464 42 ???
0x110ed937 0 + 286185783 43 TrendsyiOS
0x00223a74 mono_jit_runtime_invoke + 820 (mini.c:6622) 44 TrendsyiOS
0x002be66f mono_runtime_invoke + 127 (object.c:2827) 45 TrendsyiOS
0x002c3eb7 mono_runtime_exec_main + 391 (object.c:4050) 46
TrendsyiOS 0x002c3c84 mono_runtime_run_main + 628
(object.c:3678) 47 TrendsyiOS 0x0018d94d
mono_jit_exec + 93 (driver.g.c:1009) 48 TrendsyiOS
0x0035bdd4 main + 2788 (main.m:489) 49 libdyld.dylib
0x056e3701 start + 1
Thread 1:: Dispatch queue: com.apple.libdispatch-manager 0
libsystem_kernel.dylib 0x0590b992 kevent64 + 10 1
libdispatch.dylib 0x05442f3e _dispatch_mgr_invoke + 238 2
libdispatch.dylib 0x05442c7a _dispatch_mgr_thread + 60
Thread 2: 0 libsystem_kernel.dylib 0x0590aa26 __recvfrom +
10 1 libsystem_sim_c.dylib 0x0550ca9d recv + 54 2
TrendsyiOS 0x0035dfcd recv_uninterrupted + 77
(debug.m:321) 3 TrendsyiOS 0x0035e1fb
monotouch_process_connection + 187 (debug.m:738) 4 TrendsyiOS
0x0035ddd7 monotouch_connect_wifi + 2983 (debug.m:515) 5 TrendsyiOS
0x0035ce9c monotouch_configure_debugging + 2124 (debug.m:269) 6
TrendsyiOS 0x0035a8da -[CocoaThreadInitializer
entryPoint:] + 122 (shared.m:127) 7 Foundation
0x01cbd597 -[NSThread main] + 76 8 Foundation
0x01cbd4f6 __NSThread__main__ + 1275 9 libsystem_pthread.dylib
0x058c45fb _pthread_body + 144 10 libsystem_pthread.dylib
0x058c4485 _pthread_start + 130 11 libsystem_pthread.dylib
0x058c9cf2 thread_start + 34
Thread 3: 0 libsystem_kernel.dylib 0x05905fb6
semaphore_wait_trap + 10 1 TrendsyiOS 0x00335c6a
mono_sem_wait + 26 (mono-semaphore.c:121) 2 TrendsyiOS
0x002668c7 finalizer_thread + 103 (gc.c:1078) 3 TrendsyiOS
0x002f60a8 start_wrapper + 376 (threads.c:609) 4 TrendsyiOS
0x0032a2c7 thread_start_routine + 151 (wthreads.c:294) 5 TrendsyiOS
0x00336321 inner_start_thread + 65 (mono-threads-posix.c:49) 6
TrendsyiOS 0x00357b0d GC_start_routine + 93
(pthread_support.c:1502) 7 libsystem_pthread.dylib 0x058c45fb
_pthread_body + 144 8 libsystem_pthread.dylib 0x058c4485 _pthread_start + 130 9 libsystem_pthread.dylib 0x058c9cf2 thread_start + 34
Thread 4: 0 libsystem_kernel.dylib 0x0590aa26 __recvfrom +
10 1 libsystem_sim_c.dylib 0x0550ca9d recv + 54 2
TrendsyiOS 0x0035dfcd recv_uninterrupted + 77
(debug.m:321) 3 TrendsyiOS 0x0035e0c4 sdb_recv +
52 (debug.m:337) 4 TrendsyiOS 0x001786eb
debugger_thread + 22427 (debugger-agent.c:1475) 5 TrendsyiOS
0x0032a2c7 thread_start_routine + 151 (wthreads.c:294) 6 TrendsyiOS
0x00336321 inner_start_thread + 65 (mono-threads-posix.c:49) 7
TrendsyiOS 0x00357b0d GC_start_routine + 93
(pthread_support.c:1502) 8 libsystem_pthread.dylib 0x058c45fb
_pthread_body + 144 9 libsystem_pthread.dylib 0x058c4485 _pthread_start + 130 10 libsystem_pthread.dylib 0x058c9cf2 thread_start + 34
Thread 5: 0 libsystem_kernel.dylib 0x0590ab76
__semwait_signal + 10 1 libsystem_sim_c.dylib 0x0550c98b nanosleep + 219 2 libsystem_sim_c.dylib 0x0550c836 usleep +
60 3 TrendsyiOS 0x003628ad monotouch_pump_gc +
61 (monotouch-glue.m:595) 4 libsystem_pthread.dylib
0x058c45fb _pthread_body + 144 5 libsystem_pthread.dylib
0x058c4485 _pthread_start + 130 6 libsystem_pthread.dylib
0x058c9cf2 thread_start + 34
Thread 6:: com.apple.NSURLConnectionLoader 0 libsystem_kernel.dylib
0x05905f7a mach_msg_trap + 10 1 libsystem_kernel.dylib
0x0590516c mach_msg + 68 2 CoreFoundation
0x05142e49 __CFRunLoopServiceMachPort + 169 3 CoreFoundation
0x051483b1 __CFRunLoopRun + 1185 4 CoreFoundation
0x05147ac3 CFRunLoopRunSpecific + 467 5 CoreFoundation
0x051478db CFRunLoopRunInMode + 123 6 Foundation
0x01c619de +[NSURLConnection(Loader) _resourceLoadLoop:] + 381 7
Foundation 0x01cbd597 -[NSThread main] + 76 8
Foundation 0x01cbd4f6 __NSThread__main__ + 1275 9
libsystem_pthread.dylib 0x058c45fb _pthread_body + 144 10
libsystem_pthread.dylib 0x058c4485 _pthread_start + 130 11
libsystem_pthread.dylib 0x058c9cf2 thread_start + 34
Thread 7:: com.apple.CFSocket.private 0 libsystem_kernel.dylib
0x0590aace __select + 10 1 CoreFoundation
0x051863eb __CFSocketManager + 875 2 libsystem_pthread.dylib
0x058c45fb _pthread_body + 144 3 libsystem_pthread.dylib
0x058c4485 _pthread_start + 130 4 libsystem_pthread.dylib
0x058c9cf2 thread_start + 34
Thread 8: 0 libsystem_kernel.dylib 0x0590b046
__workq_kernreturn + 10 1 libsystem_pthread.dylib 0x058c5dcf _pthread_wqthread + 372 2 libsystem_pthread.dylib 0x058c9cce start_wqthread + 30
Thread 9:: WebThread 0 libsystem_kernel.dylib 0x05905f7a
mach_msg_trap + 10 1 libsystem_kernel.dylib 0x0590516c
mach_msg + 68 2 CoreFoundation 0x05142e49
__CFRunLoopServiceMachPort + 169 3 CoreFoundation 0x051483b1 __CFRunLoopRun + 1185 4 CoreFoundation
0x05147ac3 CFRunLoopRunSpecific + 467 5 CoreFoundation
0x051478db CFRunLoopRunInMode + 123 6 WebCore
0x0a532f00 RunWebThread(void*) + 608 7 libsystem_pthread.dylib
0x058c45fb _pthread_body + 144 8 libsystem_pthread.dylib
0x058c4485 _pthread_start + 130 9 libsystem_pthread.dylib
0x058c9cf2 thread_start + 34
Thread 10: 0 libsystem_kernel.dylib 0x05905f7a mach_msg_trap
+ 10 1 libsystem_kernel.dylib 0x0590516c mach_msg + 68 2 CoreFoundation 0x05142e49 __CFRunLoopServiceMachPort +
169 3 CoreFoundation 0x051483b1 __CFRunLoopRun +
1185 4 CoreFoundation 0x05147ac3
CFRunLoopRunSpecific + 467 5 CoreFoundation
0x051478db CFRunLoopRunInMode + 123 6 libAVFAudio.dylib
0x05f8d403 GenericRunLoopThread::Entry(void*) + 189 7
libAVFAudio.dylib 0x05f81882 CAPThread::Entry(CAPThread*)
+ 114 8 libsystem_pthread.dylib 0x058c45fb _pthread_body + 144 9 libsystem_pthread.dylib 0x058c4485 _pthread_start + 130
10 libsystem_pthread.dylib 0x058c9cf2 thread_start + 34
Thread 11: 0 libsystem_kernel.dylib 0x0590ab76
__semwait_signal + 10 1 libsystem_sim_c.dylib 0x0550c98b nanosleep + 219 2 TrendsyiOS 0x0032ab4a SleepEx
+ 234 (wthreads.c:842) 3 TrendsyiOS 0x002f4e64 monitor_thread + 164 (threadpool.c:779) 4 TrendsyiOS
0x002f60a8 start_wrapper + 376 (threads.c:609) 5 TrendsyiOS
0x0032a2c7 thread_start_routine + 151 (wthreads.c:294) 6 TrendsyiOS
0x00336321 inner_start_thread + 65 (mono-threads-posix.c:49) 7
TrendsyiOS 0x00357b0d GC_start_routine + 93
(pthread_support.c:1502) 8 libsystem_pthread.dylib 0x058c45fb
_pthread_body + 144 9 libsystem_pthread.dylib 0x058c4485 _pthread_start + 130 10 libsystem_pthread.dylib 0x058c9cf2 thread_start + 34
Thread 12: 0 libsystem_kernel.dylib 0x05905fce
semaphore_timedwait_trap + 10 1 TrendsyiOS
0x00335c12 mono_sem_timedwait + 210 (mono-semaphore.c:82) 2
TrendsyiOS 0x002f2c58 async_invoke_thread + 1656
(threadpool.c:1565) 3 TrendsyiOS 0x002f60a8
start_wrapper + 376 (threads.c:609) 4 TrendsyiOS
0x0032a2c7 thread_start_routine + 151 (wthreads.c:294) 5 TrendsyiOS
0x00336321 inner_start_thread + 65 (mono-threads-posix.c:49) 6
TrendsyiOS 0x00357b0d GC_start_routine + 93
(pthread_support.c:1502) 7 libsystem_pthread.dylib 0x058c45fb
_pthread_body + 144 8 libsystem_pthread.dylib 0x058c4485 _pthread_start + 130 9 libsystem_pthread.dylib 0x058c9cf2 thread_start + 34
Thread 13: 0 libsystem_kernel.dylib 0x0590aace __select + 10
1 TrendsyiOS 0x003348e1 mono_poll + 401
(mono-poll.c:76) 2 TrendsyiOS 0x002f5313
tp_poll_wait + 291 (tpool-poll.c:186) 3 TrendsyiOS
0x002f60a8 start_wrapper + 376 (threads.c:609) 4 TrendsyiOS
0x0032a2c7 thread_start_routine + 151 (wthreads.c:294) 5 TrendsyiOS
0x00336321 inner_start_thread + 65 (mono-threads-posix.c:49) 6
TrendsyiOS 0x00357b0d GC_start_routine + 93
(pthread_support.c:1502) 7 libsystem_pthread.dylib 0x058c45fb
_pthread_body + 144 8 libsystem_pthread.dylib 0x058c4485 _pthread_start + 130 9 libsystem_pthread.dylib 0x058c9cf2 thread_start + 34
Thread 14: 0 libsystem_kernel.dylib 0x05905fce
semaphore_timedwait_trap + 10 1 TrendsyiOS
0x00335c12 mono_sem_timedwait + 210 (mono-semaphore.c:82) 2
TrendsyiOS 0x002f2c58 async_invoke_thread + 1656
(threadpool.c:1565) 3 TrendsyiOS 0x002f60a8
start_wrapper + 376 (threads.c:609) 4 TrendsyiOS
0x0032a2c7 thread_start_routine + 151 (wthreads.c:294) 5 TrendsyiOS
0x00336321 inner_start_thread + 65 (mono-threads-posix.c:49) 6
TrendsyiOS 0x00357b0d GC_start_routine + 93
(pthread_support.c:1502) 7 libsystem_pthread.dylib 0x058c45fb
_pthread_body + 144 8 libsystem_pthread.dylib 0x058c4485 _pthread_start + 130 9 libsystem_pthread.dylib 0x058c9cf2 thread_start + 34
Thread 15:: JavaScriptCore::BlockFree 0 libsystem_kernel.dylib
0x0590a7ca __psynch_cvwait + 10 1 libsystem_pthread.dylib
0x058c6d1d _pthread_cond_wait + 728 2 libsystem_pthread.dylib
0x058c8bd9 pthread_cond_wait$UNIX2003 + 71 3 JavaScriptCore
0x043f5811 JSC::BlockAllocator::blockFreeingThreadMain() + 305 4
JavaScriptCore 0x0473df2c WTF::threadEntryPoint(void*)
+ 76 5 JavaScriptCore 0x0473e425 WTF::wtfThreadEntryPoint(void*) + 21 6 libsystem_pthread.dylib
0x058c45fb _pthread_body + 144 7 libsystem_pthread.dylib
0x058c4485 _pthread_start + 130 8 libsystem_pthread.dylib
0x058c9cf2 thread_start + 34
Thread 16:: JavaScriptCore::Marking 0 libsystem_kernel.dylib
0x0590a7ca __psynch_cvwait + 10 1 libsystem_pthread.dylib
0x058c6d1d _pthread_cond_wait + 728 2 libsystem_pthread.dylib
0x058c8bd9 pthread_cond_wait$UNIX2003 + 71 3 JavaScriptCore
0x045238f3 JSC::GCThread::waitForNextPhase() + 147 4 JavaScriptCore
0x04523988 JSC::GCThread::gcThreadStartFunc(void*) + 72 5
JavaScriptCore 0x0473df2c WTF::threadEntryPoint(void*)
+ 76 6 JavaScriptCore 0x0473e425 WTF::wtfThreadEntryPoint(void*) + 21 7 libsystem_pthread.dylib
0x058c45fb _pthread_body + 144 8 libsystem_pthread.dylib
0x058c4485 _pthread_start + 130 9 libsystem_pthread.dylib
0x058c9cf2 thread_start + 34
Thread 17:: JavaScriptCore::Marking 0 libsystem_kernel.dylib
0x0590a7ca __psynch_cvwait + 10 1 libsystem_pthread.dylib
0x058c6d1d _pthread_cond_wait + 728 2 libsystem_pthread.dylib
0x058c8bd9 pthread_cond_wait$UNIX2003 + 71 3 JavaScriptCore
0x045238f3 JSC::GCThread::waitForNextPhase() + 147 4 JavaScriptCore
0x04523988 JSC::GCThread::gcThreadStartFunc(void*) + 72 5
JavaScriptCore 0x0473df2c WTF::threadEntryPoint(void*)
+ 76 6 JavaScriptCore 0x0473e425 WTF::wtfThreadEntryPoint(void*) + 21 7 libsystem_pthread.dylib
0x058c45fb _pthread_body + 144 8 libsystem_pthread.dylib
0x058c4485 _pthread_start + 130 9 libsystem_pthread.dylib
0x058c9cf2 thread_start + 34
Thread 18:: JavaScriptCore::Marking 0 libsystem_kernel.dylib
0x0590a7ca __psynch_cvwait + 10 1 libsystem_pthread.dylib
0x058c6d1d _pthread_cond_wait + 728 2 libsystem_pthread.dylib
0x058c8bd9 pthread_cond_wait$UNIX2003 + 71 3 JavaScriptCore
0x045238f3 JSC::GCThread::waitForNextPhase() + 147 4 JavaScriptCore
0x04523988 JSC::GCThread::gcThreadStartFunc(void*) + 72 5
JavaScriptCore 0x0473df2c WTF::threadEntryPoint(void*)
+ 76 6 JavaScriptCore 0x0473e425 WTF::wtfThreadEntryPoint(void*) + 21 7 libsystem_pthread.dylib
0x058c45fb _pthread_body + 144 8 libsystem_pthread.dylib
0x058c4485 _pthread_start + 130 9 libsystem_pthread.dylib
0x058c9cf2 thread_start + 34
Thread 19:: JavaScriptCore::Marking 0 libsystem_kernel.dylib
0x0590a7ca __psynch_cvwait + 10 1 libsystem_pthread.dylib
0x058c6d1d _pthread_cond_wait + 728 2 libsystem_pthread.dylib
0x058c8bd9 pthread_cond_wait$UNIX2003 + 71 3 JavaScriptCore
0x045238f3 JSC::GCThread::waitForNextPhase() + 147 4 JavaScriptCore
0x04523988 JSC::GCThread::gcThreadStartFunc(void*) + 72 5
JavaScriptCore 0x0473df2c WTF::threadEntryPoint(void*)
+ 76 6 JavaScriptCore 0x0473e425 WTF::wtfThreadEntryPoint(void*) + 21 7 libsystem_pthread.dylib
0x058c45fb _pthread_body + 144 8 libsystem_pthread.dylib
0x058c4485 _pthread_start + 130 9 libsystem_pthread.dylib
0x058c9cf2 thread_start + 34
Thread 20:: JavaScriptCore::Marking 0 libsystem_kernel.dylib
0x0590a7ca __psynch_cvwait + 10 1 libsystem_pthread.dylib
0x058c6d1d _pthread_cond_wait + 728 2 libsystem_pthread.dylib
0x058c8bd9 pthread_cond_wait$UNIX2003 + 71 3 JavaScriptCore
0x045238f3 JSC::GCThread::waitForNextPhase() + 147 4 JavaScriptCore
0x04523988 JSC::GCThread::gcThreadStartFunc(void*) + 72 5
JavaScriptCore 0x0473df2c WTF::threadEntryPoint(void*)
+ 76 6 JavaScriptCore 0x0473e425 WTF::wtfThreadEntryPoint(void*) + 21 7 libsystem_pthread.dylib
0x058c45fb _pthread_body + 144 8 libsystem_pthread.dylib
0x058c4485 _pthread_start + 130 9 libsystem_pthread.dylib
0x058c9cf2 thread_start + 34
Thread 21:: JavaScriptCore::Marking 0 libsystem_kernel.dylib
0x0590a7ca __psynch_cvwait + 10 1 libsystem_pthread.dylib
0x058c6d1d _pthread_cond_wait + 728 2 libsystem_pthread.dylib
0x058c8bd9 pthread_cond_wait$UNIX2003 + 71 3 JavaScriptCore
0x045238f3 JSC::GCThread::waitForNextPhase() + 147 4 JavaScriptCore
0x04523988 JSC::GCThread::gcThreadStartFunc(void*) + 72 5
JavaScriptCore 0x0473df2c WTF::threadEntryPoint(void*)
+ 76 6 JavaScriptCore 0x0473e425 WTF::wtfThreadEntryPoint(void*) + 21 7 libsystem_pthread.dylib
0x058c45fb _pthread_body + 144 8 libsystem_pthread.dylib
0x058c4485 _pthread_start + 130 9 libsystem_pthread.dylib
0x058c9cf2 thread_start + 34
Thread 22:: WebCore: CFNetwork Loader 0 libsystem_kernel.dylib
0x05905f7a mach_msg_trap + 10 1 libsystem_kernel.dylib
0x0590516c mach_msg + 68 2 CoreFoundation
0x05142e49 __CFRunLoopServiceMachPort + 169 3 CoreFoundation
0x051483b1 __CFRunLoopRun + 1185 4 CoreFoundation
0x05147ac3 CFRunLoopRunSpecific + 467 5 CoreFoundation
0x051478db CFRunLoopRunInMode + 123 6 WebCore
0x0a075a78 WebCore::runLoaderThread(void*) + 360 7 JavaScriptCore
0x0473df2c WTF::threadEntryPoint(void*) + 76 8 JavaScriptCore
0x0473e425 WTF::wtfThreadEntryPoint(void*) + 21 9
libsystem_pthread.dylib 0x058c45fb _pthread_body + 144 10
libsystem_pthread.dylib 0x058c4485 _pthread_start + 130 11
libsystem_pthread.dylib 0x058c9cf2 thread_start + 34
Thread 23: 0 libsystem_kernel.dylib 0x0590b046
__workq_kernreturn + 10 1 libsystem_pthread.dylib 0x058c5dcf _pthread_wqthread + 372 2 libsystem_pthread.dylib 0x058c9cce start_wqthread + 30
Thread 24:: WebCore: LocalStorage 0 libsystem_kernel.dylib
0x0590a7ca __psynch_cvwait + 10 1 libsystem_pthread.dylib
0x058c6d1d _pthread_cond_wait + 728 2 libsystem_pthread.dylib
0x058c8bd9 pthread_cond_wait$UNIX2003 + 71 3 JavaScriptCore
0x0473f483 WTF::ThreadCondition::timedWait(WTF::Mutex&, double) + 67
4 WebCore 0x0a34d508
WTF::PassOwnPtr<WTF::Function<void ()> >
WTF::MessageQueue<WTF::Function<void ()>
>::waitForMessageFilteredWithTimeout<bool (WTF::Function<void ()>*)>(WTF::MessageQueueWaitResult&, bool (&)(WTF::Function<void
()>*), double) + 120 5 WebCore 0x0a34cb06
WebCore::StorageThread::threadEntryPoint() + 214 6 JavaScriptCore
0x0473df2c WTF::threadEntryPoint(void*) + 76 7 JavaScriptCore
0x0473e425 WTF::wtfThreadEntryPoint(void*) + 21 8
libsystem_pthread.dylib 0x058c45fb _pthread_body + 144 9
libsystem_pthread.dylib 0x058c4485 _pthread_start + 130 10
libsystem_pthread.dylib 0x058c9cf2 thread_start + 34
Thread 25: 0 libsystem_kernel.dylib 0x0590b046
__workq_kernreturn + 10 1 libsystem_pthread.dylib 0x058c5dcf _pthread_wqthread + 372 2 libsystem_pthread.dylib 0x058c9cce start_wqthread + 30
Thread 0 crashed with X86 Thread State (32-bit): eax: 0x00000000
ebx: 0x00000000 ecx: 0x0511db00 edx: 0x00000000 edi: 0x0511db0e
esi: 0x00000000 ebp: 0xbff18ca8 esp: 0xbff18c90 ss: 0x00000023
efl: 0x00000246 eip: 0x0511db71 cs: 0x0000001b ds: 0x00000023
es: 0x00000023 fs: 0x00000000 gs: 0x0000000f cr2: 0x7bc9e000
Logical CPU: 2 Error Code: 0x00000000 Trap Number: 3
** LOTS OF CRAP**
External Modification Summary: Calls made by other processes
targeting this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0 Calls made by this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0 Calls made by all processes on this machine:
task_for_pid: 95275
thread_create: 2
thread_set_state: 655
VM Region Summary: ReadOnly portion of Libraries: Total=219.1M
resident=94.0M(43%) swapped_out_or_unallocated=125.1M(57%) Writable
regions: Total=182.3M written=27.3M(15%) resident=56.4M(31%)
swapped_out=0K(0%) unallocated=125.8M(69%) REGION TYPE
VIRTUAL
=========== ======= CG image 12K CG raster data 1336K CoreAnimation
11.3M CoreServices 424K CoreUI image data 320K Image IO 4440K JS JIT generated code
32.0M JS VM register file 4096K JS garbage collector 2880K Kernel Alloc Once 4K MALLOC
87.6M MALLOC (admin) 48K SQLite page cache 896K Stack 76.5M VM_ALLOCATE
8268K VM_ALLOCATE (reserved) 96K reserved VM
address space (unallocated) WebCore purgeable data 468K
WebKit Malloc 6408K
__DATA 14.6M
__LINKEDIT 51.7M
__PAGEZERO 4K
__TEXT 167.5M
__UNICODE 544K mapped file 337.8M shared memory 4K
=========== ======= TOTAL 808.5M TOTAL, minus reserved VM space 808.4M
This is mostly a guess, but it looks like it's hitting a bug inside Xamarin.iOS where we don't generate the proper binding code for Objective-C blocks when those blocks can be null (this has already been filed as a bug here).
If you had a complete test project I can run I'd be able to confirm this quickly.

Getting a periodic crash when stopping MKMapKit location services

I get a very infrequent crash when stopping MKMapView location services in the applicationDidEnterBackground method. (I'm doing this to ensure that my app does not use location services when the app is in the background.)
The code which gives rise to the crash looks like this:
- (void)MyAppDelegate applicationDidEnterBackground:(UIApplication *app) {
[self.baseAppViewController stopUserTracking];
}
The stopUserTracking method does the following:
-(void)stopUserTracking {
[baseAppViewController.mapView setUserTrackingMode:MKUserTrackingModeNone];
[baseAppViewController.mapView setShowsUserLocation:NO];
}
Note that the baseAppViewController is never released by the app; neither is the mapView. The baseAppViewController is the delegate of its mapView. The delegate is never set to nil.
Here is the stack trace, which ends with a call to MKNormalizedPointForLayer. I've read elsewhere that the MKNormalizedPointForLayer may be due to an invalid annotation latlng (http://stackoverflow.com/questions/9766272/error-in-main-thread-mknormalizedpointforlayer). However I doubt that this is the case for my app: I've tried purposefully adding annotations with invalid lat/lngs, and don't get this error. The fact that this is happening as a result of the MKTilesRequireGoogleLegalNotices call is intriguing, but completely puzzling. Any thoughts?
Thread 0 Crashed:
0 MapKit 0x32b5de94 MKNormalizedPointForLayer + 28043
1 MapKit 0x32b5dd8f MKNormalizedPointForLayer + 27782
2 MapKit 0x32b5dca3 MKNormalizedPointForLayer + 27546
3 MapKit 0x32b6b901 MKTilesRequireGoogleLegalNotices + 44500
4 MapKit 0x32b69eed MKTilesRequireGoogleLegalNotices + 37824
5 MapKit 0x32b50673 MKTileSupportsTileSetStyle + 15378
6 MyApp 0x00040061 -[BaseAppViewController stopUserTracking] (BaseAppViewController.m:785)
7 MyApp 0x0001e3c9 -[MyAppDelegate applicationDidEnterBackground:] (MyAppDelegate.m:325)
8 UIKit 0x334fd235 -[UIApplication _handleApplicationSuspend:eventInfo:] + 760
9 UIKit 0x3348deff -[UIApplication handleEvent:withNewEvent:] + 2094
10 UIKit 0x3348d567 -[UIApplication sendEvent:] + 54
11 MyApp 0x000fcb41 -[UIApplication(HMCustom) customSendEvent:] + 85
12 UIKit 0x3348cf3b _UIApplicationHandleEvent + 5826
13 GraphicsServices 0x3764c22b PurpleEventCallback + 882
14 CoreFoundation 0x35a2d523 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 38
15 CoreFoundation 0x35a2d4c5 __CFRunLoopDoSource1 + 140
16 CoreFoundation 0x35a2c313 __CFRunLoopRun + 1370
17 CoreFoundation 0x359af4a5 CFRunLoopRunSpecific + 300
18 CoreFoundation 0x359af36d CFRunLoopRunInMode + 104
19 GraphicsServices 0x3764b439 GSEventRunModal + 136
20 UIKit 0x334bbcd5 UIApplicationMain + 1080
21 MyApp 0x000026d3 main (main.m:27)
Thread 1:
0 libsystem_kernel.dylib 0x362ff3a8 kevent + 24
1 libdispatch.dylib 0x348e9c29 _dispatch_mgr_wakeup + 0
Thread 2:
0 libsystem_kernel.dylib 0x362ff004 mach_msg_trap + 20
1 CoreFoundation 0x35a2d3f3 __CFRunLoopServiceMachPort + 126
2 CoreFoundation 0x35a2c12b __CFRunLoopRun + 882
3 CoreFoundation 0x359af4a5 CFRunLoopRunSpecific + 300
4 CoreFoundation 0x359af36d CFRunLoopRunInMode + 104
5 WebCore 0x318aeca3 _ZL12RunWebThreadPv + 402
6 libsystem_c.dylib 0x32e1c735 _pthread_start + 320
Thread 3:
0 libsystem_kernel.dylib 0x362ff004 mach_msg_trap + 20
1 CoreFoundation 0x35a2d3f3 __CFRunLoopServiceMachPort + 126
2 CoreFoundation 0x35a2c12b __CFRunLoopRun + 882
3 CoreFoundation 0x359af4a5 CFRunLoopRunSpecific + 300
4 CoreFoundation 0x359af36d CFRunLoopRunInMode + 104
5 MyApp 0x00033823 LoggerWorkerThread (LoggerClient.m:494)
6 libsystem_c.dylib 0x32e1c735 _pthread_start + 320
Thread 4:
0 libsystem_kernel.dylib 0x3630f570 __select + 20
1 libsystem_c.dylib 0x32e1c735 _pthread_start + 320
Thread 5:
0 libsystem_kernel.dylib 0x362ff004 mach_msg_trap + 20
1 CoreFoundation 0x35a2d3f3 __CFRunLoopServiceMachPort + 126
2 CoreFoundation 0x35a2c12b __CFRunLoopRun + 882
3 CoreFoundation 0x359af4a5 CFRunLoopRunSpecific + 300
4 CoreFoundation 0x359af36d CFRunLoopRunInMode + 104
5 Foundation 0x354e8bb9 +[NSURLConnection(Loader) _resourceLoadLoop:] + 308
6 Foundation 0x354e8a81 -[NSThread main] + 72
7 Foundation 0x3557c591 __NSThread__main__ + 1048
8 libsystem_c.dylib 0x32e1c735 _pthread_start + 320
Thread 6:
0 libsystem_kernel.dylib 0x362ff004 mach_msg_trap + 20
1 CoreFoundation 0x35a2d3f3 __CFRunLoopServiceMachPort + 126
2 CoreFoundation 0x35a2c12b __CFRunLoopRun + 882
3 CoreFoundation 0x359af4a5 CFRunLoopRunSpecific + 300
4 CoreFoundation 0x359af36d CFRunLoopRunInMode + 104
5 MapKit 0x32b4de1d MKTileSupportsTileSetStyle + 5052
6 Foundation 0x354e8a81 -[NSThread main] + 72
7 Foundation 0x3557c591 __NSThread__main__ + 1048
8 libsystem_c.dylib 0x32e1c735 _pthread_start + 320
Thread 7:
0 libsystem_kernel.dylib 0x362ff004 mach_msg_trap + 20
1 CoreFoundation 0x35a2d3f3 __CFRunLoopServiceMachPort + 126
2 CoreFoundation 0x35a2c12b __CFRunLoopRun + 882
3 CoreFoundation 0x359af4a5 CFRunLoopRunSpecific + 300
4 CoreFoundation 0x359af36d CFRunLoopRunInMode + 104
5 MyApp 0x0007e78b +[ASIHTTPRequest runRequests] + 171
6 Foundation 0x354e8a81 -[NSThread main] + 72
7 Foundation 0x3557c591 __NSThread__main__ + 1048
8 libsystem_c.dylib 0x32e1c735 _pthread_start + 320
Thread 8:
0 libsystem_kernel.dylib 0x362ff004 mach_msg_trap + 20
1 CoreFoundation 0x35a2d3f3 __CFRunLoopServiceMachPort + 126
2 CoreFoundation 0x35a2c12b __CFRunLoopRun + 882
3 CoreFoundation 0x359af4a5 CFRunLoopRunSpecific + 300
4 CoreFoundation 0x359af36d CFRunLoopRunInMode + 104
5 WebCore 0x318d80d9 _ZN7WebCoreL15runLoaderThreadEPv + 128
6 libsystem_c.dylib 0x32e1c735 _pthread_start + 320
Thread 9:
0 libsystem_kernel.dylib 0x3630fcd4 __workq_kernreturn + 8
Thread 10:
0 libsystem_c.dylib 0x32e16cc8 start_wqthread + 0
Thread 11:
0 libsystem_kernel.dylib 0x3630fcd4 __workq_kernreturn + 8
Thread 12:
0 libsystem_kernel.dylib 0x3630fcd4 __workq_kernreturn + 8
Thread 13:
0 libsystem_kernel.dylib 0x3630fcd4 __workq_kernreturn + 8
Thread 14:
0 libsystem_kernel.dylib 0x362ff004 mach_msg_trap + 20
1 CoreFoundation 0x35a2d3f3 __CFRunLoopServiceMachPort + 126
2 CoreFoundation 0x35a2c12b __CFRunLoopRun + 882
3 CoreFoundation 0x359af4a5 CFRunLoopRunSpecific + 300
4 CoreFoundation 0x359af36d CFRunLoopRunInMode + 104
5 Foundation 0x354dcb75 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 256
6 MyApp 0x0011d50d +[FlurryHTTPEater sendMethod:to:body:headerFields:timeoutInterval:useWebView:] (FlurryHTTPEater.m:67)
7 MyApp 0x00126ae9 +[FlurrySession sendSessionsToServerWithTimeout:useWebView:requestAppCircleAds:requestVideoAds:requestAppSpotAds:requestReengageAds:sendCurrentSession:] (FlurrySession.m:1053)
8 MyApp 0x001265c7 +[FlurrySession sendSessionsToServerForAppCircle] (FlurrySession.m:1016)
9 Foundation 0x354e8a81 -[NSThread main] + 72
10 Foundation 0x3557c591 __NSThread__main__ + 1048
11 libsystem_c.dylib 0x32e1c735 _pthread_start + 320
Thread 15:
0 libsystem_kernel.dylib 0x3630fcd4 __workq_kernreturn + 8
Thread 16:
0 libsystem_kernel.dylib 0x3630fcd4 __workq_kernreturn + 8
Thread 17:
0 libsystem_kernel.dylib 0x3630fcd4 __workq_kernreturn + 8
Thread 0 crashed with ARM Thread State:
r0: 0x00000000 r1: 0x00000000 r2: 0x00000000 r3: 0x41a00000
r4: 0x003b3520 r5: 0x003b3520 r6: 0xfffffffc r7: 0x2fea761c
r8: 0x3f01fae8 r9: 0x00000000 r10: 0x0eaec170 r11: 0x3f485f10
ip: 0xbff00000 sp: 0x2fea7610 lr: 0x32b548ef pc: 0x32b5de94
cpsr: 0x20080030
Binary Images:
(truncated)
I am not 100% sure that it can be that, but your problem might come from a "delegate" problem.
Try to call this line in your method stopUserTracking :
baseAppViewController.mapView.delegate = nil;
This should prevent the map from sending information to deallocated instance of your view controller, causing your app to crash.
Be sure to add this line when your app is reloading from background (maybe in viewWillAppear ?) to make sure your app behaves correctly :
baseAppViewController.mapView.delegate = self;
If it does not solve your problem, try to enable "Zombie object" in the options of your configurations as mentioned here : How do I set up NSZombieEnabled in Xcode 4? it oftens helps to understand what's happening when such unexpected errors happens in apps.

help with the following crashDump

If this is not the right forum to ask such question, please point me to the right one.
The app I am working on uses the location of the user and alert the user when certain condition is met. The alert is in form of vibration and a playback of a small file. During testing on the device, the phone vibrates and the audio clip plays for 2 seconds (the clip is about 9 secs long) and the app crashes. The crashes are consistent on the device. On the simulator, occasionally, I see the crashes but not consistent.
The trigger to set off the alert is in the delegate method of CLLocation class
- (void)locationManager:manager didUpdateToLocation:fromLocation:
Here's the code fragment (ivLocMgr is an instance variable)
if ((!ivAlertAlreadyShown) && (<test for trigger condition)) {
ivAlertAlreadyShown = YES;
[self obviousNotification];
[ivLocMgr stopUpdatingLocation];
[ivLocMgr release], ivLocMgr = nil;
}
Can the [ivLocMgr stopUpdatingLocation]; be the root cause?
Any and all help is greatly appreciated.
-S-
Incident Identifier: 8875BB08-4DAD-4FC7-8DC6-AA5D52D6FC78
CrashReporter Key: f995a257bad99baa2fcf0f7d5b0ab3e77dce3a91
Hardware Model: iPhone2,1
Process: SAlert [360]
Path: /var/mobile/Applications/D3B5BAED-036C-4CFE-A735-A61D6ECCDAF6/SAlert.app/SpAlert
Identifier: SAlert
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2011-08-30 07:35:41.206 -0700
OS Version: iPhone OS 4.2.1 (8C148a)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x46924508
Crashed Thread: 0
Thread 0 Crashed:
0 libobjc.A.dylib 0x3199f464 objc_msgSend + 16
1 CoreLocation 0x30e1f430 -[CLLocationManager onClientEventLocation:] + 560
2 CoreLocation 0x30e1d68e -[CLLocationManager onClientEvent:supportInfo:] + 98
3 CoreLocation 0x30e1d804 OnClientEvent + 16
4 CoreLocation 0x30e19522 CLClientInvokeCallback(__CLClient*, CLClientEvent, __CFDictionary const*) + 42
5 CoreLocation 0x30e1b3cc CLClientHandleDaemonDataLocation(__CLClient*, CLClientLocation const*, __CFDictionary const*) + 196
6 CoreLocation 0x30e1b512 CLClientHandleDaemonData(__CFMessagePort*, long, __CFData const*, void*) + 286
7 CoreFoundation 0x314913fe __CFMessagePortPerform + 242
8 CoreFoundation 0x314656f8 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 20
9 CoreFoundation 0x314656bc __CFRunLoopDoSource1 + 160
10 CoreFoundation 0x31457f76 __CFRunLoopRun + 514
11 CoreFoundation 0x31457c80 CFRunLoopRunSpecific + 224
12 CoreFoundation 0x31457b88 CFRunLoopRunInMode + 52
13 GraphicsServices 0x35d664a4 GSEventRunModal + 108
14 GraphicsServices 0x35d66550 GSEventRun + 56
15 UIKit 0x338d5322 -[UIApplication _run] + 406
16 UIKit 0x338d2e8c UIApplicationMain + 664
17 StopAlert 0x00002f76 0x1000 + 8054
18 StopAlert 0x00002f40 0x1000 + 8000
Thread 1:
0 libSystem.B.dylib 0x31192974 kevent + 24
1 libSystem.B.dylib 0x3123c704 _dispatch_mgr_invoke + 88
2 libSystem.B.dylib 0x3123c174 _dispatch_queue_invoke + 96
3 libSystem.B.dylib 0x3123bb98 _dispatch_worker_thread2 + 120
4 libSystem.B.dylib 0x311e024a _pthread_wqthread + 258
5 libSystem.B.dylib 0x311d8970 start_wqthread + 0
Thread 2:
0 libSystem.B.dylib 0x31166268 mach_msg_trap + 20
1 libSystem.B.dylib 0x31168354 mach_msg + 44
2 CoreFoundation 0x31458648 __CFRunLoopServiceMachPort + 88
3 CoreFoundation 0x31457ed2 __CFRunLoopRun + 350
4 CoreFoundation 0x31457c80 CFRunLoopRunSpecific + 224
5 CoreFoundation 0x31457b88 CFRunLoopRunInMode + 52
6 WebCore 0x33d9f124 RunWebThread(void*) + 332
7 libSystem.B.dylib 0x311df886 _pthread_start + 242
8 libSystem.B.dylib 0x311d4a88 thread_start + 0
Thread 3:
0 libSystem.B.dylib 0x31166268 mach_msg_trap + 20
1 libSystem.B.dylib 0x31168354 mach_msg + 44
2 CoreFoundation 0x31458648 __CFRunLoopServiceMachPort + 88
3 CoreFoundation 0x31457ed2 __CFRunLoopRun + 350
4 CoreFoundation 0x31457c80 CFRunLoopRunSpecific + 224
5 CoreFoundation 0x31457b88 CFRunLoopRunInMode + 52
6 Foundation 0x31cf15f6 +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:] + 206
7 Foundation 0x31ccf192 -[NSThread main] + 38
8 Foundation 0x31cc8242 __NSThread__main__ + 966
9 libSystem.B.dylib 0x311df886 _pthread_start + 242
10 libSystem.B.dylib 0x311d4a88 thread_start + 0
Thread 4:
0 libSystem.B.dylib 0x3118a68c select$DARWIN_EXTSN + 20
1 CoreFoundation 0x3148f662 __CFSocketManager + 582
2 libSystem.B.dylib 0x311df886 _pthread_start + 242
3 libSystem.B.dylib 0x311d4a88 thread_start + 0
Thread 5:
0 libSystem.B.dylib 0x31166268 mach_msg_trap + 20
1 libSystem.B.dylib 0x31168354 mach_msg + 44
2 CoreFoundation 0x31458648 __CFRunLoopServiceMachPort + 88
3 CoreFoundation 0x31457ed2 __CFRunLoopRun + 350
4 CoreFoundation 0x31457c80 CFRunLoopRunSpecific + 224
5 CoreFoundation 0x31457b88 CFRunLoopRunInMode + 52
6 MapKit 0x347a2906 TileCachePrivate::runCacheThread() + 274
7 MapKit 0x347a27ea _runCacheThread(void*) + 2
8 libSystem.B.dylib 0x311df886 _pthread_start + 242
9 libSystem.B.dylib 0x311d4a88 thread_start + 0
Thread 6:
0 libSystem.B.dylib 0x311de9f0 __semwait_signal + 24
1 libSystem.B.dylib 0x311937ec _pthread_cond_wait + 748
2 libSystem.B.dylib 0x311933d2 pthread_cond_wait + 26
3 QuartzCore 0x30a925dc CA::DispatchGroup::thread(void*) + 84
4 QuartzCore 0x30a5f01a thread_fun + 10
5 libSystem.B.dylib 0x311df886 _pthread_start + 242
6 libSystem.B.dylib 0x311d4a88 thread_start + 0
Thread 7:
0 libSystem.B.dylib 0x31166268 mach_msg_trap + 20
1 libSystem.B.dylib 0x31168354 mach_msg + 44
2 libSystem.B.dylib 0x3118af5a thread_policy + 118
3 libSystem.B.dylib 0x3118aed2 pthread_setschedparam_internal + 62
4 libSystem.B.dylib 0x3118ae0e pthread_setschedparam + 70
5 TextInput 0x31e8128a KB::kb_set_thread_priority(int) + 18
6 TextInput 0x31e71f74 KB::BackgroundLoad(void*) + 84
7 libSystem.B.dylib 0x311df886 _pthread_start + 242
8 libSystem.B.dylib 0x311d4a88 thread_start + 0
Thread 0 crashed with ARM Thread State:
r0: 0x0403000f r1: 0x33baf8ef r2: 0x30e4bff6 r3: 0x00000001
r4: 0x46924500 r5: 0x30e1d7f5 r6: 0x00a01c64 r7: 0x2fdfec44
r8: 0x00000000 r9: 0x040fc098 r10: 0x00000000 r11: 0x00000000
ip: 0x3e16c584 sp: 0x2fdfeaa0 lr: 0x30e1f437 pc: 0x3199f464
cpsr: 0x200f0030
Found the answer on Apple Developers' Forum:
I needed to set the coreLocation instance's delegate to nil, when the alarm was triggered.
There isn't enough code there to properly determine the cause of the abort. The error you are getting is telling you that you are trying to access a variable that has already been released. I would start there and make sure you haven't released your location manager or some other variable there.

Resources