Bug 2239784 - [abrt] solaar: request(): device.py:436:request:AttributeError: 'NoneType' object has no attribute 'handle'
Summary: [abrt] solaar: request(): device.py:436:request:AttributeError: 'NoneType' ob...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: solaar
Version: 38
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Dominik 'Rathann' Mierzejewski
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:5291a54c75e02e1a894b0bedf97...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-09-20 07:26 UTC by mika5566
Modified: 2023-10-09 09:24 UTC (History)
4 users (show)

Fixed In Version: solaar-1.1.10-1.fc38
Clone Of:
Environment:
Last Closed: 2023-10-09 08:52:14 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: os_info (734 bytes, text/plain)
2023-09-20 07:26 UTC, mika5566
no flags Details
File: mountinfo (5.60 KB, text/plain)
2023-09-20 07:26 UTC, mika5566
no flags Details
File: open_fds (2.45 KB, text/plain)
2023-09-20 07:26 UTC, mika5566
no flags Details
File: namespaces (171 bytes, text/plain)
2023-09-20 07:26 UTC, mika5566
no flags Details
File: backtrace (2.41 KB, text/plain)
2023-09-20 07:26 UTC, mika5566
no flags Details
File: cpuinfo (3.21 KB, text/plain)
2023-09-20 07:26 UTC, mika5566
no flags Details
File: environ (2.16 KB, text/plain)
2023-09-20 07:26 UTC, mika5566
no flags Details

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.


Note You need to log in before you can comment on or make changes to this bug.