I have MoPub integrated into my app, and have recently started to use Realm.io
I have an intermittent crash reported on Crashlytics that I’m unable to reproduce, the error is a classic UITableView / Datasource error:
Fatal Exception: NSInternalInconsistencyException Invalid update: invalid number of rows in section 0. The number of rows contained in an existing section after the update....
Our datasource is a Realm model object, and I’m using an MPTableViewAdPlacer and all of the relevant
mp_x methods to manipulate the TableView.
The crash appears to originate from when we call
MPTableViewAdPlacer.loadAdsForAppAdUnitID(), and an ad is added or removed to the TableView via MPTableViewAdPlacer.didLoadAdAtIndexPath & MPTableViewAdPlacer.didRemoveAdsAtIndexPaths.
I can only assume that our datasource has changed its values while
[self.tableView mp_endUpdates] is being executed.
Do you have any advise on how I can try to reproduce this issue, or what types of transactions would cause this?