CoreData app random crash on startup
CoreData app random crash on startup
- Subject: CoreData app random crash on startup
- From: Matt Neuburg <email@hidden>
- Date: Thu, 16 Mar 2006 09:45:17 -0800
- Thread-topic: CoreData app random crash on startup
When my CoreData app starts up and loads all the data from the store (XML),
it sometimes crashes. I term these crashes "random" because if I then start
up the app again it starts fine.
The crash log says:
Thread 1 Crashed:
0 libobjc.A.dylib 0x909c8cc0 _objc_trap + 0
1 libobjc.A.dylib 0x909c8c34 _objc_error + 76
2 libobjc.A.dylib 0x909c8bc4 __objc_error + 64
3 com.apple.CoreFoundation 0x90750fa4 CFDictionarySetValue + 448
4 com.apple.Foundation 0x928c79e4 -[NSCFDictionary
setObject:forKey:] + 184
5 com.apple.Foundation 0x92a0e07c
-[NSURLResponse(NSURLResponsePrivate) _downloadInfoWithInitialData:] + 144
6 com.apple.Foundation 0x92a0e0c4
-[NSURLResponse(NSURLResponsePrivate) _downloadAssessmentWithInitialData:] +
48
7 com.apple.Foundation 0x92a0cd04
-[NSURLConnection(NSURLConnectionInternal) _sniffForContentTypeWithData:] +
88
8 com.apple.Foundation 0x92917f84
-[NSURLConnection(NSURLConnectionInternal) _didLoadData:lengthReceived:] +
552
9 com.apple.Foundation 0x9291751c -[NSFileURLProtocol
didLoadData:] + 476
10 com.apple.Foundation 0x92917264 -[NSFileURLProtocol
startLoading] + 132
11 com.apple.Foundation 0x9290fd88
-[NSURLConnection(NSURLConnectionInternal) _performOriginLoad] + 328
12 com.apple.Foundation 0x9290de3c _resourceLoaderPerform + 224
13 com.apple.CoreFoundation 0x9075da68 __CFRunLoopDoSources0 + 384
14 com.apple.CoreFoundation 0x9075cf98 __CFRunLoopRun + 452
15 com.apple.CoreFoundation 0x9075ca18 CFRunLoopRunSpecific + 268
16 com.apple.Foundation 0x9290db9c
+[NSURLConnection(NSURLConnectionInternal) _resourceLoadLoop:] + 264
17 com.apple.Foundation 0x928e66d4 forkThreadForFunction + 108
18 libSystem.B.dylib 0x9002b200 _pthread_body + 96
The thing is that this thread isn't my code, if you see what I mean. You'll
notice that none of it com.neuburg.matt.xxx stuff. All I do is call
prepareContent. My +initialize code does put a splash screen in a separate
thread, but that is not the thread that is crashing (it's thread 4 in this
case). I believe that thread 1 is being launched by thread 0, because I can
see the NSURLConnection being start up there:
Thread 0:
0 libSystem.B.dylib 0x9000b208 mach_msg_trap + 8
1 libSystem.B.dylib 0x9000b15c mach_msg + 60
2 com.apple.CoreFoundation 0x9075d114 __CFRunLoopRun + 832
3 com.apple.CoreFoundation 0x9075ca18 CFRunLoopRunSpecific + 268
4 com.apple.Foundation 0x92916afc
-[NSSynchronousURLConnectionDelegate run:] + 112
5 com.apple.Foundation 0x92916970 +[NSURLConnection
sendSynchronousRequest:returningResponse:error:] + 88
6 com.apple.Foundation 0x92a3397c -[NSXMLDocument
initWithContentsOfURL:options:error:] + 164
7 com.apple.CoreData 0x9406b614 -[NSXMLObjectStore
initWithRootStore:configurationName:options:url:] + 660
8 com.apple.CoreData 0x940527d4 -[NSPersistentStoreCoordinator
addPersistentStoreWithType:configuration:URL:options:error:] + 1484
9 com.neuburg.matt.Diary 0x000028b8 0x1000 + 6328
10 com.neuburg.matt.Diary 0x00002930 0x1000 + 6448
11 com.apple.Foundation 0x929436e8 _NSGetUsingKeyValueGetter + 44
12 com.apple.Foundation 0x928f6360 -[NSObject(NSKeyValueCoding)
valueForKeyPath:] + 168
13 com.apple.AppKit 0x938b6510 -[NSBinder
_valueForKeyPath:ofObject:mode:raisesForNotApplicableKeys:] + 692
14 com.apple.AppKit 0x938b61ac -[NSBinder
valueForBinding:resolveMarkersToPlaceholders:] + 144
15 com.apple.AppKit 0x93b5183c -[NSObjectParameterBinder
_updateObject:observedController:observedKeyPath:context:] + 628
16 com.apple.AppKit 0x938ae088
-[NSObject(NSKeyValueBindingCreation) bind:toObject:withKeyPath:options:] +
628
17 com.apple.AppKit 0x936a6008 -[NSIBObjectData
nibInstantiateWithOwner:topLevelObjects:] + 728
18 com.apple.AppKit 0x936922bc loadNib + 240
19 com.apple.AppKit 0x93691d14 +[NSBundle(NSNibLoading)
_loadNibFile:nameTable:withZone:ownerBundle:] + 716
20 com.apple.AppKit 0x936e91e4 +[NSBundle(NSNibLoading)
loadNibFile:externalNameTable:withZone:] + 156
21 com.apple.AppKit 0x9377905c +[NSBundle(NSNibLoading)
loadNibNamed:owner:] + 344
22 com.apple.AppKit 0x93778dfc NSApplicationMain + 344
23 com.neuburg.matt.Diary 0x00001e54 0x1000 + 3668
24 com.neuburg.matt.Diary 0x00001cf8 0x1000 + 3320
How might I debug this? Or does the fact that the crash is so random suggest
that the bug is in Apple's code, in which case, how would I show that and
report it? m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden