EddAvitia / moonblink

Automatically exported from code.google.com/p/moonblink
1 stars 0 forks source link

Exception: MotionEvent recycled twice #138

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Thanks for taking the time to report an issue; but since I'm now working 7
long days a week at my day job, it's unlikely that I'll respond to it in
the near future.  Remember that the source code is right here, and a patch
will get more results than a bug report.

Please state which product you're having trouble with.
Tricorder

What steps will reproduce the problem?
1. On a Nexus S running Gingerbread, launch Tricorder
2. Touch any part of the screen that is showing data

What is the expected output? What do you see instead?

The app has an unhandled exception.
adb logcat shows:
W/dalvikvm(14347): threadid=1: thread exiting with uncaught exception 
(group=0x40015560)
E/AndroidRuntime(14347): FATAL EXCEPTION: main
E/AndroidRuntime(14347): java.lang.RuntimeException: MotionEvent{40541b20 
action=0 x=225.79178 y=588.0196 pressure=0.45 size=0.16666667} recycled twice!
E/AndroidRuntime(14347):    at 
android.view.MotionEvent.recycle(MotionEvent.java:659)
E/AndroidRuntime(14347):    at 
android.view.ViewRoot.handleMessage(ViewRoot.java:1880)
E/AndroidRuntime(14347):    at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(14347):    at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(14347):    at 
android.app.ActivityThread.main(ActivityThread.java:3647)
E/AndroidRuntime(14347):    at java.lang.reflect.Method.invokeNative(Native 
Method)
E/AndroidRuntime(14347):    at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime(14347):    at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
E/AndroidRuntime(14347):    at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
E/AndroidRuntime(14347):    at dalvik.system.NativeStart.main(Native Method)
W/ActivityManager(18792):   Force finishing activity 
org.hermit.tricorder/.Tricorder
W/ActivityManager(18792): Activity pause timeout for HistoryRecord{40526be8 
org.hermit.tricorder/.Tricorder}

What version of the product are you using?
Tricorder 5.11

On what operating system?
Android 2.3.1 Gingerbread GRH78

Please provide any additional information below.

Original issue reported on code.google.com by mariusm on 18 Jan 2011 at 9:39

GoogleCodeExporter commented 9 years ago
This fixes the issue. I'm not certain if this is the *right* thing to do, as 
Tricorder doesn't crash on 2.2 and earlier devices.

Original comment by kennethl...@gmail.com on 6 May 2011 at 6:42

Attachments: