java.lang.IllegalArgumentException: pointerIndex out of range pointerIndex=-1 pointerCount=1

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 dabele91
, 1 year ago
pointerIndex out of range
via mozilla.org by Unknown author, 2 years ago
via GitHub by Scott1234Abc
, 2 years ago
pointerIndex out of range
java.lang.IllegalArgumentException: pointerIndex out of range pointerIndex=-1 pointerCount=1
at android.view.MotionEvent.nativeGetAxisValue(Native Method)
at android.view.MotionEvent.getX(MotionEvent.java:2023)
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 com.facebook.react.views.viewpager.ReactViewPager.onInterceptTouchEvent(ReactViewPager.java:149)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1951)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2324)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2064)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2324)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2064)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2324)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2064)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2324)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2064)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2324)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2064)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2324)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2064)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2324)
at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2345)
at android.view.View.dispatchPointerEvent(View.java:8483)
at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4291)
at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4157)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3662)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3715)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3681)
at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3791)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3689)
at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3848)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3662)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3715)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3681)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3689)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3662)
at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:5978)
at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:5952)
at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:5923)
at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6081)
at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)
at android.view.InputEventReceiver.nativeConsumeBatchedInputEvents(Native Method)
at android.view.InputEventReceiver.consumeBatchedInputEvents(InputEventReceiver.java:176)
at android.view.ViewRootImpl.doConsumeBatchedInput(ViewRootImpl.java:6039)
at android.view.ViewRootImpl$ConsumeBatchedInputRunnable.run(ViewRootImpl.java:6148)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:793)
at android.view.Choreographer.doCallbacks(Choreographer.java:606)

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.