Bug 2239784

Summary: [abrt] solaar: request(): device.py:436:request:AttributeError: 'NoneType' object has no attribute 'handle'
Product: [Fedora] Fedora Reporter: mika5566
Component: solaarAssignee: Dominik 'Rathann' Mierzejewski <dominik>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 38CC: dominik, j, mika5566, spacewar
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/fe3784719815b0d422cce509a1db30b75d7764c
Whiteboard: abrt_hash:5291a54c75e02e1a894b0bedf97b15133f85c357;VARIANT_ID=workstation;
Fixed In Version: solaar-1.1.10-1.fc38 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-10-09 08:52:14 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: mountinfo
none
File: open_fds
none
File: namespaces
none
File: backtrace
none
File: cpuinfo
none
File: environ none

Description mika5566 2023-09-20 07:26:40 UTC
Description of problem:
Booted up the computer from suspended state, and solaar crashed after i turned off the mouse

Version-Release number of selected component:
solaar-1.1.9-4.fc38

Additional info:
reporter:       libreport-2.17.11
kernel:         6.4.15-200.fc38.x86_64
cmdline:        /usr/bin/python3 -sP /usr/bin/solaar
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-gnome-solaar-10472.scope
uid:            1000
reason:         device.py:436:request:AttributeError: 'NoneType' object has no attribute 'handle'
executable:     /usr/bin/solaar
type:           Python3
package:        solaar-1.1.9-4.fc38
runlevel:       N 5
exception_type: AttributeError
crash_function: request
interpreter:    python3-3.11.5-1.fc38.x86_64
comment:        Booted up the computer from suspended state, and solaar crashed after i turned off the mouse

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

Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/solaar/ui/__init__.py", line 196, in _status_changed
    window.update(device, need_popup, refresh)
  File "/usr/lib/python3.11/site-packages/solaar/ui/window.py", line 886, in update
    update_device(device, item, selected_device_id, need_popup, full=refresh)
  File "/usr/lib/python3.11/site-packages/solaar/ui/window.py", line 922, in update_device
    _update_info_panel(device, full=full_update)
  File "/usr/lib/python3.11/site-packages/solaar/ui/window.py", line 789, in _update_info_panel
    _update_device_panel(device, _info._device, _info._buttons, full)
  File "/usr/lib/python3.11/site-packages/solaar/ui/window.py", line 760, in _update_device_panel
    _config_panel.update(device, is_online)
  File "/usr/lib/python3.11/site-packages/solaar/ui/config_panel.py", line 671, in update
    for s in device.settings:
             ^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/logitech_receiver/device.py", line 347, in settings
    self._feature_settings_checked = _check_feature_settings(self, self._settings)
                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/logitech_receiver/settings_templates.py", line 1286, in check_feature_settings
    setting = check_feature(device, sclass)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/logitech_receiver/settings_templates.py", line 1260, in check_feature
    if sclass.feature not in device.features:
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/logitech_receiver/hidpp20.py", line 320, in __contains__
    index = self.__getitem__(feature)
            ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/logitech_receiver/hidpp20.py", line 300, in __getitem__
    response = self.device.request(0x0000, _pack('!H', feature))
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/logitech_receiver/device.py", line 436, in request
    self.handle or self.receiver.handle,
                   ^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'handle'

Local variables in innermost frame:
self: <Device(255,B028,MX Master 3 for Business,)>
request_id: 0
no_reply: False
params: (b'\x18\x14',)

Comment 1 mika5566 2023-09-20 07:26:43 UTC
Created attachment 1989648 [details]
File: os_info

Comment 2 mika5566 2023-09-20 07:26:45 UTC
Created attachment 1989649 [details]
File: mountinfo

Comment 3 mika5566 2023-09-20 07:26:46 UTC
Created attachment 1989650 [details]
File: open_fds

Comment 4 mika5566 2023-09-20 07:26:48 UTC
Created attachment 1989651 [details]
File: namespaces

Comment 5 mika5566 2023-09-20 07:26:49 UTC
Created attachment 1989652 [details]
File: backtrace

Comment 6 mika5566 2023-09-20 07:26:51 UTC
Created attachment 1989653 [details]
File: cpuinfo

Comment 7 mika5566 2023-09-20 07:26:52 UTC
Created attachment 1989654 [details]
File: environ

Comment 8 Dominik 'Rathann' Mierzejewski 2023-09-25 08:55:52 UTC
Thanks for the report. Please retry with 1.1.10 (https://bodhi.fedoraproject.org/updates/FEDORA-2023-5784ee2f46).

If this is still occurring, please provide solaar -dd output after stopping the currently running instance.

Comment 9 mika5566 2023-10-09 08:52:14 UTC
Not experiencing this issue anymore with the latest version of Solaar.