cocoa - Core Data Crashing during NSManagedObjectContext processPendingChanges -
I get crash with core data (what I think as a strange) when I save core data And afterwards removes the managed object cactanded save method, then I can assemble it.
I am in a disadvantage and I am really hoping that someone can help me or guide me in the right direction. Crash report is as follows:
Exception type: EXC_BAD_ACCESS (SIGBUS) Exception code: 0x0000000b KERN_PROTECTION_FAILURE Crashed Thread: 0 Thread 0 Crashes: 0 libobjc.A. dylib 0x000026f4 objc_msgSend + 16 1 Foundation 0x000437a4 NSClassFromObject + 8 2 Foundation 0x0000ba54 _NSIMPForObjectAndSelector 4 3 Foundation 0x00095eae - [NSSortDescriptor compareObject: toObject:] + 110 4 CoreData 0x000b0a6e + [NSFetchedResultsController (PrivateMethods) _insertIndexForObject: inArray: lowIdx: highIdx: sortDescriptors:] 174 5 CoreData 0x000b1496 - [NSFetchedResultsController (Private Methods) _Postprocess Insertor dObjects:] + 342 6 CoreData 0x000b32d6 - [NSFetchedResultsController (PrivateMethods) _postprocessUpdatedObjects:] 430 7 CoreData 0x000b2a5e - [NSFetchedResultsController (PrivateMethods) _managedObjectContextDidChange:] 498 8 Foundation 0x0004bbf6 _nsnote_callback + 162 9 CoreFoundation 0x00050af2 _CFXNotificationPostNotification + 298 10 Foundation 0x000497f4 - [NSNotificationCenter postNotificationName: Object: userInfo:] 64 11 CoreData 0x0002e42e - [NSManagedObjectContext (_NSInternalNotificationHandling) _postObjectsDidChangeNotificationWithUserInfo: ] 66 12 CoreData 0x0007fd26 - [Nsmnagedobjektkntest (_nsinternlchageprosssing) _kreateandposchangenotifikeshn: Vithdeleshns: Vithpdtes: Vithrefreses:] 134 13 CoreData 0x0001670a - [Nsmnagedobjektkntest (_nsinternlchageprosssing) _postrfresed Objektsnotifikeshnandclearlist] 70 14 CoreData 0x000164ac - [Nsmnagedobjektkntest (_nsinternlchageprosssing) _prosssrekentchanges:] 1656 15 CoreData 0x0004b5fa - [NSManagedObjectContext processPendingChanges] 10 16 CoreData 0x0003e2a4 _performRunLoopAc tion + 120 17 CoreFoundation 0x0000fb50 __CFRunLoopDoObservers + 420 18 CoreFoundation 0x00056a32 CFRunLoopRunSpecific + 1734 19 CoreFoundation 0x00056356 CFRunLoopRunInMode + 42 20 Graphics Services 0x00003cb8 Jissisiarunmodl + 108 21 Grafikssrwseksejh 0x00003 D 64 Jisiventrn + 56 22 Uaiket 0x00002768 - [Uaiapiteshn _run] + 384 23 Uaiket 0x0000146 C Uiapplification Main + 688 24 MiPax 0x000022 D2 Main (Main Mi. 14) 25 My app 0x00002248 starts +44
It seems that one of your One of the items in the database is being released multiple times (and hence it has been removed). Try to run your program - it blocks deallocation so that you can see which object is receiving it with receiving messages and 0's.
Comments
Post a Comment