Android I2C crash
I'm getting periodic stack dumps talking to a gyro over I2C. The stack trace is below.
07-10 04:19:50.138 28129-28129/com.mbientlab.metawear.app E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.mbientlab.metawear.app, PID: 28129
java.lang.RuntimeException: Error receiving broadcast Intent { act=com.mbientlab.com.metawear.api.MetaWearBleService.Action.NOTIFICATION_RECEIVED flg=0x10 (has extras) } in com.mbientlab.metawear.api.MetaWearBleService$2@41c01c40
at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:788)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5082)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:598)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NegativeArraySizeException: -1
at com.mbientlab.metawear.api.controller.I2C$Register$1.notifyCallbacks(I2C.java:57)
at com.mbientlab.metawear.api.MetaWearBleService$2.onReceive(MetaWearBleService.java:343)
at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:778)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5082)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:598)
at dalvik.system.NativeStart.main(Native Method)
This discussion has been closed.
Comments