Closed SpacyRicochet closed 11 years ago
Hello Bruno and thank you for reporting this bug. One of our iOS programmers will have a look and get back to you asap (en groeten aan Michiel)
(NL: Als hij weer terug is ;)
Been trying to figure it out here, but drawing a blank up to figuring out it was doing this after the NWSCall.
Tracked down to an NSFetchedResultController issue where -[NSFetchedResultsController(PrivateMethods) _preprocessUpdatedObjects:insertsInfo:deletesInfo:updatesInfo:sectionsWithDeletes:newSectionNames:treatAsRefreshes:]
because of the use of a cache.
Setting the cache name of the fetchedResultsController in question to nil fixes the issue. Still not sure why it happens though.
English below
FetchedResultsControllers en CacheNames gaan niet goed samen: http://stackoverflow.com/questions/17931009/nsfetchedresultscontroller-sectionnamekeypath-inconsistent
FetchedResultsControllers and CacheNames goes not good together: http://stackoverflow.com/questions/17931009/nsfetchedresultscontroller-sectionnamekeypath-inconsistent
On 27 aug. 2013, at 15:54, Bruno Scheele notifications@github.com wrote:
Tracked down to an NSFetchedResultController issue where -[NSFetchedResultsController(PrivateMethods) _preprocessUpdatedObjects:insertsInfo:deletesInfo:updatesInfo:sectionsWithDeletes:newSectionNames:treatAsRefreshes:] because of the use of a cache.
Setting the cache name of the fetchedResultsController in question to nil fixes the issue. Still not sure why it happens though.
— Reply to this email directly or view it on GitHub.
That actually is about the sectionNameKeyPath, which wasn't used. Can imagine that doesn't work properly either though.
When an NSFetchedResultsController updates after a
_managedObjectContextDidChange
caused by a finishedNWSCall
, the app crashes. Strangely enough, this only happens after the first app launch. During the first launch, the entire app functions as normal. This includes performing the call multiple times.To reproduce: With project iWhisper, checkout develop branch. Run for the first time. App functions as normal. Note the fact that tapping on one of the routes and going back causes a new call to be performed, during which the app doesn't crash. Run for second time, enjoy the crash.
To make it stop: Comment either the
getRoutesWithOwner
call in theIWRouteListTableViewController
'sviewWillAppear
orreturn nil
in thefetchedResultsControllerForTableViewDataSource:
method.Crash log: