LibMuse 6.0.3 example - Crash while connecting


#1

Product: Muse 2
Version: LibMuse 6.0.3
Platform: Android

Description:

04-28 03:06:38.866 18075-18075/com.example.libmusedemo I/MUSE: PLATFORM handleGattServicesDiscovered status:0
04-28 03:06:38.871 18075-18075/com.example.libmusedemo I/MUSE: PLATFORM found 17 characteristics
04-28 03:06:38.881 18075-18075/com.example.libmusedemo E/MUSE: PLATFORM *** Exception thrown ***
java.lang.RuntimeException: map::at:  key not found
    at com.choosemuse.libmuse.CharacteristicMapper$CppProxy.native_characteristicForUuid(Native Method)
    at com.choosemuse.libmuse.CharacteristicMapper$CppProxy.characteristicForUuid(CharacteristicMapper.java:53)
    at com.choosemuse.libmuse.LeDevice.handleGattServicesDiscovered(LeDevice.java:761)
    at com.choosemuse.libmuse.LeDevice.access$800(LeDevice.java:41)
    at com.choosemuse.libmuse.LeDevice$1.handleMessage(LeDevice.java:163)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:146)
    at android.app.ActivityThread.main(ActivityThread.java:5487)
    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:1283)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
    at dalvik.system.NativeStart.main(Native Method)
04-28 03:06:38.881 18075-18075/com.example.libmusedemo D/AndroidRuntime: Shutting down VM
04-28 03:06:38.881 18075-18075/com.example.libmusedemo W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x41c81c08)
04-28 03:06:38.891 18075-18075/com.example.libmusedemo E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.libmusedemo, PID: 18075
java.lang.RuntimeException: map::at:  key not found
    at com.choosemuse.libmuse.CharacteristicMapper$CppProxy.native_characteristicForUuid(Native Method)
    at com.choosemuse.libmuse.CharacteristicMapper$CppProxy.characteristicForUuid(CharacteristicMapper.java:53)
    at com.choosemuse.libmuse.LeDevice.handleGattServicesDiscovered(LeDevice.java:761)
    at com.choosemuse.libmuse.LeDevice.access$800(LeDevice.java:41)
    at com.choosemuse.libmuse.LeDevice$1.handleMessage(LeDevice.java:163)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:146)
    at android.app.ActivityThread.main(ActivityThread.java:5487)
    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:1283)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
    at dalvik.system.NativeStart.main(Native Method)
04-28 03:06:57.941 18075-18086/com.example.libmusedemo D/BluetoothGatt: onClientConnectionState() - status=0 clientIf=5 device=00:55:DA:B7:2A:A4`

Expected behaviour: working example

Actual behaviour: While connecting with my device, it crash. I think muse.runAsynchronously() function return well, but something got error on running its act asynchronously.

Steps to reproduce: Run LibMuse 6.0.3 example


#2

LibMuse 6.0.3 does not support the Muse 2. There is no SDK to support the Muse 2 yet.


#3

It feels overdue now. Seen any update on the ETA?