Skip navigation.
 
mlcrash using PDFDocumentTitleAttribute - CoreData conflict?
FROM : John R. Timmer
DATE : Sun Jun 04 19:35:23 2006

I'm having a crash on launch when i include the following code in an 
NSManagedObject subclass, where theDoc is a PDFDocument:
    if ( [[theDoc documentAttributes] objectForKey: 
PDFDocumentTitleAttribute] != nil )
        [self setName: [[theDoc documentAttributes] objectForKey: 
PDFDocumentTitleAttribute]];

The crash comes with the message:
ZeroLink: unknown symbol '_PDFDocumentTitleAttribute'

testApp has exited due to signal 6 (SIGABRT).


Any suggestions on how to fix this?  Is the key actually meant to be 
a string?

The weird thing is that this happens without executing any code, 
apparently as part of the caching that goes on when setting up a core 
data app:


#2    0x96aa81c0 in undefinedHandler
#3    0x8fe1004c in 
__dyld__ZN16ImageLoaderMachO16resolveUndefinedERKN11ImageLoader11LinkCon
textEPK11macho_nlistbPPS0_
#4    0x8fe10acc in 
__dyld__ZN16ImageLoaderMachO28doBindIndirectSymbolPointersERKN11ImageLoa
der11LinkContextENS0_15BindingLazinessEb
#5    0x8fe0ad90 in 
__dyld__ZN11ImageLoader13recursiveBindERKNS_11LinkContextENS_15BindingLa
zinessE
#6    0x8fe0db30 in 
__dyld__ZN11ImageLoader4linkERKNS_11LinkContextENS_15BindingLazinessENS_
18InitializerRunningEj
#7    0x8fe03fd0 in 
__dyld__ZN4dyld4linkEP11ImageLoaderNS0_15BindingLazinessENS0_18Initializ
erRunningE
#8    0x8fe090c8 in __dyld_NSLinkModule
#9    0x9002d26c in NSLinkModule
#10    0x96aa7e64 in findSymbolAnywhere
#11    0x96aa8694 in undefinedClassHandler
#12    0x90a458c8 in look_up_class
#13    0x92959bb8 in NSClassFromString
#14    0x940dc8fc in -[NSEntityDescription(_NSInternalMethods) 
_entityClass]
#15    0x940dc3d4 in -[NSEntityDescription(_NSInternalMethods) 
_createCachesAndOptimizeState]
#16    0x940da22c in -[NSManagedObjectModel(_NSInternalMethods) 
_createCachesAndOptimizeState]
#17    0x940d9eb4 in -[NSPersistentStoreCoordinator 
initWithManagedObjectModel:]
#18    0x0002cf00 in -[PDFbase_AppDelegate persistentStoreCoordinator] 
at PDFbase_AppDelegate.m:80
#19    0x0002d050 in -[PDFbase_AppDelegate managedObjectContext] at 
PDFbase_AppDelegate.m:100
#20    0x929d325c in _NSGetUsingKeyValueGetter
#21    0x92985e60 in -[NSObject(NSKeyValueCoding) valueForKeyPath:]
#22    0x9394a2a4 in -[NSBinder 
_valueForKeyPath:ofObject:mode:raisesForNotApplicableKeys:]
#23    0x93949f40 in -[NSBinder 
valueForBinding:resolveMarkersToPlaceholders:]
#24    0x93be4a28 in -[NSObjectParameterBinder 
_updateObject:observedController:observedKeyPath:context:]
#25    0x93941e1c in -[NSObject(NSKeyValueBindingCreation) 
bind:toObject:withKeyPath:options:]
#26    0x93739d88 in -[NSIBObjectData 
nibInstantiateWithOwner:topLevelObjects:]
#27    0x9372603c in loadNib
#28    0x93725a94 in +[NSBundle(NSNibLoading) 
_loadNibFile:nameTable:withZone:ownerBundle:]
#29    0x9377cf64 in +[NSBundle(NSNibLoading) 
loadNibFile:externalNameTable:withZone:]
#30    0x9380cdf0 in +[NSBundle(NSNibLoading) loadNibNamed:owner:]
#31    0x9380cb90 in NSApplicationMain
#32    0x0000dfac in main at main.m:13


____________________________________
Science writer, Ars Technica (among other things)
http://arstechnica.com/journals/science.ars

Related mailsAuthorDate
mlcrash using PDFDocumentTitleAttribute - CoreData conflict? John R. Timmer Jun 4, 19:35
mlRe: crash using PDFDocumentTitleAttribute - CoreData conflict? Adam R. Maxwell Jun 4, 20:09