openbci-archive / OpenBCI_Hub

The electron application for the Ganglion and Cyton.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[CRASH] Hub crashes when selecting Bluetooth (CSR Dongle) in GUI without a dongle plugged in

daniellasry opened this issue · comments

Problem

Observed on Windows, might be platform-independent:

  1. Don't plug in anything to the computer (no dongles, no receivers)
  2. Launch HUB
  3. Launch GUI
  4. Hit "LIVE (from Ganglion)"
  5. Hit "Blueooth (CSR Dongle)"
  6. Hub will display an error "OpenBCIHub Fatal Error" "No compatible USB Bluetooth 4.0 device found!".
  7. Press OK, and the HUB will exit.
  8. The GUI is also left in a weird state. Hitting "LIVE (from Cyton)" afterwards generates a NullPointerException

Expected

I expect the HUB to handle this gracefully instead of going into Fatal Error and quitting. For example, the HUB could notify the GUI that there is no bluetooth device, and the GUI could handle this by putting a message in the status bar, and/or simply leaving the device list blank.

Operating System and Version

Windows

GUI Version

The version is displayed on startup.

Running standalone app

Are you running the downloaded app or are you running from Processing 3

Type of OpenBCI Board

No board needed to repro.

Are you using a WiFi Shield?

No

not fixing, CSR deprecated