LibMuse 6.0.3 - example - crash while trying to connect to headband


#1

Product: Muse2
Version: LibMuse 6.0.3
Platform: Android (Nokia 6: https://www.nokia.com/phones/en_us/nokia-6-2017, Android studio 3.3.1)

Description:

03/01 19:09:45: Launching app
No apk changes detected since last installation, skipping installation of /Users/TranDuyThanh/libmuse_6.0.3/android/examples/TestLibMuseAndroid/app/build/outputs/apk/app-debug.apk
$ adb shell am force-stop com.choosemuse.example.libmuse
$ adb shell am start -n "com.choosemuse.example.libmuse/com.choosemuse.example.libmuse.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Client not ready yet..Waiting for process to come online
Connected to process 17958 on device hmd_global-ta_1021-PLEGAR1762605708
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
I/example.libmus: The ClassLoaderContext is a special shared library.
I/Perf: Connecting to perf service.
I/TestLibMuseAndroid: LibMuse version = 6.0.3 API Version 9
I/DecorView: It non-support bigbang
I/PhoneWindow: isNeedChangeNaviBarColor taskInfo: [android.app.ActivityManager$RunningTaskInfo@4dec5f9] size: 1
I/PhoneWindow: isAPPNeedChange pkgName: com.choosemuse.example.libmuse needKeep: false
    isNeedChangeNaviBarColor false
    generateLayout mNavigationBarColor: ff000000
    generateLayout isLightNavi false, Visibility: 0
D/OpenGLRenderer: Skia GL Pipeline
I/TestLibMuseAndroid: Writing data to: /storage/emulated/0/Android/data/com.choosemuse.example.libmuse/files/Download/new_muse_file.muse
I/Adreno: QUALCOMM build                   : a7f70d7, I06947f1a28
    Build Date                       : 11/19/18
    OpenGL ES Shader Compiler Version: EV031.25.03.01
    Local Branch                     : 
    Remote Branch                    : 
    Remote Branch                    : 
    Reconstruct Branch               : 
    Build Config                     : S L 6.0.7 AArch32
D/vndksupport: Loading /vendor/lib/hw/gralloc.msm8937.so from current namespace instead of sphal namespace.
I/HAL: loaded HAL id=gralloc path=/vendor/lib/hw/gralloc.msm8937.so hmi=0x0 handle=0xbeda107b
I/Adreno: PFP: 0x005ff110, ME: 0x005ff066
I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
I/OpenGLRenderer: Initialized EGL, version 1.4
D/OpenGLRenderer: Swap behavior 2
D/vndksupport: Loading /vendor/lib/hw/android.hardware.graphics.mapper@2.0-impl.so from current namespace instead of sphal namespace.
D/vndksupport: Loading /vendor/lib/hw/gralloc.msm8937.so from current namespace instead of sphal namespace.
I/HAL: loaded HAL id=gralloc path=/vendor/lib/hw/gralloc.msm8937.so hmi=0xd4e8e364 handle=0xbeda107b
D/BluetoothAdapter: isLeEnabled(): ON
D/BluetoothLeScanner: onScannerRegistered() - status=0 scannerId=6 mScannerId=0
D/BluetoothAdapter: isLeEnabled(): ON
I/MUSE: LIBMUSE starting async connection
I/TestLibMuseAndroid: DISCONNECTED -> CONNECTING
I/MUSE: PLATFORM connect request
D/BluetoothGatt: connect() - device: 00:55:DA:B5:0D:1D, auto: false
    registerApp()
D/BluetoothGatt: registerApp() - UUID=6be6aa68-3f74-49c4-a6fa-42f8eab7552e
D/BluetoothGatt: requestConnectionPriority() - params: 1
I/MUSE: PLATFORM entering refreshDeviceCache()
D/BluetoothGatt: onClientRegistered() - status=0 clientIf=6
W/example.libmus: Accessing hidden method Landroid/bluetooth/BluetoothGatt;->refresh()Z (light greylist, reflection)
D/BluetoothGatt: refresh() - device: 00:55:DA:B5:0D:1D
I/MUSE: PLATFORM BluetoothGatt.refresh() returned true
D/BluetoothGatt: onClientConnectionState() - status=0 clientIf=6 device=00:55:DA:B5:0D:1D
I/MUSE: PLATFORM handleGattConnected, gattStatus=0
D/BluetoothGatt: discoverServices() - device: 00:55:DA:B5:0D:1D
D/BluetoothGatt: onConnectionUpdated() - Device=00:55:DA:B5:0D:1D interval=15 latency=0 timeout=100 status=0
D/BluetoothGatt: onConnectionUpdated() - Device=00:55:DA:B5:0D:1D interval=6 latency=0 timeout=500 status=0
D/BluetoothGatt: onSearchComplete() = Device=00:55:DA:B5:0D:1D Status=0
I/MUSE: PLATFORM handleGattServicesDiscovered status:0
I/MUSE: PLATFORM found 17 characteristics
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:107)
        at android.os.Looper.loop(Looper.java:198)
        at android.app.ActivityThread.main(ActivityThread.java:6729)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
D/AndroidRuntime: Shutting down VM
E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.choosemuse.example.libmuse, PID: 17958
    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:107)
        at android.os.Looper.loop(Looper.java:198)
        at android.app.ActivityThread.main(ActivityThread.java:6729)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
D/BluetoothGatt: onConnectionUpdated() - Device=00:55:DA:B5:0D:1D interval=15 latency=0 timeout=100 status=0

Expected behaviour: example app: TestLibMuseAndroid works

Actual behaviour: Crashing while trying to connect to headband

Steps to reproduce: Follow steps of building and running TestLibMuseAndroid project


#2

Unfortunately, there’s no support for Muse 2 at the moment.