nib corruption - please help
nib corruption - please help
- Subject: nib corruption - please help
- From: Dave Thorup <email@hidden>
- Date: Mon, 10 Mar 2003 11:35:23 -0700
For some reason my nib file keeps getting corrupted and I can't figure out
what the problem is. The nib will load into Interface Builder without any
problems, but when I try to run it I get this from the debugger:
Program received signal: "EXC_BAD_ACCESS".
And this from the console (w/o debugger):
<application> has exited due to signal 10 (SIGBUS).
The top of the stack trace from the debugger is as follows (I'll include the
full stack trace at the end):
#0 0x9313ebe0 in -[NSSplitView isOpaque]
#1 0x9318b938 in -[NSSplitView _setIsGrabber:]
#2 0x9318b530 in -[NSSplitView _compatibility_initWithUnkeyedCoder:]
#3 0x9318b248 in -[NSSplitView initWithCoder:]
#4 0x907e4cf8 in _decodeObject
So it's definitely when the nib is being loaded and appears to have
something to do with the split view. I keep getting this error whenever I
add something new to the nib file. The only way to get around it is to
delete the nib file I've been working on (which sucks because I lose all my
changes) and restore the last working version from CVS.
Deleting the things I've added to the nib file doesn't solve the problem
either, I have to completely restore the nib from a backup. This is getting
increasingly annoying as I'm trying to add things to my application. My
only workaround has been to add things one at a time to the nib, every time
rebuilding and running the app to make sure the nib hasn't been corrupted.
This is very slow, annoying, and unneeded.
I've also tried re-saving a copy of the nib and using that, but that doesn't
work either.
Does anyone have any suggestions? (short of recreating the nib from
scratch) Anyone else run into anything like this?
Thanks in advance!
____________________________________
Dave Thorup
Software Engineer
email@hidden
voice: 801-805-9422
www.corda.com
Interactive data driven graphics.
Full stack trace:
#0 0x9313ebe0 in -[NSSplitView isOpaque]
#1 0x9318b938 in -[NSSplitView _setIsGrabber:]
#2 0x9318b530 in -[NSSplitView _compatibility_initWithUnkeyedCoder:]
#3 0x9318b248 in -[NSSplitView initWithCoder:]
#4 0x907e4cf8 in _decodeObject
#5 0x930e2388 in -[NSResponder initWithCoder:]
#6 0x930ad120 in -[NSView initWithCoder:]
#7 0x9318b364 in -[NSSplitView _compatibility_initWithUnkeyedCoder:]
#8 0x9318b248 in -[NSSplitView initWithCoder:]
#9 0x907e4cf8 in _decodeObject
#10 0x930e2388 in -[NSResponder initWithCoder:]
#11 0x930ad120 in -[NSView initWithCoder:]
#12 0x930e6b68 in -[NSControl initWithCoder:]
#13 0x931a7090 in -[NSBrowser _old_initWithCoder_NSBrowser:]
#14 0x931a6e08 in -[NSBrowser initWithCoder:]
#15 0x907e4cf8 in _decodeObject
#16 0x907e552c in _decodeValueOfObjCType
#17 0x907e6ab0 in -[NSUnarchiver decodeValuesOfObjCTypes:]
#18 0x93149800 in -[NSIBObjectData initWithCoder:]
#19 0x907e4cf8 in _decodeObject
#20 0x93123c1c in -[NSMenuItem keyEquivalentModifierMask]
#21 0x930e9e58 in +[NSBundle(NSNibLoading)
_loadNibFile:nameTable:withZone:ownerBundle:]
#22 0x93149098 in +[NSBundle(NSNibLoading)
loadNibFile:externalNameTable:withZone:]
#23 0x93148e58 in +[NSBundle(NSNibLoading) loadNibNamed:owner:]
#24 0x9315f65c in NSApplicationMain
#25 0x00004148 in main at main.m:13
#26 0x00003ecc in _start at crt.c:267
#27 0x00003d4c in start
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.