Bug P3
Status Update
Comments
ji...@zte.corp-partner.google.com <ji...@zte.corp-partner.google.com> #2
Please include a sample project that reproduces your issue.
No update yet.
Please include a sample project that reproduces your issue.
Description
Version used:1.0.0
Devices/Android versions reproduced on: nubia/PQ82A04-UN/PQ82A04:14
Crash in APP com.zte.weather at androidx.viewpager.widget.ViewPager.onInterceptTouchEvent once during monkey test for this touch has been stealed by Channel [Gesture Monitor] swipe-up (server) in native.
It is necessary to validate pointerIndex before use getX(pointerIndex) or catch this IllegalArgumentException.
logcat_main:
09-22 09:52:19.408 3048 23897 I InputDispatcher: Channel [Gesture Monitor] swipe-up (server) is stealing touch from [ca23273 com.zte.weather/com.zte.weather.ui.HomeActivity (server), [Gesture Monitor] ThreePointersShotPolicy (server), [Gesture Monitor] onehanded-touch (server)]
09-22 09:52:19.418 25711 25738 W Monkey : // CRASH: com.zte.weather (pid 20582)
09-22 09:52:19.418 25711 25738 W Monkey : // Short Msg: java.lang.IllegalArgumentException
09-22 09:52:19.418 25711 25738 W Monkey : // Long Msg: java.lang.IllegalArgumentException: invalid pointerIndex -1 for MotionEvent { action=MOVE, id[0]=1, x[0]=357.931, y[0]=124.563, toolType[0]=UNKNOWN, historySize=1, eventTime=206487394831871, downTime=206487353000000, deviceId=-1, source=TOUCHSCREEN, displayId=0, eventId=1203427633}
09-22 09:52:19.418 25711 25738 W Monkey : // Build Label: nubia/PQ82A04-UN/PQ82A04:14/UKQ1.230917.001/20240913.095603:user/release-keys
09-22 09:52:19.418 25711 25738 W Monkey : // Build Changelist: 20240913.095603
09-22 09:52:19.418 25711 25738 W Monkey : // Build Time: 1726192849000
09-22 09:52:19.418 25711 25738 W Monkey : // java.lang.IllegalArgumentException: invalid pointerIndex -1 for MotionEvent { action=MOVE, id[0]=1, x[0]=357.931, y[0]=124.563, toolType[0]=UNKNOWN, historySize=1, eventTime=206487394831871, downTime=206487353000000, deviceId=-1, source=TOUCHSCREEN, displayId=0, eventId=1203427633}
09-22 09:52:19.418 25711 25738 W Monkey : // at android.view.MotionEvent.nativeGetAxisValue(Native Method)
09-22 09:52:19.418 25711 25738 W Monkey : // at android.view.MotionEvent.getX(MotionEvent.java:2655)
09-22 09:52:19.418 25711 25738 W Monkey : // at androidx.viewpager.widget.ViewPager.onInterceptTouchEvent(ViewPager.java:2072)
If this is a bug in the library, we would appreciate if you could attach:
- Sample project to trigger the issue.
- A screenrecord or screenshots showing the issue (if UI related).