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: pointerIndex out of range #217

Open
z2893 opened this issue Jan 27, 2021 · 2 comments
Open

java.lang.IllegalArgumentException: pointerIndex out of range #217

z2893 opened this issue Jan 27, 2021 · 2 comments

Comments

@z2893
Copy link

z2893 commented Jan 27, 2021

有时会报java.lang.IllegalArgumentException: pointerIndex out of range

@Piasy
Copy link
Owner

Piasy commented Jan 27, 2021

惜字如金?完整栈呢?

@z2893
Copy link
Author

z2893 commented Jan 27, 2021

java.lang.IllegalArgumentException
pointerIndex out of range

1 android.view.MotionEvent.nativeGetAxisValue(Native Method)

2 android.view.MotionEvent.getX(MotionEvent.java:2377)
3 androidx.viewpager.widget.ViewPager.onInterceptTouchEvent(ViewPager.java:2072)
4 android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2635)
5 android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3088)
6 android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2781)
7 android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3088)
8 android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2781)
9 android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3088)
10 android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2781)
11 android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3088)
12 android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2781)
13 android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3088)
14 android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2781)
15 android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3088)
16 android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2781)
17 com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:498)
18 com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1853)
19 android.app.Activity.dispatchTouchEvent(Activity.java:4078)
20 androidx.appcompat.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:69)
21 com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:456)
22 android.view.View.dispatchPointerEvent(View.java:14279)
23 android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:5822)
24 android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:5612)
25 android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5111)
26 android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5164)
27 android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5130)
28 android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:5270)
29 android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5138)
30 android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:5327)
31 android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5111)
32 android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5164)
33 android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5130)
34 android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5138)
35 android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5111)
36 android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:7901)
37 android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:7870)
38 android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:7831)
39 android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:8036)
40 android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:251)
41 android.os.MessageQueue.nativePollOnce(Native Method)
42 android.os.MessageQueue.next(MessageQueue.java:345)
43 android.os.Looper.loop(Looper.java:194)
44 android.app.ActivityThread.main(ActivityThread.java:7604)
45 java.lang.reflect.Method.invoke(Native Method)
46 com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
47 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:953)

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