nicolas2k / google-glass-api

Automatically exported from code.google.com/p/google-glass-api
1 stars 0 forks source link

Moving a mouse on Glass Home causes it to crash #367

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Plug in a mouse via OTG cable, or pair via Bluetooth with an appropriate 
configuration
2. Open Glass Home
3. Move the mouse

What is the expected output? What do you see instead?
I would expect the mouse cursor to move and nothing else to happen.
Instead, the cursor moves and Glass Home promptly crashes.

What version of the product are you using? On what operating system?
Confirmed in both XE11 and XE12, second-generation Glass.

Please provide any additional information below.
The attached mouse works in adb-installed standard Android applications as 
expected. I have tried both a USB mouse and a Bluetooth keyboard/mouse 
combination device.

Original issue reported on code.google.com by kevinrla...@gmail.com on 15 Jan 2014 at 10:19

GoogleCodeExporter commented 8 years ago
This doesn't exactly seem like an issue with the Mirror API or the GDK, so I 
don't believe that it should be here. I'm not sure, though.

Original comment by hichris...@gmail.com on 19 Jan 2014 at 1:37

GoogleCodeExporter commented 8 years ago
Hello,

Sorry for the late reply regarding this... This is not really related to the 
GDK but still part of the platform.
Unfortunately, it's not easy for us to reproduce and we would need your help to 
investigate: could you look at the log and check if there's a stack trace you 
could share with us?

You can use wireless adb to run logcat while the mouse is plugged-in: 
http://stackoverflow.com/questions/14357705/adb-over-wireless

Best,
Alain

Original comment by ala...@google.com on 21 Jan 2014 at 9:15

GoogleCodeExporter commented 8 years ago
I don't have my OTG cable handy at the moment, so here's a traceback I grabbed 
from a bluetooth mouse, looks like Home is trying to pass generic mouse input 
through the touchpad gesture detector:

W/dalvikvm(11904): threadid=1: thread exiting with uncaught exception 
(group=0x40dc31f8)
E/AndroidRuntime(11904): FATAL EXCEPTION: main
E/AndroidRuntime(11904): java.lang.IllegalArgumentException: Source of the 
event should be a touch pad.
E/AndroidRuntime(11904):    at 
com.google.android.glass.touchpad.GestureDetector.onMotionEvent(GestureDetector.
java:227)
E/AndroidRuntime(11904):    at 
com.google.glass.input.TouchDetector.onTouchEvent(TouchDetector.java:125)
E/AndroidRuntime(11904):    at 
com.google.glass.input.InputDetectingActivity.onGenericMotionEvent(InputDetectin
gActivity.java:78)
E/AndroidRuntime(11904):    at 
android.app.Activity.dispatchGenericMotionEvent(Activity.java:2408)
E/AndroidRuntime(11904):    at 
com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchGenericMotionEven
t(PhoneWindow.java:1891)
E/AndroidRuntime(11904):    at 
android.view.View.dispatchPointerEvent(View.java:5724)
E/AndroidRuntime(11904):    at 
android.view.ViewRootImpl.deliverPointerEvent(ViewRootImpl.java:2899)
E/AndroidRuntime(11904):    at 
android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2475)
E/AndroidRuntime(11904):    at 
android.view.ViewRootImpl.processInputEvents(ViewRootImpl.java:854)
E/AndroidRuntime(11904):    at 
android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2484)
E/AndroidRuntime(11904):    at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(11904):    at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime(11904):    at 
android.app.ActivityThread.main(ActivityThread.java:4424)
E/AndroidRuntime(11904):    at java.lang.reflect.Method.invokeNative(Native 
Method)
E/AndroidRuntime(11904):    at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime(11904):    at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
E/AndroidRuntime(11904):    at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
E/AndroidRuntime(11904):    at dalvik.system.NativeStart.main(Native Method)
W/ActivityManager(  207):   Force finishing activity 
com.google.glass.home/.timeline.MainTimelineActivity

Original comment by kevinrla...@gmail.com on 21 Jan 2014 at 9:24

GoogleCodeExporter commented 8 years ago

Original comment by ala...@google.com on 21 Jan 2014 at 9:28