Re: Just implementing -isEqual:, never invoked, causes crash
Re: Just implementing -isEqual:, never invoked, causes crash
- Subject: Re: Just implementing -isEqual:, never invoked, causes crash
- From: Jerry Krinock <email@hidden>
- Date: Fri, 19 Jun 2009 09:18:02 -0700
<Skipping all the quotes for brevity ... Thanks!>
I don't "turn on zombies" very often, so, just to make sure I did it
correctly, I "turned on zombies" by activating this code in my main()...
#define KEEP_ZOMBIES
#ifdef KEEP_ZOMBIES
setenv("NSZombieEnabled", "YES", 1) ;
setenv("NSAutoreleaseFreedObjectCheckEnabled", "YES", 1) ;
#endif
That should do the job, right?
It still crashes with this on, and still crashes in different places.
Actually, having sat through about 25 crashes now, I see that there
are about 5 different places where the crash can occur. Here's the
top of the call stack on the most prevalent crash:
#0 0x9447b688 in objc_msgSend
#1 0x91e23852 in -[_PFContextMapTable setForUseWithModel:]
#2 0x91e23166 in -[NSManagedObjectContext
setPersistentStoreCoordinator:]
#3 0x93289c66 in -[NSPersistentDocument managedObjectContext]
#4 0x00310866 in -[Bookshelf initializeCommon] at Bookshelf.m:253
#5 0x00310b87 in -[Bookshelf init] at Bookshelf.m:321
As you can see, the last thing I do there is get the -
managedObjectContext of my NSPersistenDocument of subclass Bookshelf.
But I haven't touched that code in months. It must be a smasher.
Usually, nothing is logged the console except the gdb splash/license.
One time, though, I got this "all hell broke loose":
*** -[NSUndoManager entitiesByName]: unrecognized selector sent to
instance 0x2571ad0
*** -[NSUndoManager entitiesByName]: unrecognized selector sent to
instance 0x2571ad0
*** -[NSAttributeStoreMapping entityVersionHashesByName]:
unrecognized selector sent to instance 0x16950c70
*** -[NSAttributeStoreMapping entityVersionHashesByName]:
unrecognized selector sent to instance 0x16950c70
*** -[NSCFArray _entityForName:]: unrecognized selector sent to
instance 0x16926e40
*** -[NSCFArray _entityForName:]: unrecognized selector sent to
instance 0x16926e40
As expected, correcting the signature of my -isEqual: to take id as an
argument instead of Browfile* did not help.
Again, I "touched" all the files, rebuilt everything, and didn't get
any warnings of multiple method implementations.
That's all I can think of to try, Michael! But I am thinking hard as
you read this.
_______________________________________________
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