1and2papa / CTAssetsPickerController

iOS control that allows picking multiple photos and videos from user's photo library.
MIT License
2.15k stars 550 forks source link

Crash on `[CTAssetsGridViewController photoLibraryDidChange:]` #202

Closed krusek closed 8 years ago

krusek commented 8 years ago

I'm getting a lot of reports of the following crash:

Fatal Exception: NSInternalInconsistencyException attempt to delete item 10 from section 0 which only contains 9 items before the update

in the [CTAssetsGridViewController photoLibraryDidChange:] method. It isn't giving much of a stack trace because of the dispatch_async call.

krusek commented 8 years ago

may want to look at this stackoverflow link: http://stackoverflow.com/questions/29337765/crash-attempt-to-delete-and-reload-the-same-index-path