-
Notifications
You must be signed in to change notification settings - Fork 96
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
cellNode(at: indexPath) Fatal error: Index out of range #78
Comments
I've fixed this problem myself for a long time, but it seems not to be maintained at the moment, I'll post the patch.
By the way, some naming changes due to swift changes, but just renamed.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Checklist
Expected Behavior
Should not crash
Current Behavior
Rapid updates between these two type of reload methods cause datasource to be inconsistent
https://github.com/ra1028/Carbon/blob/master/Sources/Updaters/UICollectionViewUpdater.swift#L59-L64
https://github.com/ra1028/Carbon/blob/master/Sources/Updaters/UICollectionViewUpdater.swift#L70-L75
and will sometimes, very rarely, cause cellNode(at: indexPath) below to throw an fatal arror
https://github.com/ra1028/Carbon/blob/master/Sources/Updaters/UICollectionViewUpdater.swift#L168
Steps to Reproduce
Attached simple example project. You may have to run it a few times.
CarbonCrash.zip
Environments
The text was updated successfully, but these errors were encountered: