Note that there are some explanatory texts on larger screens.

plurals
  1. POiOS crash in CFStringGetLength in CoreFoundation
    primarykey
    data
    text
    <p>I'm getting a crash that, to me, seems as though it is a bug in the way that Apple is handling the <code>goToDefaultLocation</code> message of MKMapView. That message in turn calls <code>[ALCityManager localeWithCode:]</code>, which calls <code>[NSLocale componentsFromLocaleIdentifier:]</code> which calls <code>CFLocaleCreateComponentsFromLocaleIdentifier</code> which calls <code>CFStringGetLength</code> and the crash occurs.</p> <p>Can someone help to point me in the direction of either fixing the bug, if it is my code that is causing this, or, helping me find a workaround if, in fact, this is a bug in Apple's code (unlikely??). </p> <p>Crash log below:</p> <pre> Incident Identifier: 84198BB6-45BD-493B-955F-75CCB5246DDD CrashReporter Key: 7dbf53bf1f1a3635d7c3c49e726dedc609ed9f3a Hardware Model: iPhone3,1 Process: MyApp [340] Path: /var/mobile/Applications/DCE9A5A1-8E24-4D4F-A1ED-9855C6CA1742/MyApp.app/MyApp Identifier: MyApp Version: ??? (???) Code Type: ARM (Native) Parent Process: launchd [1] Date/Time: 2011-03-25 10:36:06.382 -0700 OS Version: iPhone OS 4.3 (8F190) Report Version: 104 Exception Type: EXC_BAD_ACCESS (SIGBUS) Exception Codes: KERN_PROTECTION_FAILURE at 0x00000000 Crashed Thread: 0 Thread 0 name: Dispatch queue: com.apple.main-thread Thread 0 Crashed: 0 CoreFoundation 0x00009a66 CFStringGetLength + 6 1 CoreFoundation 0x0002f994 CFLocaleCreateComponentsFromLocaleIdentifier + 60 2 CoreFoundation 0x000483b8 +[NSLocale componentsFromLocaleIdentifier:] + 12 3 AppSupport 0x00016eee -[ALCityManager localeWithCode:] + 130 4 MapKit 0x00038488 -[MKMapView goToDefaultLocation] + 80 5 Foundation 0x000907c6 __NSFireTimer + 130 6 CoreFoundation 0x00075a40 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 8 7 CoreFoundation 0x00077ec4 __CFRunLoopDoTimer + 844 8 CoreFoundation 0x0007883e __CFRunLoopRun + 1082 9 CoreFoundation 0x00008ebc CFRunLoopRunSpecific + 224 10 CoreFoundation 0x00008dc4 CFRunLoopRunInMode + 52 11 GraphicsServices 0x00004418 GSEventRunModal + 108 12 GraphicsServices 0x000044c4 GSEventRun + 56 13 UIKit 0x0002ed62 -[UIApplication _run] + 398 14 UIKit 0x0002c800 UIApplicationMain + 664 15 MyApp 0x000023f0 main (main.m:34) 16 MyApp 0x00002370 start + 44 </pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload