Occasional NSInternalInconsistencyException - could not load nib
Occasional NSInternalInconsistencyException - could not load nib
- Subject: Occasional NSInternalInconsistencyException - could not load nib
- From: Jonathan Mitchell <email@hidden>
- Date: Fri, 07 Aug 2015 15:04:19 +0100
Occasionally I get crash reports like so:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[TSStackMenuItem loadView] could not load the "TSStackMenuItem_Image_Info" nib.’
They are very infrequent and don’t occur in testing.
I doubt that the nibs are actually missing from the bundle as the problem report rate would be much higher.
I now have two reported instances of this in two separate NSViewController subclasses.
Looking at these the only oddity that they seem to have in common is that I have inadvertently included calls to -view (which causes nib loading) during -initWithNibName:bundle:.
This is something I generally take pains to avoid.
Has anyone else encountered something similar?
The infrequency of the execution makes it hard to confirm my suggested fix (which is to not call -view during -init).
Thanks
Jonathan
_______________________________________________
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:
This email sent to email@hidden