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

java.lang.IllegalArgumentException Provided float is NaN #181

Open
chim0380 opened this issue Jan 21, 2023 · 1 comment
Open

java.lang.IllegalArgumentException Provided float is NaN #181

chim0380 opened this issue Jan 21, 2023 · 1 comment

Comments

@chim0380
Copy link

chim0380 commented Jan 21, 2023

Sometimes exceptions exist:
Fatal Exception: java.lang.IllegalArgumentException
Provided float is NaN

Latest version of library

Last device: Redmi 9T on Android 11

Stack Trace:
com.alexvasilkov.gestures.State.nonNaN (State.java:230)
com.alexvasilkov.gestures.State.zoomTo (State.java:78)
com.alexvasilkov.gestures.StateController.toggleMinMaxZoom (StateController.java:114)
com.alexvasilkov.gestures.GestureController.onDoubleTapEvent (GestureController.java:717)
com.alexvasilkov.gestures.GestureControllerForPager.onDoubleTapEvent (GestureControllerForPager.java:209)
com.alexvasilkov.gestures.GestureController$InternalGesturesListener.onDoubleTapEvent (GestureController.java:1013)
android.view.GestureDetector.onTouchEvent (GestureDetector.java:751)
com.alexvasilkov.gestures.GestureController.onTouchInternal (GestureController.java:458)
com.alexvasilkov.gestures.GestureControllerForPager.onTouchInternal (GestureControllerForPager.java:122)
com.alexvasilkov.gestures.GestureController.onTouch (GestureController.java:446)
com.alexvasilkov.gestures.GestureControllerForPager.onTouch (GestureControllerForPager.java:107)
com.alexvasilkov.gestures.views.GestureImageView.onTouchEvent (GestureImageView.java:148)
android.view.View.dispatchTouchEvent (View.java:14387)

com.android.internal.os.ZygoteInit.main (ZygoteInit.java:967)

@alexvasilkov
Copy link
Owner

With latest version you mean 2.8.3, right? Most of the NaN crashes were fixed in #177.

I can see such crashes as well but they are super rare, e.g. there were no crashes in the last month at all. How often do you see them?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants