Bug 2295400

Summary: [abrt] solaar: write(): base.py:222:write:logitech_receiver.base.NoReceiver: {'reason': OSError(5, 'written 0 bytes out of expected 20')}
Product: [Fedora] Fedora Reporter: strasharo2000
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, spacewar, strasharo2000
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/8ce940246928885fa243636e71888326598e33a
Whiteboard: abrt_hash:d23bbcd8b073d9abadd4560001d2403d9ea5eee2;VARIANT_ID=matecompiz;
Fixed In Version: solaar-1.1.13-1.fc40 solaar-1.1.13-1.fc39 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-07-25 01:29:07 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: backtrace
none
File: namespaces
none
File: open_fds
none
File: mountinfo
none
File: cpuinfo
none
File: os_info
none
File: environ none

Description strasharo2000 2024-07-03 12:26:53 UTC
Description of problem:
Appeared on logon, no specific action was performed from my side. Freshly booted system.

Version-Release number of selected component:
solaar-1.1.11-1.fc39

Additional info:
reporter:       libreport-2.17.11
comment:        Appeared on logon, no specific action was performed from my side. Freshly booted system.
interpreter:    python3-3.12.3-2.fc39.x86_64
cmdline:        /usr/bin/python3 -sP /usr/bin/solaar --window=hide
executable:     /usr/bin/solaar
kernel:         6.9.6-100.fc39.x86_64
cgroup:         0::/user.slice/user-1000.slice/session-2.scope
type:           Python3
reason:         base.py:222:write:logitech_receiver.base.NoReceiver: {'reason': OSError(5, 'written 0 bytes out of expected 20')}
package:        solaar-1.1.11-1.fc39
crash_function: write
uid:            1000
runlevel:       N 5
exception_type: OSError

Truncated backtrace:
base.py:222:write:logitech_receiver.base.NoReceiver: {'reason': OSError(5, 'written 0 bytes out of expected 20')}

Traceback (most recent call last):
  File "/usr/lib/python3.12/site-packages/logitech_receiver/base.py", line 218, in write
    _hid.write(int(handle), wdata)
  File "/usr/lib/python3.12/site-packages/hidapi/udev.py", line 386, in write
    raise OSError(_errno.EIO, 'written %d bytes out of expected %d' % (bytes_written, len(data)))
OSError: [Errno 5] written 0 bytes out of expected 20

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.12/site-packages/solaar/ui/window.py", line 391, in _device_selected
    _update_info_panel(device, full=True)
  File "/usr/lib/python3.12/site-packages/solaar/ui/window.py", line 782, 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 669, in _update_device_panel
    device.status.read_battery(device)
  File "/usr/lib/python3.12/site-packages/logitech_receiver/status.py", line 250, in read_battery
    battery = self._device.battery()
              ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/logitech_receiver/device.py", line 396, in battery
    return _hidpp10.get_battery(self)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/logitech_receiver/hidpp10.py", line 218, in get_battery
    reply = read_register(device, REGISTERS.battery_charge)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/logitech_receiver/hidpp10.py", line 190, in read_register
    return device.request(request_id, *params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/logitech_receiver/device.py", line 469, in request
    return _base.request(
           ^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/logitech_receiver/base.py", line 426, in request
    write(ihandle, devnumber, request_data, long_message)
  File "/usr/lib/python3.12/site-packages/logitech_receiver/base.py", line 222, in write
    raise NoReceiver(reason=reason)
logitech_receiver.base.NoReceiver: {'reason': OSError(5, 'written 0 bytes out of expected 20')}

Local variables in innermost frame:
handle: 19
devnumber: 255
data: b'\x81\r'
long_message: True
wdata: b'\x11\xff\x81\r\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'

Comment 1 strasharo2000 2024-07-03 12:26:56 UTC
Created attachment 2038755 [details]
File: backtrace

Comment 2 strasharo2000 2024-07-03 12:26:58 UTC
Created attachment 2038756 [details]
File: namespaces

Comment 3 strasharo2000 2024-07-03 12:26:59 UTC
Created attachment 2038757 [details]
File: open_fds

Comment 4 strasharo2000 2024-07-03 12:27:00 UTC
Created attachment 2038758 [details]
File: mountinfo

Comment 5 strasharo2000 2024-07-03 12:27:02 UTC
Created attachment 2038759 [details]
File: cpuinfo

Comment 6 strasharo2000 2024-07-03 12:27:03 UTC
Created attachment 2038760 [details]
File: os_info

Comment 7 strasharo2000 2024-07-03 12:27:04 UTC
Created attachment 2038761 [details]
File: environ

Comment 8 Fedora Update System 2024-07-23 17:42:55 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 9 Fedora Update System 2024-07-23 17:43:16 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 10 Fedora Update System 2024-07-24 03:51:48 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 11 Fedora Update System 2024-07-24 04:18:03 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 12 Fedora Update System 2024-07-25 01:29:07 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 13 Fedora Update System 2024-08-01 01:25:08 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.