java.lang.IllegalArgumentException: pointerIndex out of range

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by daidaijie
, 1 year ago
via GitHub by Thamizhan
, 1 year ago
via Stack Overflow by Amit Tiwari
, 1 year ago
via GitHub by ancode-cn
, 2 years ago
pointerIndex out of range
java.lang.IllegalArgumentException: pointerIndex out of range
at android.view.MotionEvent.nativeGetAxisValue(Native Method)
at android.view.MotionEvent.getX(MotionEvent.java:1983)
at android.support.v4.view.MotionEventCompatEclair.getX(MotionEventCompatEclair.java:32)
at android.support.v4.view.MotionEventCompat$EclairMotionEventVersionImpl.getX(MotionEventCompat.java:110)
at android.support.v4.view.MotionEventCompat.getX(MotionEventCompat.java:462)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2095)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2546)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2239)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2546)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2239)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2546)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2239)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2546)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2239)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2546)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2239)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2546)
at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2398)
at android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:60)
at android.view.View.dispatchPointerEvent(View.java:8698)
at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4525)
at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4383)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3919)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3972)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3938)
at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4048)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3946)
at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4105)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3919)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3972)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3938)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3946)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3919)
at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:6340)
at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6296)
at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6249)
at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6502)
at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:148)
at android.os.Looper.loop(Looper.java:151)
at android.app.ActivityThread.main(ActivityThread.java:5546)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)

Users with the same issue

4 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.