objective c - NSFetchedResultsController crashes on every save operation -
Even when I comment on every activity within representative methods, every time I "save managedobjectcontext" : Noil "app crashes with different Eros namely the following: (looks like a release issue, but I'm not sure where. # 2 0x0236c1b2 - [NSFetchedResultsController (PrivateMethods) _postprocessInsertedObjects:] in # 3 0x023721bc - [NSFetchedResultsController (PrivateMethods) _managedObjectContextDidChange:] __CFXNotification in # 4 0x00024c1d _nsnote_callback # 5 0x02690cf9 _CFXNotificationPostNotification # Post_old # 6 of 7 0x0001a7c2 in 0x0261011a - [NSNotificationCenter postNotificationName: Object: userInfo:] # 8 in 0x022ae519 - [NSManagedObjectContext (_NSInternalNotificationHandling) _postObjectsDidChangeNotificationWithUserInfo:] # 9 in 0x0231db33 - [NSManagedObjectContext (_NSInternalChangeProcessing) _createAndPostChangeNotification: withDeletions: withUpdates: withRefreshes:] # 10 0x02290f78 - [NSManagedObjectContext (_NSInternalChangeProcessing) _processRecentChanges: # 11 0x022caa15 - [NSManagedObjectContext save:] # 12 in 0x00005147 - Posts at [PostsViewController saveMOC:] ViewController.m: 254 # 13 0x00039e 9a in __NSThreadPerformPerform # 14 0x02699d7f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERF ORM_FUNCTION__ # 15 0x025f81dd __CFRunLoopDoSources0 # 16 0x025f77c6 __CFRunLoopRun # 17 0x025f7280 CFRunLoopRunSpecific at # 18 0x025f71a1 CFRunLoopRunInMod The e # in 19 GSEventRunModal # 20 GSEventRun # 21 # 22 UIApplicationMain 0x000028c0 0x002c8b58 0x02f1d38d 0x02f1d2c8 in main.m main: 14
You most likely change the FRC when the reference is saved. If you have one attribute that is used as sectionNameKeyPath
, then changing the attribute on the save may trigger this problem.
Comments
Post a Comment