java.lang.RuntimeException Source method MotionEvent.recycle()

Scantech

Well-Known Member
Licensed User
Longtime User
java.lang.RuntimeException: MotionEvent { action=ACTION_UP, id[0]=0, x[0]=417.5174, y[0]=113.71265, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=49234653, downTime=49234511, deviceId=1, source=0x1002 } recycled twice!
at android.view.MotionEvent.recycle(MotionEvent.java:1673)
at android.view.ViewRootImpl.finishMotionEvent(ViewRootImpl.java:2904)
at android.view.ViewRootImpl.deliverPointerEvent(ViewRootImpl.java:2895)
at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2466)
at android.view.ViewRootImpl.processInputEvents(ViewRootImpl.java:845)
at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2475)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4424)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)


Any idea what this is all about. Thank you
 

Scantech

Well-Known Member
Licensed User
Longtime User
It might be related to ListView_ItemClick event. Do you call DoEvents or show a modal dialog from this event?

You can use CallSubDelayed to call a different sub from this event as a workaround. This issue will be fixed in the next update.

I do have Listview and depending on which item is clicked, modal dialog is available. I am looking forward to your next update. :)
 
Upvote 0
Top