Crash with gesture and InputMap

akinnovation

Member
Licensed User
Longtime User
My application will start an inputmap inside a gesture event(a fling).
When I close the inputmap my application crash with Gesture Detector and Gestures library too. Android 4.0

I think is related to the modal state of the inputmap form, but I don't succed in find the trick to avoid the crash.

This is the log :

Inside Gesture Sub
fling caus:O
Show InputMap
Close InputMap
Outside Gesture Sub
java.lang.RuntimeException: MotionEvent { action=ACTION_UP, id[0]=0, x[0]=274.0, y[0]=494.0, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=37951616, downTime=37951549, deviceId=1, source=0x1002 } recycled twice!
at android.view.MotionEvent.recycle(MotionEvent.java:1659)
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:4441)
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:823)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:590)
at dalvik.system.NativeStart.main(Native Method)

Thank you for our help
Marco
 
Top