I have a program crashing loading a NIB that isn't explicitly specified. The call frame is below From the call frame it looks like it's called in line 8. How do I reveal the name of the nib file?
Thanks, Joseph Ayers
2012-01-01 09:16:30.648 Roboplasm[36368:707] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Cannot create NSArray from object <NSManagedObjectContext: 0x10192d020> of class NSManagedObjectContext' *** First throw call stack: ( 0 CoreFoundation 0x00007fff8c551286 __exceptionPreprocess + 198 1 libobjc.A.dylib 0x00007fff8a88dd5e objc_exception_throw + 43 2 CoreFoundation 0x00007fff8c5510ba +[NSException raise:format:arguments:] + 106 3 AppKit 0x00007fff86982490 _NSValueOfClassWithSpecialSpecificErrorMessage + 245 4 AppKit 0x00007fff8698206c -[NSArrayDetailBinder _refreshDetailContentInBackground:] + 691 5 AppKit 0x00007fff86718a0f -[NSObject(NSKeyValueBindingCreation) bind:toObject:withKeyPath:options:] + 591 6 AppKit 0x00007fff86711d25 -[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:] + 1079 7 AppKit 0x00007fff8670833b loadNib + 322 8 AppKit 0x00007fff86707834 +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] + 217 9 AppKit 0x00007fff8670774f +[NSBundle(NSNibLoading) loadNibFile:externalNameTable:withZone:] + 141 10 AppKit 0x00007fff868f6134 -[NSWindowController loadWindow] + 221 11 AppKit 0x00007fff868f5eef -[NSWindowController window] + 75 12 AppKit 0x00007fff868f5d5d -[NSWindowController showWindow:] + 40 13 Roboplasm 0x00000001000178bc -[RoboplasmAppDelegate showMediaWindow:] + 92 14 Roboplasm 0x0000000100017046 -[RoboplasmAppDelegate awakeFromNib] + 166 15 CoreFoundation 0x00007fff8c5482e1 -[NSObject performSelector:] + 49 16 CoreFoundation 0x00007fff8c548262 -[NSSet makeObjectsPerformSelector:] + 274 17 AppKit 0x00007fff86711dcb -[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:] + 1245 18 AppKit 0x00007fff8670833b loadNib + 322 19 AppKit 0x00007fff86707834 +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] + 217 20 AppKit 0x00007fff8670774f +[NSBundle(NSNibLoading) loadNibFile:externalNameTable:withZone:] + 141 21 AppKit 0x00007fff86707692 +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 364 22 AppKit 0x00007fff8697a8eb NSApplicationMain + 398 23 Roboplasm 0x0000000100009772 main + 34 24 Roboplasm 0x00000001000018c4 start + 52 ) terminate called throwing an exception(gdb) info args f 8 self = (RoboplasmAppDelegate *) 0x101a0a430 _cmd = (SEL) 0x10007400d sender = (id) 0x101a0a430 (gdb) info locals f8 No locals. (gdb) info f 8 Stack frame at 0x7fff5fbfde80: rip = 0x7fff8c1b2152 in __gxx_exception_cleanup(_Unwind_Reason_Code, _Unwind_Exception*); saved rip 0x7fff8a88de7a called by frame at 0x7fff5fbfee50, caller of frame at 0x7fff5fbfde60 Arglist at 0x7fff5fbfde78, args: Locals at 0x7fff5fbfde78, Previous frame's sp is 0x7fff5fbfde80 Saved registers: rbx at 0x7fff5fbfde68, rbp at 0x7fff5fbfde70, rip at 0x7fff5fbfde78 (gdb) |