failed assertions and uncaught exceptions when a receiver gets disconnected
Created by: rathann
Information
- Solaar version (
solaar --versionandgit describe --tags): 1.0.4 - Distribution: Fedora 32
- Kernel version (ex.
uname -srmo): Linux 5.8.16-200.fc32.x86_64 x86_64 GNU/Linux - Output of
solaar showfor the target device (if applicable): N/A
Describe the bug solaar sometimes fails with failed assertion or unhandled exception when the receiver gets disconnected in the middle of operation.
To Reproduce Steps to reproduce the behavior:
- Disconnect the receiver or the USB hub to which it's connected (or cut power to it).
- Solaar sometimes fails with
AssertionErrororNoReceiverexception.
Screenshots N/A
Additional context Downstream bug reports:
-
AssertionErrorintray.py:_update_menu_item -
AssertionErrorinwindow.py:_device_row -
NoReceiverexception due to invalid file descriptor (OSError) inbase.py:_skip_incomingcalled all the way up fromwindow.py:_device_selected
If you want, I can split these three into separate bug reports instead, but they seem to have a common theme of the receiver getting disconnected from the USB bus for one reason or another.