Closed aerych closed 7 years ago
After removing the blog, and adding it back I saw I had 13 items in the list. Also, the list is apparently haunted: https://cloudup.com/czT8FKz-UYM
Thinking back, I was trying to batch upload 5 images from the camera roll, then disabled wifi in the middle of the upload. Four of the images reported that the internet connection was unavailable, one did not. I assume the upload for the last one had not started. I re-enabled wifi and restarted the uploads for the four. The fifth was then showing a connection timed out message and I restarted it.
Wondering if the crash could be somehow related to the timeout.
Looks like this is currently only in iOS 10 and is our top crash on Crashlytics.
@SergioEstevao do you have any insight in to this crash? Since the crash has happened for a number of users, it seems there could be multiple cases of triggering a bad collection update.
@kurzee I can have a look it could be a bad thread use between the sync in Core Data and the updates in the collection view.
I'm been digging into this one further because the crashes continue to pile up. Primarily I think a bulk of the crashes are from calling reloadData in viewDidLoad since the VC itself will do that. May want to defer calling that until after the view appears. I also ran into a bunch of child threads crashing when the remote media library took a while to load and then you switched back to local media.
Still only in iOS 10 by the way.
Also reported in the Media Picker repo: https://github.com/wordpress-mobile/MediaPicker-iOS/issues/128
Closing as I believe this was fixed by #6735.
Caught this in the iOS 6s simulator when viewing the media library for a self-hosted blog. There were new items being synced from the blog. The list of thumbs started to refresh, I saw thumbs animate and reorder, I guess making room for a new thumb, then Xcode crashed.
When I tapped on the media library option it reported 10 items. When the crash occured after items reordered it looks like there are 12 counting one "blank" space.
Stacktrace: