-
Notifications
You must be signed in to change notification settings - Fork 126
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
ArithmeticException: divide by zero at ScrollingUtilities #91
Comments
When does this occur? |
I dont know when. I see that in crash report in firebase. I read your code in ScrollingUtilities, exception divide by zero at
scrollPosState.rowHeight = 0 at some potision. Can rowHeight = 0 ??? |
This may happen if |
i'm having the same issue |
Could I see the adapter for the recyclerView in question? |
@turing-tech, i'm having the same issue in firebase logs too. As adapter I use FastAdapter library by mikepenz:
Both sub-adapters can be empty. |
@DranzerX I am still unable to replicate. I have copied the given code verbatim. Could you give me an updated stacktrace with the latest version of the library? The one originally provided no longer matches the code. |
@turing-tech here it is:
I can't reproduce this too, but I see ~100 crashes per 20k runs in firebase crashlytics, on different devices and different versions of Android. |
Push the newest version and see what happens. I basically just wrapped it in a try catch, as I'm hoping it's just an edge case that happens when the view first appears. If reports of misbehaviour continue to occur I'll look into it further. |
@turing-tech thank you, I'll try. |
Crash in some device:
Model: LG-F160
Board: Gv
Android API: 16
Android OS: 4.1.2
Model: SM-G928C
Board: Universal7420
Android API: 24
Android OS: 7.0
Here is log stack traces:
The text was updated successfully, but these errors were encountered: