-
Notifications
You must be signed in to change notification settings - Fork 35
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: IllegalStateException Invalid velocity = (NaN, NaN) px/sec #97
Comments
Huh. Can you share the full stacktrace? |
|
We also experience this bug in our project, but I have some additional info:
I was able to reproduce crash by zooming and tapping for a long time, but it is very difficult to catch. But users experienced it quite often. So, in my case the reason was in 1.7.0 compose-ui version. I compared VelocityTracker's source code and saw that it was the same in 1.6.4-1.6.8 versions, but changed in 1.7.0, so may be problem is here |
I was wondering if we could try to detect (and drop) invalid telephoto/zoomable/src/commonMain/kotlin/me/saket/telephoto/zoomable/internal/transformable.kt Lines 157 to 161 in 9bab84a
|
Yep let's do that. |
0.14.0 is out with a fix: https://github.com/saket/telephoto/releases/tag/0.14.0 |
This crash (2,038 crash events affecting 1,235 users) is very similar to this issue that was fixed:
The difference is in the values (
±Infinity
vsNaN
).It is happening in versions 0.11.2 and 0.12.0 (0.12.1 was not tested), no specific Android version or manufacturer.
The text was updated successfully, but these errors were encountered: