I am a relatively new developer and would like some assistance. My app does not crash when I have it hooked up via Xcode. However, when I try to run it again the next day (launching from my phone), it crashes when trying to open it. I am currently debugging the situation and am unsure how to proceed.
I'm having troubles with understanding how a device log crashes work. I was able to get to my device's crashes in Xcode via Window>Device and Simulators>View Device Logs>All Logs. I am able to understand that having an Exception type of "EXC_BREAKPOINT (SIGTRAP)" means that I force unwrap a nil value. I am unsure how through looking at the log (or any other method) that I can locate in my code where this is happening. How can I locate in all my files where this is causing a crash?
Date/Time: 2018-04-05 14:33:48.7121 -0500
Launch Time: 2018-04-05 14:33:47.8058 -0500
OS Version: iPhone OS 11.3 (15E216)
Baseband Version: 1.04.16
Report Version: 104
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x0000000104177ff8
Termination Signal: Trace/BPT trap: 5
Termination Reason: Namespace SIGNAL, Code 0x5
Terminating Process: exc handler [0]
Triggered by Thread: 1
Filtered syslog:
None found
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libsystem_kernel.dylib 0x0000000180d07e08 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000180d07c80 mach_msg + 72
2 CoreFoundation 0x000000018124ae40 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000181248908 __CFRunLoopRun + 1568
4 CoreFoundation 0x0000000181168da8 CFRunLoopRunSpecific + 552
5 GraphicsServices 0x000000018314b020 GSEventRunModal + 100
6 UIKit 0x000000018b14978c UIApplicationMain + 236
7 &me 0x0000000102cd00e4 0x102bac000 + 1196260
8 libdyld.dylib 0x0000000180bf9fc0 start + 4
Thread 1 name: Dispatch queue: NSOperationQueue 0x1d4224f80 (QOS: UNSPECIFIED)
Thread 1 Crashed:
0 libswiftCore.dylib 0x0000000104177ff8 0x103fd0000 + 1736696
1 libswiftCore.dylib 0x0000000104177ff8 0x103fd0000 + 1736696
2 libswiftCore.dylib 0x00000001040182b8 0x103fd0000 + 295608
3 &me 0x0000000102c9576c 0x102bac000 + 956268
4 &me 0x0000000102c95cbc 0x102bac000 + 957628
5 CFNetwork 0x0000000181831c1c __75-[__NSURLSessionLocal taskForClass:request:uploadFile:bodyData:completion:]_block_invoke + 32
6 CFNetwork 0x000000018184a93c __49-[__NSCFLocalSessionTask _task_onqueue_didFinish]_block_invoke + 152
7 Foundation 0x0000000181ccae88 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 16
8 Foundation 0x0000000181c0c8d0 -[NSBlockOperation main] + 72
9 Foundation 0x0000000181c0bcac -[__NSOperationInternal _start:] + 848
10 libdispatch.dylib 0x0000000180b94ae4 _dispatch_client_callout + 16
11 libdispatch.dylib 0x0000000180bd0b0c _dispatch_block_invoke_direct$VARIANT$armv81 + 216
12 libdispatch.dylib 0x0000000180b94ae4 _dispatch_client_callout + 16
13 libdispatch.dylib 0x0000000180bd0b0c _dispatch_block_invoke_direct$VARIANT$armv81 + 216
14 libdispatch.dylib 0x0000000180bd0a00 dispatch_block_perform$VARIANT$armv81 + 104
15 Foundation 0x0000000181ccc750 __NSOQSchedule_f + 376
16 libdispatch.dylib 0x0000000180b94ae4 _dispatch_client_callout + 16
17 libdispatch.dylib 0x0000000180bd17a8 _dispatch_continuation_pop$VARIANT$armv81 + 416
18 libdispatch.dylib 0x0000000180bd0180 _dispatch_async_redirect_invoke$VARIANT$armv81 + 596
19 libdispatch.dylib 0x0000000180bd63a4 _dispatch_root_queue_drain + 592
20 libdispatch.dylib 0x0000000180bd60f0 _dispatch_worker_thread3 + 112
21 libsystem_pthread.dylib 0x0000000180ec7fac _pthread_wqthread + 1176
22 libsystem_pthread.dylib 0x0000000180ec7b08 start_wqthread + 4
To understand the crash log you can go through the following apple documentation. This is the best explanation I found so far.
https://developer.apple.com/library/content/technotes/tn2151/_index.html
Related
Thats my first app I'm trying to deploy. When I test it with TestFlight it crashed immediately. The app works fine for android and iOS on simulator. I also tested the release apk for android successfully.
Does someone understands what the following crash log means?
The App was built with React-Native.
Incident Identifier: 1144C002-DE4C-41AD-A6AF-8F7C8A760A7E
Beta Identifier: 839379BA-3B5B-4047-9CA8-A231CCD36128
Hardware Model: iPhone11,2
Process: bartenderrai [880]
Path: /private/var/containers/Bundle/Application/E1BE6D04-1553-4EB8-A171-67B6D1181D2A/bartenderrai.app/bartenderrai
Identifier: *****
Version: 1.2 (1.0)
AppStoreTools: 10B61
AppVariant: 1:iPhone11,2:12
Beta: YES
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: ***** [689]
Date/Time: 2018-11-10 21:09:41.1513 +0100
Launch Time: 2018-11-10 21:09:40.8645 +0100
OS Version: iPhone OS 12.1 (16B92)
Baseband Version: 1.01.30
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 3
Last Exception Backtrace:
0 CoreFoundation 0x22f836f2c __exceptionPreprocess + 232 (NSException.m:172)
1 libobjc.A.dylib 0x22ea34284 objc_exception_throw + 60 (objc-exception.mm:557)
2 bartenderrai 0x102c8d40c RCTFatal + 448 (RCTAssert.m:132)
3 bartenderrai 0x102c8aed4 -[RCTExceptionsManager reportFatalException:stack:exceptionId:] + 492 (RCTExceptionsManager.m:58)
4 CoreFoundation 0x22f83e8b4 __invoking___ + 148
5 CoreFoundation 0x22f717538 -[NSInvocation invoke] + 308 (NSForwarding.m:3052)
6 CoreFoundation 0x22f71816c -[NSInvocation invokeWithTarget:] + 64 (NSForwarding.m:3123)
7 bartenderrai 0x102ca17d0 -[RCTModuleMethod invokeWithBridge:module:arguments:] + 492 (RCTModuleMethod.mm:544)
8 bartenderrai 0x102ce5c90 facebook::react::invokeInner(RCTBridge*, RCTModuleData*, unsigned int, folly::dynamic const&) + 248 (RCTNativeModule.mm:99)
9 bartenderrai 0x102ce59f0 invocation function for block in facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int) + 88 (RCTNativeModule.mm:71)
10 libdispatch.dylib 0x22f23bd58 _dispatch_call_block_and_release + 32 (init.c:1372)
11 libdispatch.dylib 0x22f23d2f0 _dispatch_client_callout + 20 (object.m:511)
12 libdispatch.dylib 0x22f2446e0 _dispatch_lane_serial_drain + 552 (inline_internal.h:2441)
13 libdispatch.dylib 0x22f245228 _dispatch_lane_invoke + 368 (inline_internal.h:1808)
14 libdispatch.dylib 0x22f24d508 _dispatch_workloop_worker_thread + 588 (queue.c:5889)
15 libsystem_pthread.dylib 0x22f43cb20 _pthread_wqthread + 316 (pthread.c:2363)
16 libsystem_pthread.dylib 0x22f442dd4 start_wqthread + 4
Thread 0 name:
Thread 0:
0 libsystem_kernel.dylib 0x000000022f3b8a68 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x000000022f3b7f24 mach_msg + 76 (mach_msg.c:103)
2 CoreFoundation 0x000000022f7c506c __CFRunLoopServiceMachPort + 240 (CFRunLoop.c:2615)
3 CoreFoundation 0x000000022f7bfd08 __CFRunLoopRun + 1372 (CFRunLoop.c:2971)
4 CoreFoundation 0x000000022f7bf494 CFRunLoopRunSpecific + 452 (CFRunLoop.c:3247)
5 GraphicsServices 0x0000000231a72be8 GSEventRunModal + 104 (GSEvent.c:2245)
6 UIKitCore 0x000000025d3ce68c UIApplicationMain + 216 (UIApplication.m:4347)
7 bartenderrai 0x0000000102c321c8 main + 88 (main.m:14)
8 libdyld.dylib 0x000000022f275050 start + 4
Thread 1:
0 libsystem_pthread.dylib 0x000000022f442dd0 start_wqthread + 0
Thread 2:
0 libsystem_pthread.dylib 0x000000022f442dd0 start_wqthread + 0
Thread 3 Crashed:
0 libsystem_kernel.dylib 0x000000022f3c40e4 __pthread_kill + 8
1 libsystem_pthread.dylib 0x000000022f43bb50 pthread_kill + 300 (pthread.c:1492)
2 libsystem_c.dylib 0x000000022f31bfcc abort + 144 (abort.c:94)
3 libc++abi.dylib 0x000000022ea1b818 abort_message + 136 (abort_message.cpp:75)
4 libc++abi.dylib 0x000000022ea1b9d8 default_terminate_handler() + 316 (cxa_default_handlers.cpp:68)
5 libobjc.A.dylib 0x000000022ea346c8 _objc_terminate() + 124 (objc-exception.mm:693)
6 libc++abi.dylib 0x000000022ea282d0 std::__terminate(void (*)()) + 20 (cxa_handlers.cpp:66)
7 libc++abi.dylib 0x000000022ea28344 std::terminate() + 60 (cxa_handlers.cpp:97)
8 libdispatch.dylib 0x000000022f23d304 _dispatch_client_callout + 40 (object.m:514)
9 libdispatch.dylib 0x000000022f2446e0 _dispatch_lane_serial_drain + 552 (inline_internal.h:2441)
10 libdispatch.dylib 0x000000022f245228 _dispatch_lane_invoke + 368 (inline_internal.h:1808)
11 libdispatch.dylib 0x000000022f24d508 _dispatch_workloop_worker_thread + 588 (queue.c:5889)
12 libsystem_pthread.dylib 0x000000022f43cb20 _pthread_wqthread + 316 (pthread.c:2363)
13 libsystem_pthread.dylib 0x000000022f442dd4 start_wqthread + 4
Clean build your project and make sure to select Release in edit scheme menu, if you have not done that then I guess that is the problem
Clean your build folder and restart your Xcode. Also, make sure that you have generated your Provisioning profiles for Distribution and not iOS Development. The development will be for local builds and for Testflight you will need distribution profiles. You can create them here: https://developer.apple.com/account/resources/profiles/list and import them to your project. You can switch from Automatically Sign project to Manual signing and then select your correct provisioning profile.
Firstly, the desymbolicated crash log is at the bottom. I cannot post all the content out of privacy reason. However the first 3 threads log is enough I thought, if you really want that please leave a message.
And here is the thing, depending on this article Understanding iOS Exception Types | 5Neo.Be5Neo.Be, the mach exception type -- EXC_CRASH -- is not usual following with the C signal SIGSEGV (which means access an address you don't own).
So I want to know what reason or when will EXC_CRASH (SIGSEGV) appear?
Second question is if this crash is actually trigger by Thread 0 as the log said. And if it's ture, then what does
"__NSThreadPerformPerform"
and
"__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__"
means?
What action is system doing? By the way, __NSThreadPerformPerform will appear when App call "performSelector:" method according to this answer -- iphone - SIGABRT crash on CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION - Stack Overflow.
Thanks.
-- Crash log is here: --
{"name":"XXXApp","bug_type":"109","os_version":"iPhone OS 7.1.1 (11D201)","bundleID":"com.xxx","version":"6.7.1.0 (6.7.1)","app_name":"XXXApp"}
Incident Identifier: EC2DC883-C0DB-4FD6-81FB-237626598366
CrashReporter Key: d5c091bc35732df06fcaf41e5786833159b04ea5
Hardware Model: iPhone5,2
Process: XXXApp [1912]
Path: /var/mobile/Applications/4E3E131C-5847-4B61-A0E0-D350830C1693/BaiduBoxApp.app/XXXApp
Identifier: com.xxx
Version: 6.7.1.0 (6.7.1)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2015-08-28 00:37:32.658 +0800
OS Version: iOS 7.1.1 (11D201)
Report Version: 104
Exception Type: EXC_CRASH (SIGSEGV)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 0
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x39c636d8 __kill + 8
1 Foundation 0x2f901c1e __NSThreadPerformPerform + 382
2 CoreFoundation 0x2eee3fec __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 12
3 CoreFoundation 0x2eee34b2 __CFRunLoopDoSources0 + 202
4 CoreFoundation 0x2eee1ca2 __CFRunLoopRun + 626
5 CoreFoundation 0x2ee4c764 CFRunLoopRunSpecific + 520
6 CoreFoundation 0x2ee4c546 CFRunLoopRunInMode + 102
7 GraphicsServices 0x33db96ce GSEventRunModal + 134
8 UIKit 0x317ab88c UIApplicationMain + 1132
9 BaiduBoxApp 0x0006d13e main (main.m:17)
10 libdyld.dylib 0x39badab4 start + 0
Thread 1:
0 libsystem_kernel.dylib 0x39c51804 kevent64 + 24
1 libdispatch.dylib 0x39ba0050 _dispatch_mgr_invoke + 228
2 libdispatch.dylib 0x39b9a2de _dispatch_mgr_thread + 34
Thread 2 name: com.apple.NSURLConnectionLoader
Thread 2:
0 libsystem_kernel.dylib 0x39c51a50 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x39c51848 mach_msg + 36
2 CoreFoundation 0x2eee3624 __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x2eee1d44 __CFRunLoopRun + 788
4 CoreFoundation 0x2ee4c764 CFRunLoopRunSpecific + 520
5 CoreFoundation 0x2ee4c546 CFRunLoopRunInMode + 102
6 Foundation 0x2f88c23c +[NSURLConnection(Loader) _resourceLoadLoop:] + 316
7 Foundation 0x2f901a0a __NSThread__main__ + 1058
8 libsystem_pthread.dylib 0x39ccb956 _pthread_body + 138
9 libsystem_pthread.dylib 0x39ccb8c6 _pthread_start + 98
10 libsystem_pthread.dylib 0x39cc9ae4 thread_start + 4
Thread 3 name: com.apple.CFSocket.private
Thread 3:
0 libsystem_kernel.dylib 0x39c64434 __select + 20
1 CoreFoundation 0x2eee751e __CFSocketManager + 482
2 libsystem_pthread.dylib 0x39ccb956 _pthread_body + 138
3 libsystem_pthread.dylib 0x39ccb8c6 _pthread_start + 98
4 libsystem_pthread.dylib 0x39cc9ae4 thread_start + 4
...
I am using Unity 4.6.6f2 and made il2cpp build to support 64 bit requirement from apple. I am having strange random crash and in device crash logs, I see these crash reports. It is happening on multiple devices and all of them have this in common:
Here's the logs:
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
Date/Time: 2015-06-18 12:06:11.292 +0400
Launch Time: 2015-06-18 11:50:59.940 +0400
OS Version: iOS 8.1 (12B410)
Report Version: 105
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x000000000000029c
Triggered by Thread: 36
Thread 36 name: Dispatch queue: com.apple.IOAccelerator.BlockFences
Thread 36 Crashed:
0 libobjc.A.dylib 0x0000000194b739f4 objc_disposeClassPair + 192
1 libobjc.A.dylib 0x0000000194b739bc objc_disposeClassPair + 136
2 libsystem_blocks.dylib 0x000000019520190c _Block_release + 252
3 IOAccelerator 0x000000018d68aca4 ioAccelCommandQueueBlockFenceCallback + 60
4 IOKit 0x00000001851c58cc IODispatchCalloutFromCFMessage + 372
5 IOKit 0x00000001851c596c _IODispatchCalloutWithDispatch + 36
6 libdispatch.dylib 0x00000001951b2a2c dispatch_mig_server + 432
7 libdispatch.dylib 0x00000001951ad368 _dispatch_client_callout + 12
8 libdispatch.dylib 0x00000001951c20c4 _dispatch_source_latch_and_call + 788
9 libdispatch.dylib 0x00000001951af4d0 _dispatch_source_invoke + 284
10 libdispatch.dylib 0x00000001951b72a0 _dispatch_queue_drain + 672
11 libdispatch.dylib 0x00000001951b0470 _dispatch_queue_invoke + 128
12 libdispatch.dylib 0x00000001951b9220 _dispatch_root_queue_drain + 660
13 libdispatch.dylib 0x00000001951ba758 _dispatch_worker_thread3 + 104
14 libsystem_pthread.dylib 0x00000001953892e0 _pthread_wqthread + 812
15 libsystem_pthread.dylib 0x0000000195388fa4 start_wqthread + 0
I am facing issue with the private apis used in my application.So,I found that App Scanner application is a good tool for scanning those kind of issues.So i have installed it from here .When trying to test my application it crashes giving me following crash report.
Process: App Scanner [1951]
Path: /Users/USER/Downloads/*/App Scanner.app/Contents/MacOS/App Scanner
Identifier: com.chimpstudios.appscanner
Version: 1.4 (1.4.1)
Code Type: X86-64 (Native)
Parent Process: launchd [137]
Date/Time: 2013-06-18 12:28:57.620 +0530
OS Version: Mac OS X 10.7.5 (11G63)
Report Version: 9
Interval Since Last Report: 571103 sec
Crashes Since Last Report: 13
Per-App Interval Since Last Report: 938 sec
Per-App Crashes Since Last Report: 7
Anonymous UUID: EC833868-1E25-4F4F-BC83-52C9B937E8A7
Crashed Thread: 8
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
objc[1951]: garbage collection is OFF
*** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[NSConcreteData subdataWithRange:]: range {1651465984, 1633641322} exceeds data length 4295932'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff92809f56 __exceptionPreprocess + 198
1 libobjc.A.dylib 0x00007fff96085d5e objc_exception_throw + 43
2 CoreFoundation 0x00007fff92809d8a +[NSException raise:format:arguments:] + 106
3 CoreFoundation 0x00007fff92809d14 +[NSException raise:format:] + 116
4 Foundation 0x00007fff946b9a4b -[NSData(NSData) subdataWithRange:] + 291
5 App Scanner 0x000000010000376c App Scanner + 14188
6 Foundation 0x00007fff9470a72a -[NSThread main] + 68
7 Foundation 0x00007fff9470a6a2 __NSThread__main__ + 1575
8 libsystem_c.dylib 0x00007fff984308bf _pthread_start + 335
9 libsystem_c.dylib 0x00007fff98433b75 thread_start + 13
)
terminate called throwing an exception
abort() called
Thread 0:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff9854667a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff98545d71 mach_msg + 73
2 com.apple.CoreFoundation 0x00007fff9279650c __CFRunLoopServiceMachPort + 188
3 com.apple.CoreFoundation 0x00007fff9279ec74 __CFRunLoopRun + 1204
4 com.apple.CoreFoundation 0x00007fff9279e486 CFRunLoopRunSpecific + 230
5 com.apple.HIToolbox 0x00007fff965892bf RunCurrentEventLoopInMode + 277
6 com.apple.HIToolbox 0x00007fff9659056d ReceiveNextEventCommon + 355
7 com.apple.HIToolbox 0x00007fff965903fa BlockUntilNextEventMatchingListInMode + 62
8 com.apple.AppKit 0x00007fff992a1779 _DPSNextEvent + 659
9 com.apple.AppKit 0x00007fff992a107d -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 135
10 com.apple.AppKit 0x00007fff9929d9b9 -[NSApplication run] + 470
11 com.apple.AppKit 0x00007fff99519eac NSApplicationMain + 867
12 com.chimpstudios.appscanner 0x0000000100001074 0x100000000 + 4212
Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x00007fff985487e6 kevent + 10
1 libdispatch.dylib 0x00007fff92724786 _dispatch_mgr_invoke + 923
2 libdispatch.dylib 0x00007fff92723316 _dispatch_mgr_thread + 54
Thread 2:: WebCore: LocalStorage
0 libsystem_kernel.dylib 0x00007fff98547bca __psynch_cvwait + 10
1 libsystem_c.dylib 0x00007fff98434274 _pthread_cond_wait + 840
2 com.apple.JavaScriptCore 0x00007fff93546a60 WTF::ThreadCondition::timedWait(WTF::Mutex&, double) + 64
3 com.apple.WebCore 0x00007fff8efcdf9a WTF::MessageQueue<WebCore::LocalStorageTask>::waitForMessage() + 132
4 com.apple.WebCore 0x00007fff8efcdef3 WebCore::LocalStorageThread::threadEntryPoint() + 99
5 com.apple.WebCore 0x00007fff8efcde3b WebCore::LocalStorageThread::threadEntryPointCallback(void*) + 9
6 libsystem_c.dylib 0x00007fff984308bf _pthread_start + 335
7 libsystem_c.dylib 0x00007fff98433b75 thread_start + 13
Can anybody let me know what's the issue as it is not crashing in any of the device nor in the simulator?
I'm seeing this crash my iOS app after it's been running for 10 minutes:
Date/Time: 2012-02-22 15:26:41.415 -0800
OS Version: iPhone OS 5.0.1 (9A405)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x49980286
Crashed Thread: 6
The offending thread:
Thread 6 name: Dispatch queue: com.apple.locationd.registration.xpcq
Thread 6 Crashed:
0 libstdc++.6.dylib 0x33ed32f8 std::string::compare(std::string const&) const + 8
1 CoreLocation 0x3095ad54 std::_Rb_tree<std::string, std::pair<std::string const, void ( block_pointer)(CLConnectionMessage*)>, std::_Select1st<std::pair<std::string const, void ( block_pointer)(CLConnectionMessage*)> >, std::less<std::string>, std::allocator<std::pair<std::string const, void ( block_pointer)(CLConnectionMessage*)> > >::find(std::string const&) + 32
2 CoreLocation 0x30959964 CLConnection::handleMessage(CLConnectionMessage*) + 16
3 CoreLocation 0x3095a78c __setEventHandler_block_invoke_0 + 360
4 libxpc.dylib 0x37a428c2 __XPC_CONNECTION_EVENT_HANDLER_CALLOUT__ + 30
5 libxpc.dylib 0x37a3bd5c _xpc_connection_recv_message + 500
6 libxpc.dylib 0x37a3bb18 _xpc_connection_wakeup_recv + 160
7 libxpc.dylib 0x37a3b9b8 _xpc_connection_wakeup2 + 1264
8 libxpc.dylib 0x37a3b3f6 _xpc_connection_wakeup + 62
9 libdispatch.dylib 0x36d7821e _dispatch_source_invoke + 510
10 libdispatch.dylib 0x36d75b70 _dispatch_queue_invoke$VARIANT$up + 40
11 libdispatch.dylib 0x36d75caa _dispatch_queue_drain + 202
12 libdispatch.dylib 0x36d75b66 _dispatch_queue_invoke$VARIANT$up + 30
13 libdispatch.dylib 0x36d75caa _dispatch_queue_drain + 202
14 libdispatch.dylib 0x36d75b66 _dispatch_queue_invoke$VARIANT$up + 30
15 libdispatch.dylib 0x36d75caa _dispatch_queue_drain + 202
16 libdispatch.dylib 0x36d75b66 _dispatch_queue_invoke$VARIANT$up + 30
17 libdispatch.dylib 0x36d7676c _dispatch_worker_thread2 + 208
18 libsystem_c.dylib 0x32ee21c8 _pthread_wqthread + 288
19 libsystem_c.dylib 0x32ee209c start_wqthread + 0
The console doesn't give me any messages except to say that I have a crash. Any thoughts?
So after lots of digging I was able to repro the issue and find what was causing it. This seems to occur if you call -[CLLocationManager startUpdatingLocation] and -[CLLocationManager stopUpdatingLocation] in a tight loop.
I was having this trouble as well, but only on iOS 5.x (testing in Simulator, don't have the device.) It seemed to occur when I had more than one location manager instance, and both had the delegate set.