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

ev.getX(ev.findPointerIndex(mActivePointerId)); crashes due to bad pointer index #8

Closed
mrhether opened this issue Mar 27, 2015 · 6 comments

Comments

@mrhether
Copy link
Contributor

java.lang.IllegalArgumentException: pointerIndex out of range
       at android.view.MotionEvent.nativeGetAxisValue(MotionEvent.java)
       at android.view.MotionEvent.getX(MotionEvent.java:2014)
       at com.hannesdorfmann.swipeback.SlidingSwipeBack.onInterceptTouchEvent(SlidingSwipeBack.java:601)
       at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1960)
       at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2405)
       at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2106)
       at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2369)
       at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1719)
       at android.app.Activity.dispatchTouchEvent(Activity.java:2742)
       at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2330)
       at android.view.View.dispatchPointerEvent(View.java:8666)
       at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4123)
       at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:3989)
       at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3544)
       at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3597)
       at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3563)
       at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3680)
       at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3571)
       at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3737)
       at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3544)
       at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3597)
       at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3563)
       at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3571)
       at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3544)
       at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:5807)
       at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:5781)
       at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:5752)
       at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:5897)
       at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)
       at android.os.MessageQueue.nativePollOnce(MessageQueue.java)
       at android.os.MessageQueue.next(MessageQueue.java:143)
       at android.os.Looper.loop(Looper.java:122)
       at android.app.ActivityThread.main(ActivityThread.java:5254)
       at java.lang.reflect.Method.invoke(Method.java)
       at java.lang.reflect.Method.invoke(Method.java:372)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
@sockeqwe
Copy link
Owner

Thanks for reporting, I can't reproduce it yet. What is your testing device?

@mrhether
Copy link
Contributor Author

Motorola-Moto-G-2nd-Gen-XT1063 4.4.4.
This was through Crashalytics.

@ngocht143
Copy link

@sockeqwe: It occured when you use it to display an image in an activity. Then you use 3 or 4 fingers to zoom out and in: Keep a finger touch, use 2 or 3 fingers to zoom (in & out). The same log with @mrhether
My testing device: Samsung Galaxy S5, Android 5.0
Please check and fix it, looking forward to see.
Thank in advance!! :)

@sockeqwe
Copy link
Owner

Thanks for reporting, I will check that

@ngocht143
Copy link

Hi @sockeqwe: please fix this issue or simply add a try catch to avoid crash. Looking forward to see!!. Thanks :)

@sockeqwe
Copy link
Owner

Should be fixed with version 1.0.4

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

3 participants