wordpress-mobile / MediaPicker-iOS

WPMediaPicker is an iOS controller that allows capture and picking of media assets.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:].

screen shot 2016-11-16 at 14 56 32

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.

Solved with #182