Strange error using kernel data

I have a problem with Core Data in my application. There is no specific situation where my application crashes. This is very random. During this crash, I add and modify objects and save the NSManageObjectContext. Does anyone know what the problem is?

#0  0x32668ebc in objc_msgSend
#1  0x30494300 in -[NSKnownKeysDictionary1 dealloc]
#2  0x3049429c in -[NSKnownKeysDictionary1 release]
#3  0x304c76d2 in -[NSManagedObject(_NSInternalMethods) _nilOutReservedCurrentEventSnapshot__]
#4  0x3049c31a in -[NSManagedObjectContext(_NSInternalChangeProcessing) _processRecentChanges:]
#5  0x304d1bec in -[NSManagedObjectContext processPendingChanges]
#6  0x304c4380 in _performRunLoopAction
#7  0x32d5c830 in __CFRunLoopDoObservers
#8  0x32da4346 in CFRunLoopRunSpecific
#9  0x32da3c1e in CFRunLoopRunInMode
#10 0x31bb9374 in GSEventRunModal
#11 0x30bf3c30 in -[UIApplication _run]
#12 0x30bf2230 in UIApplicationMain
#13 0x0000e9a2 in main at main.m:59
+3
source share
1 answer

It definitely looks like over the released object. Try setting the environment variable NSZombieEnabledin YESbefore starting the application to get a clearer crash on which the object is actually freed.

Here is a short and enjoyable blog post describing zombies and crashes: http://cocoa-nut.de/?p=16

+3
source

All Articles