-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
performBatchUpdates bug #26
Comments
I'm not convinced that those two issues are connected. That error message from Realm is very cryptic, index less than zero? Looks like this might be Realm bug as well. Did you try looking into related issues on realm-cocoa repo? |
I confirmed this is not a realm issue. I use reloadData instead of performBatchUpdates, and then everything will be fine. The error is from
and it will tigger
then crash happened. |
Did you manage to dig out the reason why this is happening? Any suggestions on how to reproduce/fix this? |
This is a UICollectionView bug, and the reproduced way you can see the link I provided. I don't have any easily ways to fix this. Perhaps have some workarounds to skip Apple's bug, but need more testing. Now I use reloadData instead of performBatchUpdates, but it will lose insert/update/delete animation. |
I created a separate issue to track for this bug, since it is not connected to Realm and is more generic - #27. I will close this issue for now. If you have any Realm-related workarounds/information for this issue, please reopen this issue. If you have ideas how to solve more generic problem, please post them in #27. Thanks! |
Random crashes may happen because this issue:
https://openradar.appspot.com/28167779
I use DTCollectionViewManager with Realm, it threw this error:
The text was updated successfully, but these errors were encountered: