Skip to content
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

Crash on reload with diffable data source #59

Closed
belousovgm opened this issue Jul 6, 2021 · 0 comments · Fixed by #62
Closed

Crash on reload with diffable data source #59

belousovgm opened this issue Jul 6, 2021 · 0 comments · Fixed by #62
Assignees
Labels
bug Something isn't working
Milestone

Comments

@belousovgm
Copy link
Contributor

exception message:

Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid update: invalid number of rows in section 0. The number of rows contained in an existing section after the update (7) must be equal to the number of rows contained in that section before the update (1), plus or minus the number of rows inserted or deleted from that section (0 inserted, 0 deleted) and plus or minus the number of rows moved into or out of that section (0 moved in, 0 moved out).

how to reproduce:

  • load table view with one set of units
  • begin update table view with another set of units using diffable data source
  • interrupt update animation, for example navigate to another screen
  • try to update table view with second set of units

Looks like table view have not updated with old units set, but it use to obtain diff with new units set.

Maybe need add extra check to ensure that old units set is actual before update

@Alex009 Alex009 added the bug Something isn't working label Jul 6, 2021
@Alex009 Alex009 added this to the 0.6.2 milestone Jul 6, 2021
@anton6tak anton6tak linked a pull request Jul 26, 2021 that will close this issue
@anton6tak anton6tak mentioned this issue Jul 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants