add_device(): tray.py:372:_add_device:IndexError: list index out of range
Created by: rathann
Information
- Solaar version (
solaar --version
orgit describe --tags
if cloned from this repository):1.0.6
- Distribution:
Fedora 34
- Kernel version (ex.
uname -srmo
):5.13.14-200.fc34.x86_64
- Output of
solaar show
:N/A
Describe the bug This is a forwarded bug report from Fedora bug tracker. User was fiddling with solaar in order to change the default behaviour of the multimedia keys on a TK820 keyboard. Apparently they also had a G900 Gaming Mouse
To Reproduce
Steps to reproduce the behavior: N/A
Screenshots If applicable, add screenshots to help explain your problem.
Additional context
Truncated backtrace:
tray.py:372:_add_device:IndexError: list index out of range
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/solaar/ui/__init__.py", line 177, in _status_changed
tray.update(device)
File "/usr/lib/python3.9/site-packages/solaar/ui/tray.py", line 535, in update
index = _add_device(device)
File "/usr/lib/python3.9/site-packages/solaar/ui/tray.py", line 372, in _add_device
path, number, _ignore, _ignore = _devices_info[index]
IndexError: list index out of range
Local variables in innermost frame:
device: <Device(1,4053,G900 Chaos Spectrum Gaming Mouse,B2194B48)>
receiver_path: '/dev/hidraw7'
index: 0