Crash in WPMediaCollectionViewController updateDataWithRemoved:inserted:changed:moved
frosty opened this issue · comments
We've had quite a few reports for a crash affecting the media picker – something going wrong with the collection view in -[WPMediaCollectionViewController updateDataWithRemoved:inserted:changed:moved:]
.
Possibly-related exceptions:
Fatal Exception: NSInternalInconsistencyException
attempt to insert item 0 into section 0, but there are only 0 items in section 0 after the update
Fatal Exception: NSInternalInconsistencyException
Invalid update: invalid number of items in section 0. The number of items contained in an existing section after the update (2063) must be equal to the number of items contained in that section before the update (2063), plus or minus the number of items inserted or deleted from that section (1 inserted, 0 deleted) and plus or minus the number of items moved into or out of that section (0 moved in, 0 moved out)
Still occurring in 7.2:
http://crashes.to/s/3c8ed807b27
http://crashes.to/s/8774eb2984c
This is currently one of our biggest crashers.
Poop. I'll try and get another round of analysis in on this.
And 7.3:
http://crashes.to/s/0dd79e4be69
Solved with #182