Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Core dumped connecting to Muse devices on linux #407

Closed
JohnGriffiths opened this issue Jan 4, 2022 · 2 comments · Fixed by #408
Closed

Core dumped connecting to Muse devices on linux #407

JohnGriffiths opened this issue Jan 4, 2022 · 2 comments · Fixed by #408
Assignees
Labels
bug Something isn't working

Comments

@JohnGriffiths
Copy link
Contributor

Describe the bug
A clear and concise description of what the bug is.

Get Aborted (core dumped) crash when connecting to muse on ubuntu.

(brainflow_compiled) kernel@stoic-hofstadter:~/Code/eegnb_dev/brainflow/python-package$ python ../tests/python/brainflow_get_data.py --board-id 39
[2022-01-04 16:24:51.765] [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-01-04 16:24:51.765] [board_logger] [trace] Board object created 39
[2022-01-04 16:24:51.765] [board_logger] [info] Use timeout for discovery: 5
[2022-01-04 16:24:51.765] [board_logger] [debug] use dyn lib: /home/kernel/miniconda3/envs/brainflow_compiled/lib/python3.7/site-packages/brainflow/lib/libsimpleble-c.so
[2022-01-04 16:24:52.137] [board_logger] [trace] address 0D:AD:93:A9:DB:50
[2022-01-04 16:24:52.137] [board_logger] [trace] identifier 
[2022-01-04 16:24:52.155] [board_logger] [trace] address 00:55:DA:B9:28:55
[2022-01-04 16:24:52.155] [board_logger] [trace] identifier MuseS-2855
[2022-01-04 16:24:52.155] [board_logger] [info] Found Muse device
[2022-01-04 16:24:52.814] [board_logger] [info] Connected to Muse Device
[2022-01-04 16:24:53.816] [board_logger] [trace] found servce 00001801-0000-1000-8000-00805f9b34fb
[2022-01-04 16:24:53.816] [board_logger] [trace] found characteristic 00002a05-0000-1000-8000-00805f9b34fb
[2022-01-04 16:24:53.816] [board_logger] [trace] found servce 0000fe8d-0000-1000-8000-00805f9b34fb
[2022-01-04 16:24:53.816] [board_logger] [trace] found characteristic 273e0001-4c4d-454d-96be-f03bac821358
[2022-01-04 16:24:53.816] [board_logger] [info] found control characteristic
[2022-01-04 16:24:53.884] [board_logger] [trace] found characteristic 273e0008-4c4d-454d-96be-f03bac821358
[2022-01-04 16:24:53.884] [board_logger] [trace] found characteristic 273e0009-4c4d-454d-96be-f03bac821358
[2022-01-04 16:24:53.973] [board_logger] [trace] found characteristic 273e000a-4c4d-454d-96be-f03bac821358
[2022-01-04 16:24:54.063] [board_logger] [trace] found characteristic 273e000b-4c4d-454d-96be-f03bac821358
[2022-01-04 16:24:54.063] [board_logger] [trace] found characteristic 273e0002-4c4d-454d-96be-f03bac821358
[2022-01-04 16:24:54.063] [board_logger] [trace] found characteristic 273e0003-4c4d-454d-96be-f03bac821358
[2022-01-04 16:24:54.153] [board_logger] [trace] found characteristic 273e0004-4c4d-454d-96be-f03bac821358
[2022-01-04 16:24:54.243] [board_logger] [trace] found characteristic 273e0005-4c4d-454d-96be-f03bac821358
[2022-01-04 16:24:54.333] [board_logger] [trace] found characteristic 273e0006-4c4d-454d-96be-f03bac821358
[2022-01-04 16:24:54.468] [board_logger] [trace] found characteristic 273e0007-4c4d-454d-96be-f03bac821358
[2022-01-04 16:24:54.468] [board_logger] [trace] found characteristic 273e000c-4c4d-454d-96be-f03bac821358
[2022-01-04 16:24:54.468] [board_logger] [trace] found characteristic 273e000d-4c4d-454d-96be-f03bac821358
[2022-01-04 16:24:54.468] [board_logger] [trace] found characteristic 273e000e-4c4d-454d-96be-f03bac821358
[2022-01-04 16:24:54.468] [board_logger] [trace] found characteristic 273e000f-4c4d-454d-96be-f03bac821358
[2022-01-04 16:24:54.558] [board_logger] [trace] found characteristic 273e0010-4c4d-454d-96be-f03bac821358
terminate called without an active exception
Aborted (core dumped)

Get same problem when I use pip install brainflow or when I compile from source.

To Reproduce
To report a bug you need to create a simple example that uses only BrainFlow API or use one of the tests we already have. In this example, you need to call enable_dev_board_logger () and share the output with us. Also, make sure the latest version is used.

See command and terminal output above

Info (please complete the following information):

  • Board Id: 38,39
  • OS running on your PC: Ubuntu Linux
  • Programming Language and its version: Python
  • Architecture(x86, x64, ARM, etc): x86_64
  • In case of Python full output of pip list command, for other languages please provide BrainFlow version used
(brainflow_pip) kernel@stoic-hofstadter:~/Code/eegnb_dev/brainflow$ pip list
Package    Version
---------- ---------
brainflow  4.8.2
certifi    2021.10.8
nptyping   1.4.4
numpy      1.22.0
pip        21.2.4
setuptools 58.0.4
typish     1.9.3
wheel      0.37.0

Expected behavior

  • A clear and concise description of what you expected to happen
  • The above command to connect with out crashing.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
I noticed that when running the above command, the muse device first connects (stops flashing), and continues to be connected after the core dump.

I did notice that this comp has in its config description 'virtualization: AMD-V`. Not sure if that is relevant here.

(brainflow_pip) kernel@stoic-hofstadter:~/Code/eegnb_dev/brainflow$ lscpu
Architecture:                    x86_64
CPU op-mode(s):                  32-bit, 64-bit
Byte Order:                      Little Endian
Address sizes:                   48 bits physical, 48 bits virtual
CPU(s):                          12
On-line CPU(s) list:             0-11
Thread(s) per core:              2
Core(s) per socket:              6
Socket(s):                       1
NUMA node(s):                    1
Vendor ID:                       AuthenticAMD
CPU family:                      25
Model:                           33
Model name:                      AMD Ryzen 5 5600X 6-Core Processor
Stepping:                        0
Frequency boost:                 enabled
CPU MHz:                         2200.000
CPU max MHz:                     4650.2920
CPU min MHz:                     2200.0000
BogoMIPS:                        7400.14
Virtualization:                  AMD-V
L1d cache:                       192 KiB
L1i cache:                       192 KiB
L2 cache:                        3 MiB
L3 cache:                        32 MiB
NUMA node0 CPU(s):               0-11
Vulnerability Itlb multihit:     Not affected
Vulnerability L1tf:              Not affected
Vulnerability Mds:               Not affected
Vulnerability Meltdown:          Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp
Vulnerability Spectre v1:        Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:        Mitigation; Full AMD retpoline, IBPB conditional, IBRS_FW, STIBP always-on, RSB filling
Vulnerability Srbds:             Not affected
Vulnerability Tsx async abort:   Not affected
Flags:                           fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant
                                 _tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf
                                 _lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx
                                  cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibrs ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 erms invpcid cqm rdt_a rdseed adx smap clflushopt clwb sha_ni x
                                 saveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd arat npt lbrv svm_lock nrip_save t
                                 sc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif umip pku ospke vaes vpclmulqdq rdpid overflow_recov succor
                                  smca fsrm
@JohnGriffiths JohnGriffiths added the bug Something isn't working label Jan 4, 2022
@github-actions
Copy link

github-actions bot commented Jan 4, 2022

Welcome to BrainFlow project and thanks for your contribution! We will try to fix your issue ASAP. Make sure that you have read about issue format in the docs.

@Andrey1994
Copy link
Member

@JohnGriffiths I have no ubuntu, tested on raspberry and could not reproduce. There was a huge update in underlying BLE library especially for linux in #408. Could you test it from this branch? Need to build from source using python3 tools\build.py --ble and install python binding from a local folder using cd python-package && python3 -m pip install -U .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants