-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Internal inconsistency exception when scrolling #2189
Comments
Hi, a quick try could be to remove |
Hey @mats-claassen, thanks for the idea. Unfortunately, that did not help. Simply moving that line into the update and not accessing |
@mats-claassen It seems that patching So if we change
into
So mainly moving the cellUpdate from a that function directly into a subsequent main loop run seems to do the trick. |
Opened a pull request for the proposed fix: #2195 |
I don't think this is a good way to fix an issue unless there is really no way to fix it from the user side. It seems weird that this is not something happening normally when using cellUpdate and I haven't seen any similar issue reported by someone else. I also couldn't reproduce that crash. Some new comments regarding your code: Try setting |
We saw the same issue with creating attributes strings inside the cellUpdate block. We fixed it by creating a new row class for html strings and create the attributed string inside the update method. Hope this helps someone:
|
Hi everyone,
I am using the latest Eureka and seem to run into internal inconsistency exceptions caused by a
.cellUpdate
.It seems to be related to an issue described on Apple's forums: https://developer.apple.com/forums/thread/92132 (there is no solution documented there).
Whenever I scroll the view, the internal inconsistency exception (see stack trace below) is raised, causing a crash. Without scrolling I can also sometimes see the exception in the log, but it somehow does not lead to a crash.
Environment: Eureka 5.3.4, Xcode 13.1 and iOS 15.0.2
So my code looks roughly like this:
And here is the exception + stack trace that I get:
Any ideas why this leads to a crash?
The text was updated successfully, but these errors were encountered: