I have a situation where I create a temporary managed object context and do a 
bunch of things with various managed objects before releasing the context 
again. 

After this, there appears to be an asynchronous cleanup operation done by 
coredata, at which point I get an exception as per the trace below (The 
NSManagedObject with ID:(whatever) has been invalidated).

I'm sure that there is something somewhere in my code where I am either setting 
up a queued notification or something like that which is being called after the 
context has been released, or something being picked up in the drawing code 
etc, but there are many thousands of lines of code, all sorts of windows and 
views involved, so it looks really hard to narrow it down. 

I'd really appreciate any suggestions about how to pinpoint the source of this 
problem.




#0  0x00007fff832070da in objc_exception_throw ()
#1  0x00007fff83c4b11a in -[_NSInvalidationFaultHandler 
fulfillFault:withContext:] ()
#2  0x00007fff83beddbe in _PF_FulfillDeferredFault ()
#3  0x00007fff83bf1ab7 in _sharedIMPL_pvfk_core ()
#4  0x00007fff83bf1c28 in 
-[NSManagedObject(_PFDynamicAccessorsAndPropertySupport) 
_genericValueForKey:withIndex:flags:] ()
#5  0x00007fff83bf74be in -[NSManagedObject valueForKey:] ()
#6  0x00007fff84a95d34 in -[NSObject(NSKeyValueCoding) valueForKeyPath:] ()
#7  0x00007fff84a95dca in -[NSObject(NSKeyValueCoding) valueForKeyPath:] ()
#8  0x00007fff84a99843 in NSKeyValueWillChangeBySetting ()
#9  0x00007fff84a9921c in NSKeyValueWillChange ()
#10 0x00007fff84b6c0c6 in -[NSObject(NSKeyValueObservingPrivate) 
_willChangeValuesForKeys:] ()
#11 0x00007fff83bf8c60 in -[NSFaultHandler turnObject:intoFaultWithContext:] ()
#12 0x00007fff83c0a254 in -[NSManagedObjectContext(_NSInternalAdditions) 
_disposeObjects:count:notifyParent:] ()
#13 0x00007fff83c09b48 in -[NSManagedObjectContext(_NSInternalAdditions) 
_dispose:] ()
#14 0x00007fff83c2fc69 in _deallocateContextBackgroundThread ()
#15 0x00007fff83bcbe10 in minion_duties2 ()
#16 0x00007fff8385a8b6 in _pthread_start ()
#17 0x00007fff8385a769 in thread_start ()


Thanks

Gideon





_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to