CLLocation crashes/app stability
Hi,
Looking for a few pointers on how to debug my (first) application.
When testing on device, I often get the CLLocation symbol in the status bar long after the relevant controller has been dismissed, and also when the app has been sent to the background.
The app typically crashes once it has been recalled to the foreground
My crash logs always point to CLLocation, but I'm not sure what I'm doing wrong
Crash log excript;
Date/Time: 2011-03-15 20:23:33.733 +0000
OS Version: iPhone OS 4.2.1 (8C148)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x00000000
Crashed Thread: 0
Thread 0 Crashed:
0 libobjc.A.dylib 0x33479466 0x33476000 + 13414
1 CoreLocation 0x3436f68e -[CLLocationManager onClientEvent:supportInfo:] + 98
2 CoreLocation 0x3436f804 OnClientEvent + 16
3 CoreLocation 0x3436b522 CLClientInvokeCallback(__CLClient*, CLClientEvent, __CFDictionary const*) + 42
4 CoreLocation 0x3436cf74 CLClientHandleDaemonDataRegistration(__CLClient*, CLDaemonCommToClientRegistration const*, __CFDictionary const*) + 668
5 CoreLocation 0x3436d4c8 CLClientHandleDaemonData(__CFMessagePort*, long, __CFData const*, void*) + 212
6 CoreFoundation 0x33a813fe __CFMessagePortPerform + 242
7 CoreFoundation 0x33a556f8 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FU NCTION__ + 20
8 CoreFoundation 0x33a556bc __CFRunLoopDoSource1 + 160
9 CoreFoundation 0x33a47f76 __CFRunLoopRun + 514
10 CoreFoundation 0x33a47c80 CFRunLoopRunSpecific + 224
11 CoreFoundation 0x33a47b88 CFRunLoopRunInMode + 52
12 GraphicsServices 0x33b0e4a4 GSEventRunModal + 108
13 GraphicsServices 0x33b0e550 GSEventRun + 56
14 UIKit 0x32099322 -[UIApplication _run] + 406
15 UIKit 0x32096e8c UIApplicationMain + 664
16 DubPub 0x00002a46 main (main.m:14)
17 DubPub 0x00002a10 start + 32
I use a CLManager in two controllers, and don't have a time-out for either. Nor do I check for a desired accuracy.
I stopUpdating in my dealloc statement for each controller, and set the locationManager=nil.
I would really appreciate any help in debugging this.
Thanks,
Deaglan7.
|