Re: crash when loading nib
Re: crash when loading nib
- Subject: Re: crash when loading nib
- From: Dave Thorup <email@hidden>
- Date: Fri, 20 Jun 2003 18:30:47 -0600
On 6/18/03 11:55 PM, "Brent Gulanowski" <email@hidden> wrote:
>
What is going to cause an EXC_BAD_ACCESS while loading a nib? What
>
could happen in -isOpaque? Where do I look for possible sources of the
>
problem? The nib looks fine in IB.
>
>
This is an application that does NOTHING so far -- all I have is a user
>
interface and skeletal controller code -- the minimum complexity I can
>
manage and still have the U.I. load up properly.
I have no idea as to why this happens, I can only confirm that the exact
same thing happens to my nib. It happens in the same place (-[NSSplitView
isOpaque] ()).
See my note below for things that I've tried without success.
The only solution that I've found is this: (I use CVS for version control,
so this makes the solution easier)
1) Make a single, small change in the nib file.
2) Build and run it to make sure it doesn't crash.
3) If crashes, delete it and checkout a copy from CVS, go to step 1.
4) If it doesn't crash, check it into CVS.
5) For next change, go to step 1.
This may seem tedious (and believe me it is), but it is the _ONLY_ (and I
really stress "ONLY") way that I have found to keep my nib from getting
corrupted. I've found that once a nib becomes corrupted, there is no way to
fix it. For example, sometimes my nib becomes corrupted when I add a menu
item to the main menu bar. If I then delete the menu item to try and fix
the corrupted nib, it does not work, the nib is still corrupted.
I realize that my solution may not work for you because you may not have an
older working nib to go back to, so you may just have to recreate it. If
anyone else knows of any way to fix a corrupted nib file then please let us
know how to do it.
Luckily I've only had this problem with one nib file so far, but it's been
one pain in the @$$.
Note: My nib file is in the Pre-10.2 format. I've tried using the 10.2
format (even though it has problems) and that didn't work. I've tried
checking the nib with nibtool (it checks out fine), creating a new nib with
nibtool (it still crashes), and probably a few other things that I can't
think of.
____________________________________
Dave Thorup
Software Engineer
email@hidden
www.kuwan.net
Defaults Manager - The premier editor for Mac OS X's User Defaults /
Preferences database.
_______________________________________________
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.