Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to debug a nib loading error?



I would start by debugging with the NSZombieEnabled environment variable set to YES. You can read about that environment variable here: http://developer.apple.com/technotes/tn2004/tn2124.html

If that doesn't work, I would try running with libgmalloc enabled. You can turn that on with "Enable Guard Malloc" in the Xcode "Run" menu.

Good Luck -
Jon Hess

On Mar 6, 2008, at 10:36 PM, Steve Cronin wrote:

Folks;

Tiger 10.4.11 -- XC 2.4.1
I'm baffled by an IB error.

Reasonable development has been on-going.
Pretty stringent Build Rules and no errors or warnings.
I decide to do a clean build, torch the app's prefs file and the CoreData store.
I want to focus on the initial installation phase of the app...


To my great surprise I cannot now get the app to launch successfully. It ran fine 15 minutes beforehand...

Regardless of whether I 'Run' or 'Debug' I get the exact same result:

I get all the way through the appDelegate's -awakeFromNib and the pref window opens (as I expect on first launch) but the debugger kicks in with the following:

#0 0x90a594c7 in objc_msgSend
#1 0xbffff7b8 in ??
#2 0x932849d8 in loadNib
#3 0x932843d9 in +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:]
#4 0x9328403a in +[NSBundle(NSNibLoading) loadNibFile:externalNameTable:withZone:]
#5 0x93283f7c in +[NSBundle(NSNibLoading) loadNibNamed:owner:]
#6 0x93283cc3 in NSApplicationMain
#7 0x00405ffc in main at main.m:18


In the Console I see:
....Normal log messages that I generate and expect (including the 'end-of-awake-from-nib' stamp)
Program received signal: "EXC_BAD_ACCESS".


I have the [NSException raise] as a Global breakpoint but it doesn't fire.

Using the po command I can tell that MainMenu is the nib involved; the prefs window is in a separate nib...

How do I track this down?
Steve

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >How to debug a nib loading error? (From: Steve Cronin <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.