Thank you for your reply, @DTS Engineer!
Yes, the app uses NSFetchedResultsControllerDelegate to refresh the UI, and controllerDidChangeContent(_:) is the only method that is implemented throughout the app.
Unfortunately, I have not yet been able to reproduce this crash myself. I noticed in the Xcode organizer that it affected 20 devices during the past two weeks and around 230 devices past year. It seems pretty rare but would of course be very nice to understand and eliminate these crashes.
To my understanding it looks like Core Data is stepping out of bounds when accessing some internal data representation in NSFetchedResultsController. However, I struggle to understand how that can happen during a single merge that is all taking place on the same (main) thread. Is it be possible that the input notification to -[NSManagedObjectContext mergeChangesFromContextDidSaveNotification:] could have become invalid in some edge cases at the time of actually performing the merge?
Or do you have any other advice on how to reach a stage where I can reproduce / work towards a fix for this issue? :)
All the best,
Oscar
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags: