Bug 2344368

Summary: [abrt] solaar: request(): device.py:522:request:AttributeError: 'NoneType' object has no attribute 'handle'
Product: [Fedora] Fedora Reporter: andrew.nelis
Component: solaarAssignee: Dominik 'Rathann' Mierzejewski <dominik>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 41CC: andrew.nelis, dominik, j, spacewar
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/cbf7f833eaf42f7381cb5f12c89d6b00b006e6d
Whiteboard: abrt_hash:7ed7a34af800924eb50dd993e33f8b343352ada6;VARIANT_ID=workstation;
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-05-18 01:36:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: os_info
none
File: environ
none
File: mountinfo
none
File: open_fds
none
File: namespaces
none
File: backtrace
none
File: cpuinfo none

Description andrew.nelis 2025-02-07 17:24:44 UTC
Description of problem:
Just unlocked the laptop after it was asleep.

Version-Release number of selected component:
solaar-1.1.14-7.fc41

Additional info:
reporter:       libreport-2.17.15
kernel:         6.12.11-200.fc41.x86_64
cmdline:        /usr/bin/python3 -sP /usr/bin/solaar --window=hide
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-gnome-solaar-2658.scope
uid:            1000
reason:         device.py:522:request:AttributeError: 'NoneType' object has no attribute 'handle'
executable:     /usr/bin/solaar
type:           Python3
package:        solaar-1.1.14-7.fc41
runlevel:       N 5
exception_type: AttributeError
crash_function: request
interpreter:    python3-3.13.1-2.fc41.x86_64
comment:        Just unlocked the laptop after it was asleep.

Truncated backtrace:
device.py:522:request:AttributeError: 'NoneType' object has no attribute 'handle'

Traceback (most recent call last):
  File "/usr/lib/python3.13/site-packages/solaar/ui/window.py", line 366, in _device_selected
    _update_info_panel(device, full=True)
    ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/solaar/ui/window.py", line 762, in _update_info_panel
    _update_device_panel(device, _info._device, _info._buttons, full)
    ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/solaar/ui/window.py", line 733, in _update_device_panel
    config_panel.update(device, is_online)
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/solaar/ui/config_panel.py", line 758, in update
    for s in device.settings:
             ^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/logitech_receiver/device.py", line 383, in settings
    self._feature_settings_checked = settings_templates.check_feature_settings(self, self._settings)
                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/logitech_receiver/settings_templates.py", line 1836, in check_feature_settings
    setting = check_feature(device, sclass)
  File "/usr/lib/python3.13/site-packages/logitech_receiver/settings_templates.py", line 1807, in check_feature
    if settings_class.feature not in device.features:
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/logitech_receiver/hidpp20.py", line 149, in __contains__
    index = self.__getitem__(feature)
  File "/usr/lib/python3.13/site-packages/logitech_receiver/hidpp20.py", line 162, in __getitem__
    response = self.device.request(0x0000, struct.pack("!H", feature))
  File "/usr/lib/python3.13/site-packages/logitech_receiver/device.py", line 522, in request
    self.handle or self.receiver.handle,
                   ^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'handle'

Local variables in innermost frame:
self: <Device(255,B34D,K850 Performance Wireless Keyboard,)>
request_id: 0
no_reply: False
params: (b'E!',)
long: True

Comment 1 andrew.nelis 2025-02-07 17:24:47 UTC
Created attachment 2075487 [details]
File: os_info

Comment 2 andrew.nelis 2025-02-07 17:24:49 UTC
Created attachment 2075488 [details]
File: environ

Comment 3 andrew.nelis 2025-02-07 17:24:50 UTC
Created attachment 2075489 [details]
File: mountinfo

Comment 4 andrew.nelis 2025-02-07 17:24:51 UTC
Created attachment 2075490 [details]
File: open_fds

Comment 5 andrew.nelis 2025-02-07 17:24:52 UTC
Created attachment 2075491 [details]
File: namespaces

Comment 6 andrew.nelis 2025-02-07 17:24:54 UTC
Created attachment 2075492 [details]
File: backtrace

Comment 7 andrew.nelis 2025-02-07 17:24:55 UTC
Created attachment 2075493 [details]
File: cpuinfo

Comment 8 Christopher Boni 2025-02-25 15:11:42 UTC
I paired my Logi Keyboard via bluetooth - crash error popped up straight after connection.


reporter:       libreport-2.17.15
kernel:         6.12.15-200.fc41.x86_64
cmdline:        /usr/bin/python3 -sP /usr/bin/solaar --window=hide
cgroup:         0::/user.slice/user-1001.slice/user/app.slice/app-gnome-solaar-2464.scope
uid:            1001
reason:         device.py:522:request:AttributeError: 'NoneType' object has no attribute 'handle'
executable:     /usr/bin/solaar
type:           Python3
package:        solaar-1.1.14-7.fc41
runlevel:       N 5
exception_type: AttributeError
crash_function: request
interpreter:    python3-3.13.2-1.fc41.x86_64
comment:        I paired my Logi Keyboard via bluetooth - crash error popped up straight after connection.

Comment 9 Christopher Boni 2025-03-05 23:13:43 UTC
I plugged my laptop into it's dock (which has the USB dongle) and then the app crashed.


reporter:       libreport-2.17.15
kernel:         6.13.5-200.fc41.x86_64
cmdline:        /usr/bin/python3 -sP /usr/bin/solaar --window=hide
cgroup:         0::/user.slice/user-1001.slice/user/app.slice/app-gnome-solaar-2574.scope
uid:            1001
reason:         device.py:522:request:AttributeError: 'NoneType' object has no attribute 'handle'
executable:     /usr/bin/solaar
type:           Python3
package:        solaar-1.1.14-7.fc41
runlevel:       N 5
exception_type: AttributeError
crash_function: request
interpreter:    python3-3.13.2-1.fc41.x86_64
comment:        I plugged my laptop into it's dock (which has the USB dongle) and then the app crashed.

Comment 11 Fedora Update System 2025-05-09 09:53:07 UTC
FEDORA-2025-7ff67514ed (python-hid-parser-0.0.3-11.20211206git4b7944f.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-7ff67514ed

Comment 12 Fedora Update System 2025-05-09 09:53:08 UTC
FEDORA-2025-43b2f269d9 (python-hid-parser-0.0.3-11.20211206git4b7944f.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-43b2f269d9

Comment 13 Fedora Update System 2025-05-10 02:37:28 UTC
FEDORA-2025-7ff67514ed has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-7ff67514ed`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-7ff67514ed

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 14 Fedora Update System 2025-05-10 02:52:15 UTC
FEDORA-2025-43b2f269d9 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-43b2f269d9`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-43b2f269d9

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 15 Fedora Update System 2025-05-18 01:36:21 UTC
FEDORA-2025-43b2f269d9 (python-hid-parser-0.0.3-11.20211206git4b7944f.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.