Bug 2365351

Summary: [abrt] solaar: request(): device.py:522:request:AttributeError: 'NoneType' object has no attribute 'handle'
Product: [Fedora] Fedora Reporter: Stan King <stanley.king>
Component: solaarAssignee: Dominik 'Rathann' Mierzejewski <dominik>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 42CC: dominik, j, stanley.king
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/e8aee65927d072dcad0451c8b9c952a6c596787
Whiteboard: abrt_hash:7ed7a34af800924eb50dd993e33f8b343352ada6;VARIANT_ID=xfce;
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-05-15 01:55: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 Stan King 2025-05-09 16:59:27 UTC
Description of problem:
This happened upon starting up right after the command-line upgrade to Fedora 42.

Version-Release number of selected component:
solaar-1.1.14-8.fc42

Additional info:
reporter:       libreport-2.17.15
kernel:         6.14.5-300.fc42.x86_64
cmdline:        /usr/bin/python3 -sP /usr/bin/solaar --window=hide
cgroup:         0::/user.slice/user-1000.slice/session-2.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-8.fc42
runlevel:       N 5
exception_type: AttributeError
crash_function: request
interpreter:    python3-3.13.3-2.fc42.x86_64
comment:        This happened upon starting up right after the command-line upgrade to Fedora 42.

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/__init__.py", line 133, in _status_changed
    window.update(device, need_popup, refresh)
    ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/solaar/ui/window.py", line 857, in update
    update_device(device, item, selected_device_id, need_popup, full=refresh)
    ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/solaar/ui/window.py", line 895, in update_device
    _update_info_panel(device, full=full_update)
    ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
  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,B015,M720 Triathlon Multi-Device Mouse,)>
request_id: 0
no_reply: False
params: (b'\x1c\x00',)
long: True

Potential duplicate: bug 2344368

Comment 1 Stan King 2025-05-09 16:59:31 UTC
Created attachment 2089216 [details]
File: os_info

Comment 2 Stan King 2025-05-09 16:59:32 UTC
Created attachment 2089217 [details]
File: environ

Comment 3 Stan King 2025-05-09 16:59:34 UTC
Created attachment 2089218 [details]
File: mountinfo

Comment 4 Stan King 2025-05-09 16:59:35 UTC
Created attachment 2089219 [details]
File: open_fds

Comment 5 Stan King 2025-05-09 16:59:36 UTC
Created attachment 2089220 [details]
File: namespaces

Comment 6 Stan King 2025-05-09 16:59:38 UTC
Created attachment 2089221 [details]
File: backtrace

Comment 7 Stan King 2025-05-09 16:59:39 UTC
Created attachment 2089222 [details]
File: cpuinfo

Comment 8 Fedora Update System 2025-05-10 14:53:18 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 9 Fedora Update System 2025-05-15 01:55:21 UTC
FEDORA-2025-7ff67514ed (python-hid-parser-0.0.3-11.20211206git4b7944f.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 thestonewell 2025-05-23 13:30:21 UTC
opened the UI


reporter:       libreport-2.17.15
kernel:         6.14.6-300.fc42.x86_64
cmdline:        /usr/bin/python3 -sP /usr/bin/solaar --window=hide
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-solaar
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-8.fc42
runlevel:       N 5
exception_type: AttributeError
crash_function: request
interpreter:    python3-3.13.3-2.fc42.x86_64
comment:        opened the UI

Comment 11 Stan King 2025-06-21 16:10:40 UTC
There was a blizzard of disconnect/connect notifications from the bluetooth manager shortly before this occurred.

My hunch is that the bluetooth problems are caused by Firefox abusing RT privileges, but I have no proof of that.


reporter:       libreport-2.17.15
kernel:         6.14.11-300.fc42.x86_64
cmdline:        /usr/bin/python3 -sP /usr/bin/solaar --window=hide
cgroup:         0::/user.slice/user-1000.slice/session-2.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-8.fc42
runlevel:       N 5
exception_type: AttributeError
crash_function: request
interpreter:    python3-3.13.3-2.fc42.x86_64

Comment 12 Stan King 2025-07-06 13:21:16 UTC
I just started up the system and logged in.  I'm using the xfce environment.


reporter:       libreport-2.17.15
kernel:         6.15.4-200.fc42.x86_64
cmdline:        /usr/bin/python3 -sP /usr/bin/solaar --window=hide
cgroup:         0::/user.slice/user-1000.slice/session-2.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-8.fc42
runlevel:       N 5
exception_type: AttributeError
crash_function: request
interpreter:    python3-3.13.5-1.fc42.x86_64
comment:        I just started up the system and logged in.  I'm using the xfce environment.

Comment 13 Stan King 2025-09-22 01:29:55 UTC
Came to the PC after a few hours of inactivity.  The screen had been saved.


reporter:       libreport-2.17.15
kernel:         6.16.7-200.fc42.x86_64
cmdline:        /usr/bin/python3 -sP /usr/bin/solaar --window=hide
cgroup:         0::/user.slice/user-1000.slice/session-2.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-8.fc42
runlevel:       N 5
exception_type: AttributeError
crash_function: request
interpreter:    python3-3.13.7-1.fc42.x86_64
comment:        Came to the PC after a few hours of inactivity.  The screen had been saved.

Comment 14 Stan King 2025-09-22 01:32:41 UTC
(In reply to Fedora Update System from comment #9)
> FEDORA-2025-7ff67514ed (python-hid-parser-0.0.3-11.20211206git4b7944f.fc42)
> has been pushed to the Fedora 42 stable repository.
> If problem still persists, please make note of it in this bug report.

I suppose you could say that the proposed fix did not resolve the problem.

Comment 15 Stan King 2025-10-09 20:56:24 UTC
Just started up the system and logged in.


reporter:       libreport-2.17.15
kernel:         6.16.10-200.fc42.x86_64
cmdline:        /usr/bin/python3 -sP /usr/bin/solaar --window=hide
cgroup:         0::/user.slice/user-1000.slice/session-2.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-8.fc42
runlevel:       N 5
exception_type: AttributeError
crash_function: request
interpreter:    python3-3.13.7-1.fc42.x86_64
comment:        Just started up the system and logged in.