Skip to content

"terminate called without an active exception" with Muse 2 and Ubuntu #434

Closed
@barlac

Description

@barlac

Describe the bug
Got terminate called without an active exception, and subsequent crash when connecting to muse 2 on ubuntu.


[2022-05-07 22:54:49.125] [board_logger] [info] incoming json: {
    "file": "",
    "ip_address": "",
    "ip_port": 0,
    "ip_protocol": 0,
    "mac_address": "00:55:DA:B7:86:B5",
    "other_info": "",
    "serial_number": "",
    "serial_port": "",
    "timeout": 0
}
[2022-05-07 22:54:49.126] [board_logger] [trace] Board object created 38
[2022-05-07 22:54:49.126] [board_logger] [info] Use timeout for discovery: 5
[2022-05-07 22:54:49.126] [board_logger] [debug] use dyn lib: /home/username/projects/realtime_EEG/muse_venv/lib/python3.8/site-packages/brainflow/lib/libsimpleble-c.so
[2022-05-07 22:54:49.130] [board_logger] [info] found 2 BLE adapter(s)
[2022-05-07 22:54:49.733] [board_logger] [trace] address C8:CD:41:44:81:5C
[2022-05-07 22:54:49.733] [board_logger] [trace] identifier LE_WH-1000XM4
[2022-05-07 22:54:50.175] [board_logger] [trace] address 51:8D:0C:19:B4:E9
[2022-05-07 22:54:50.175] [board_logger] [trace] identifier 
[2022-05-07 22:54:50.644] [board_logger] [trace] address 00:55:DA:B7:86:B5
[2022-05-07 22:54:50.644] [board_logger] [trace] identifier Muse-86B5
[2022-05-07 22:54:50.644] [board_logger] [info] Found Muse device
[2022-05-07 22:54:51.520] [board_logger] [info] Connected to Muse Device
[2022-05-07 22:54:52.522] [board_logger] [trace] found servce 00001801-0000-1000-8000-00805f9b34fb
[2022-05-07 22:54:52.522] [board_logger] [trace] found characteristic 00002a05-0000-1000-8000-00805f9b34fb
[2022-05-07 22:54:52.523] [board_logger] [trace] found servce 0000fe8d-0000-1000-8000-00805f9b34fb
[2022-05-07 22:54:52.523] [board_logger] [trace] found characteristic 273e0001-4c4d-454d-96be-f03bac821358
[2022-05-07 22:54:52.523] [board_logger] [info] found control characteristic
[2022-05-07 22:54:52.523] [board_logger] [trace] found characteristic 273e0008-4c4d-454d-96be-f03bac821358
[2022-05-07 22:54:52.523] [board_logger] [trace] found characteristic 273e0009-4c4d-454d-96be-f03bac821358
[2022-05-07 22:54:52.524] [board_logger] [trace] found characteristic 273e000a-4c4d-454d-96be-f03bac821358
[2022-05-07 22:54:52.525] [board_logger] [trace] found characteristic 273e000b-4c4d-454d-96be-f03bac821358
[2022-05-07 22:54:52.525] [board_logger] [trace] found characteristic 273e0002-4c4d-454d-96be-f03bac821358
[2022-05-07 22:54:52.525] [board_logger] [trace] found characteristic 273e0003-4c4d-454d-96be-f03bac821358
[2022-05-07 22:54:52.525] [board_logger] [trace] found characteristic 273e0004-4c4d-454d-96be-f03bac821358
[2022-05-07 22:54:52.526] [board_logger] [trace] found characteristic 273e0005-4c4d-454d-96be-f03bac821358
[2022-05-07 22:54:52.526] [board_logger] [trace] found characteristic 273e0006-4c4d-454d-96be-f03bac821358
[2022-05-07 22:54:52.527] [board_logger] [trace] found characteristic 273e0007-4c4d-454d-96be-f03bac821358
[2022-05-07 22:54:52.527] [board_logger] [trace] found characteristic 273e000c-4c4d-454d-96be-f03bac821358
[2022-05-07 22:54:52.527] [board_logger] [trace] found characteristic 273e000d-4c4d-454d-96be-f03bac821358
[2022-05-07 22:54:52.527] [board_logger] [trace] found characteristic 273e000e-4c4d-454d-96be-f03bac821358
[2022-05-07 22:54:52.527] [board_logger] [trace] found characteristic 273e000f-4c4d-454d-96be-f03bac821358
[2022-05-07 22:54:52.528] [board_logger] [trace] found characteristic 273e0010-4c4d-454d-96be-f03bac821358
terminate called without an active exception

This is gbd output when running get_data_demo cpp test with a board_id of 38.

(muse_venv) username@auc215223:~/projects/realtime_EEG/brainflow/tests/cpp/config_board$ sudo gdb --args ./config_board --board-id 38
(gdb) r
Starting program: /home/username/projects/realtime_EEG/brainflow/tests/cpp/config_board/config_board --board-id 38
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[2022-05-07 22:58:19.824] [board_logger] [info] incoming json: {"file":"","ip_address":"","ip_port":0,"ip_protocol":0,"mac_address":"","other_info":"","serial_number":"","serial_port":"","timeout":0}
[2022-05-07 22:58:19.824] [board_logger] [trace] Board object created 38
[2022-05-07 22:58:19.824] [board_logger] [info] Use timeout for discovery: 5
[2022-05-07 22:58:19.824] [board_logger] [debug] use dyn lib: /home/username/projects/realtime_EEG/brainflow/installed/lib/libsimpleble-c.so
[New Thread 0x7ffff73b0700 (LWP 118813)]
[2022-05-07 22:58:19.964] [board_logger] [info] found 2 BLE adapter(s)
[2022-05-07 22:58:20.806] [board_logger] [trace] address C8:CD:41:44:81:5C
[2022-05-07 22:58:20.806] [board_logger] [trace] identifier LE_WH-1000XM4
[2022-05-07 22:58:20.910] [board_logger] [trace] address 5F:96:D0:8C:AD:93
[2022-05-07 22:58:20.910] [board_logger] [trace] identifier 
[2022-05-07 22:58:21.010] [board_logger] [trace] address 51:8D:0C:19:B4:E9
[2022-05-07 22:58:21.010] [board_logger] [trace] identifier 
[2022-05-07 22:58:24.333] [board_logger] [trace] address 00:55:DA:B7:86:B5
[2022-05-07 22:58:24.333] [board_logger] [trace] identifier Muse-86B5
[2022-05-07 22:58:24.333] [board_logger] [info] Found Muse device
[2022-05-07 22:58:25.193] [board_logger] [info] Connected to Muse Device
[2022-05-07 22:58:26.196] [board_logger] [trace] found servce 00001801-0000-1000-8000-00805f9b34fb
[2022-05-07 22:58:26.196] [board_logger] [trace] found characteristic 00002a05-0000-1000-8000-00805f9b34fb
[2022-05-07 22:58:26.198] [board_logger] [trace] found servce 0000fe8d-0000-1000-8000-00805f9b34fb
[2022-05-07 22:58:26.198] [board_logger] [trace] found characteristic 273e0001-4c4d-454d-96be-f03bac821358
[2022-05-07 22:58:26.198] [board_logger] [info] found control characteristic
[2022-05-07 22:58:26.200] [board_logger] [trace] found characteristic 273e0008-4c4d-454d-96be-f03bac821358
[2022-05-07 22:58:26.200] [board_logger] [trace] found characteristic 273e0009-4c4d-454d-96be-f03bac821358
[2022-05-07 22:58:26.202] [board_logger] [trace] found characteristic 273e000a-4c4d-454d-96be-f03bac821358
[2022-05-07 22:58:26.204] [board_logger] [trace] found characteristic 273e000b-4c4d-454d-96be-f03bac821358
[2022-05-07 22:58:26.204] [board_logger] [trace] found characteristic 273e0002-4c4d-454d-96be-f03bac821358
[2022-05-07 22:58:26.204] [board_logger] [trace] found characteristic 273e0003-4c4d-454d-96be-f03bac821358
[2022-05-07 22:58:26.205] [board_logger] [trace] found characteristic 273e0004-4c4d-454d-96be-f03bac821358
[2022-05-07 22:58:26.206] [board_logger] [trace] found characteristic 273e0005-4c4d-454d-96be-f03bac821358
[2022-05-07 22:58:26.207] [board_logger] [trace] found characteristic 273e0006-4c4d-454d-96be-f03bac821358
[2022-05-07 22:58:26.208] [board_logger] [trace] found characteristic 273e0007-4c4d-454d-96be-f03bac821358
[2022-05-07 22:58:26.208] [board_logger] [trace] found characteristic 273e000c-4c4d-454d-96be-f03bac821358
[2022-05-07 22:58:26.208] [board_logger] [trace] found characteristic 273e000d-4c4d-454d-96be-f03bac821358
[2022-05-07 22:58:26.208] [board_logger] [trace] found characteristic 273e000e-4c4d-454d-96be-f03bac821358
[2022-05-07 22:58:26.208] [board_logger] [trace] found characteristic 273e000f-4c4d-454d-96be-f03bac821358
[2022-05-07 22:58:26.208] [board_logger] [trace] found characteristic 273e0010-4c4d-454d-96be-f03bac821358
terminate called without an active exception

Thread 1 "config_board" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff78a7859 in __GI_abort () at abort.c:79
#2  0x00007ffff7b30911 in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
#3  0x00007ffff7b3c38c in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
#4  0x00007ffff7b3c3f7 in std::terminate() () from /lib/x86_64-linux-gnu/libstdc++.so.6
#5  0x00007ffff767fee8 in SimpleBLE::Safe::Peripheral::write_request (this=0x7ffff00174b0, service="0000fe8d-0000-1000-8000-00805f9b34fb", characteristic="273e0001-4c4d-454d-96be-f03bac821358", data="\003v1\n")
    at /home/username/projects/realtime_EEG/brainflow/third_party/SimpleBLE/src/PeripheralSafe.cpp:86
#6  0x00007ffff7676063 in simpleble_peripheral_write_request (handle=0x7ffff00174b0, service=..., characteristic=..., data=0x7fffffffd8a0 "\003v1\nUU", data_length=4)
    at /home/username/projects/realtime_EEG/brainflow/third_party/SimpleBLE/src_c/peripheral.cpp:213
#7  0x00007ffff7e9e3e6 in BLELibBoard::simpleble_peripheral_write_request (this=0x5555555d8a70, handle=0x7ffff00174b0, service=..., characteristic=..., data=0x7fffffffd8a0 "\003v1\nUU", data_length=4)
    at /home/username/projects/realtime_EEG/brainflow/src/board_controller/ble_lib_board.cpp:436
#8  0x00007ffff7ea2f14 in Muse::config_board (this=0x5555555d8a70, config="v1") at /home/username/projects/realtime_EEG/brainflow/src/board_controller/muse/muse.cpp:499
#9  0x00007ffff7ea25f4 in Muse::prepare_session (this=0x5555555d8a70) at /home/username/projects/realtime_EEG/brainflow/src/board_controller/muse/muse.cpp:378
#10 0x00007ffff7dfaa8c in prepare_session (board_id=38, 
    json_brainflow_input_params=0x5555555d86f0 "{\"file\":\"\",\"ip_address\":\"\",\"ip_port\":0,\"ip_protocol\":0,\"mac_address\":\"\",\"other_info\":\"\",\"serial_number\":\"\",\"serial_port\":\"\",\"timeout\":0}") at /home/username/projects/realtime_EEG/brainflow/src/board_controller/board_controller.cpp:248
#11 0x000055555556a0c6 in BoardShim::prepare_session (this=0x5555555d8350) at /home/username/projects/realtime_EEG/brainflow/cpp-package/src/board_shim.cpp:106
#12 0x0000555555567327 in main (argc=3, argv=0x7fffffffe558) at /home/username/projects/realtime_EEG/brainflow/tests/cpp/config_board/src/config_board.cpp:34

To Reproduce
Call the get_data_demo cpp test using Ubuntu Linux with a board_id of 38 using a Muse 2.

Info (please complete the following information):

  • Board Id: 38
  • OS running on your PC: Ubuntu Linux Focal
  • Programming Language and its version Python 3
  • Architecture(x86, x64, ARM, etc) x86_64
  • BrainFlow installed from source with commit ecb7fb4

Additional context
This is similar to #407, however, the steps were followed to install BrainFlow from source and a similar error was observed. The output from gbd is shown. It appears that the error occurs (i.e., while attempting connection) when the "simpleble_peripheral_write_command" is called from the BLELibBoard::dll_loader, more detailed info shown above in the gbd output.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions