-
Notifications
You must be signed in to change notification settings - Fork 498
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 - cellForItemAtIndexPath #300
Comments
Same here... Precondition makes the shipped code to crash (very seldom).
Is there any chance to reproduce/fix the issue?
|
Hi. |
Hi. |
Does anyone know the reason. It has not happened often. |
It looks like the same crash as in #311. Based on that description, I would assume it's a concurrency issue. There is an animation happening (ex: reload, dequeue, selecting row), while the data gets changed. And the animation is trying to access something based on the old data, but the new data no longer has that index. |
@lordzsolt Does anyone have solutions for that? I'm working with million users app so it can be a big problem. Thanks in advance. |
What do you mean by 'it can be a big problem'? Are you experiencing already a high number of these crashes? Is it one of your most frequent crashes and you need to fix it? Or you're just thinking that it could happen? Because if it happens once in a blue moon, who cares? Apple randomly crashes more of your users at that point. If it is happening very often and you need to fix it, I'm not sure... First, make sure that it's not a threading issue, like the data source gets the items on a background thread. I could imagine some hacky solution like limiting your data source to 100-1000 items at a time, then switching out the items when the user reaches the end/start of the page. Not sure if you can make it look seamless. |
Is it solved now, please? What is the approximate reason? |
Is it solved now, please? What is the approximate reason? |
Hi,
I have had mysterious crash for long time. Sometimes app crashed on
cellForItemAtIndexPath
inside RxDataSources library. How is it possible?The text was updated successfully, but these errors were encountered: