baoyongzhang / baoyongzhang/android-PullRefreshLayout

pointerIndex out of range

Open
#46 5 comments 1 reaction 0 assignees View on GitHub
Dominant language
Java
Stars
2.1k
Forks
515
PR merge metrics
No merged PRs in 30d

Description

Fatal Exception: java.lang.IllegalArgumentException: pointerIndex out of range
at android.view.MotionEvent.nativeGetAxisValue(MotionEvent.java)
at android.view.MotionEvent.getY(MotionEvent.java:2431)
at android.support.v4.view.MotionEventCompat.getY(MotionEventCompat.java:521)
at **com.baoyz.widget.PullRefreshLayout.onTouchEvent(PullRefreshLayout.java:324)**
at android.view.View.dispatchTouchEvent(View.java:10920)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2810)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2512)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2812)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2527)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2812)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2527)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2812)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2527)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2812)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2527)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2812)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2527)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2812)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2527)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2812)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2527)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2812)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2527)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2812)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2527)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2812)
at android.view.ViewGroup.cancelAndClearTouchTargets(ViewGroup.java:2662)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2368)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2842)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2469)
at com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:623)
at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1906)
at android.app.Activity.dispatchTouchEvent(Activity.java:3247)
at android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:68)
at com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:585)
at android.view.View.dispatchPointerEvent(View.java:11149)
at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:5227)
at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:5076)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4580)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4633)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4599)
at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4736)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4607)
at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4793)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4580)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4633)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4599)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4607)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4580)
at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:7210)
at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:7142)
at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:7103)
at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:7321)
at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)
at android.os.MessageQueue.nativePollOnce(MessageQueue.java)
at android.os.MessageQueue.next(MessageQueue.java:323)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:6823)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1563)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1451)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at PullRefreshLayout.java:324 in com.baoyz.widget.PullRefreshLayout.onTouchEvent and trace the MotionEventCompat.getY call shown in the stack trace. Investigate the reported pointerIndex out of range failure and define completion as handling the affected touch sequence without the exception, with regression coverage if the project provides a suitable test entry point.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.