alexvasilkov / GestureViews

ImageView and FrameLayout with gestures control and position animation
Apache License 2.0
2.37k stars 384 forks source link

java.lang.IllegalArgumentException Provided float is NaN #181

Open chim0380 opened 1 year ago

chim0380 commented 1 year ago

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 commented 1 year ago

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?