[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:
- Don't plug in anything to the computer (no dongles, no receivers)
- Launch HUB
- Launch GUI
- Hit "LIVE (from Ganglion)"
- Hit "Blueooth (CSR Dongle)"
- Hub will display an error "OpenBCIHub Fatal Error" "No compatible USB Bluetooth 4.0 device found!".
- Press OK, and the HUB will exit.
- 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