Bug 2254013

Summary: [abrt] solaar: request(): device.py:436:request:AttributeError: 'NoneType' object has no attribute 'handle'
Product: [Fedora] Fedora Reporter: Luca Botti <luca.botti>
Component: solaarAssignee: Dominik 'Rathann' Mierzejewski <dominik>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 39CC: dominik, j, luca.botti, spacewar
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/7faf37cdb5ee65bc9f5eb17b9642bac1649047c
Whiteboard: abrt_hash:5291a54c75e02e1a894b0bedf97b15133f85c357;VARIANT_ID=workstation;
Fixed In Version: solaar-1.1.13-1.fc40 solaar-1.1.13-1.fc39 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-07-25 01:28:52 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 Luca Botti 2023-12-11 14:40:26 UTC
Version-Release number of selected component:
solaar-1.1.10-1.fc39

Additional info:
reporter:       libreport-2.17.11
kernel:         6.6.2-201.fc39.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-6009.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.10-1.fc39
runlevel:       N 5
exception_type: AttributeError
crash_function: request
interpreter:    python3-3.12.0-1.fc39.x86_64

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

Traceback (most recent call last):
  File "/usr/lib/python3.12/site-packages/solaar/ui/window.py", line 393, in _device_selected
    _update_info_panel(device, full=True)
  File "/usr/lib/python3.12/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.12/site-packages/solaar/ui/window.py", line 676, in _update_device_panel
    device.status.read_battery(device)
  File "/usr/lib/python3.12/site-packages/logitech_receiver/status.py", line 252, in read_battery
    battery = self._device.battery()
              ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/logitech_receiver/device.py", line 366, in battery
    result = _hidpp20.get_battery(self, battery_feature)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/logitech_receiver/hidpp20.py", line 1366, in get_battery
    result = battery_function(device)
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/logitech_receiver/hidpp20.py", line 1238, in get_battery_status
    report = feature_request(device, FEATURE.BATTERY_STATUS)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/logitech_receiver/hidpp20.py", line 1124, in feature_request
    if feature in device.features:
       ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/logitech_receiver/hidpp20.py", line 320, in __contains__
    index = self.__getitem__(feature)
            ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/logitech_receiver/hidpp20.py", line 300, in __getitem__
    response = self.device.request(0x0000, _pack('!H', feature))
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/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,B01D,MX Ergo Multi-Device Trackball ,)>
request_id: 0
no_reply: False
params: (b'\x10\x00',)
long: True

Potential duplicate: bug 2239784

Comment 1 Luca Botti 2023-12-11 14:40:30 UTC
Created attachment 2003762 [details]
File: os_info

Comment 2 Luca Botti 2023-12-11 14:40:32 UTC
Created attachment 2003763 [details]
File: environ

Comment 3 Luca Botti 2023-12-11 14:40:33 UTC
Created attachment 2003764 [details]
File: mountinfo

Comment 4 Luca Botti 2023-12-11 14:40:34 UTC
Created attachment 2003765 [details]
File: open_fds

Comment 5 Luca Botti 2023-12-11 14:40:36 UTC
Created attachment 2003766 [details]
File: namespaces

Comment 6 Luca Botti 2023-12-11 14:40:37 UTC
Created attachment 2003767 [details]
File: backtrace

Comment 7 Luca Botti 2023-12-11 14:40:39 UTC
Created attachment 2003768 [details]
File: cpuinfo

Comment 8 fvbst 2024-01-23 12:45:51 UTC
The problem occured after being suspended for over 12 hours. The time may not matter, but otherwise nothing happened in the mean time to the machine


reporter:       libreport-2.17.11
kernel:         6.5.6-300.fc39.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-3011.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.10-1.fc39
runlevel:       N 5
exception_type: AttributeError
crash_function: request
interpreter:    python3-3.12.1-2.fc39.x86_64
comment:        The problem occured after being suspended for over 12 hours. The time may not matter, but otherwise nothing happened in the mean time to the machine

Comment 9 Dominik 'Rathann' Mierzejewski 2024-03-13 17:08:38 UTC
Please retry with 1.1.11 and, if still reproducible, provide:

- Steps to reproduce
- Output of `solaar show`
- Contents of `~/.config/solaar/config.yaml` (or `~/.config/solaar/config.json` if `~/.config/solaar/config.yaml` not present)

Comment 10 Fedora Update System 2024-07-23 17:42:36 UTC
FEDORA-2024-4b5ab596e6 (solaar-1.1.13-1.fc39) has been submitted as an update to Fedora 39.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-4b5ab596e6

Comment 11 Fedora Update System 2024-07-23 17:42:37 UTC
FEDORA-2024-b045d46092 (solaar-1.1.13-1.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-b045d46092

Comment 12 Fedora Update System 2024-07-24 03:51:34 UTC
FEDORA-2024-b045d46092 has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-b045d46092`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-b045d46092

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

Comment 13 Fedora Update System 2024-07-24 04:17:49 UTC
FEDORA-2024-4b5ab596e6 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-4b5ab596e6`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-4b5ab596e6

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

Comment 14 Fedora Update System 2024-07-25 01:28:52 UTC
FEDORA-2024-b045d46092 (solaar-1.1.13-1.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 15 Fedora Update System 2024-08-01 01:24:55 UTC
FEDORA-2024-4b5ab596e6 (solaar-1.1.13-1.fc39) has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 16 Red Hat Bugzilla 2024-11-30 04:25:05 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days