Bug 2259097 - [abrt] solaar: get_friendly_name(): hidpp20.py:1234:get_friendly_name:UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 2: invalid start byte
Summary: [abrt] solaar: get_friendly_name(): hidpp20.py:1234:get_friendly_name:Unicode...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: solaar
Version: 39
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:47773221a9d9f09fe03f79c379c...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-01-19 05:47 UTC by Luca Botti
Modified: 2024-11-30 04:25 UTC (History)
4 users (show)

Fixed In Version: solaar-1.1.13-1.fc40 solaar-1.1.13-1.fc39
Clone Of:
Environment:
Last Closed: 2024-07-25 01:28:55 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: os_info (734 bytes, text/plain)
2024-01-19 05:47 UTC, Luca Botti
no flags Details
File: environ (1.80 KB, text/plain)
2024-01-19 05:47 UTC, Luca Botti
no flags Details
File: mountinfo (3.23 KB, text/plain)
2024-01-19 05:47 UTC, Luca Botti
no flags Details
File: open_fds (2.33 KB, text/plain)
2024-01-19 05:47 UTC, Luca Botti
no flags Details
File: namespaces (171 bytes, text/plain)
2024-01-19 05:47 UTC, Luca Botti
no flags Details
File: backtrace (1.64 KB, text/plain)
2024-01-19 05:47 UTC, Luca Botti
no flags Details
File: cpuinfo (3.06 KB, text/plain)
2024-01-19 05:47 UTC, Luca Botti
no flags Details

Description Luca Botti 2024-01-19 05:47:15 UTC
Version-Release number of selected component:
solaar-1.1.10-1.fc39

Additional info:
reporter:       libreport-2.17.11
kernel:         6.6.11-200.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-4841.scope
uid:            1000
reason:         hidpp20.py:1234:get_friendly_name:UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 2: invalid start byte
executable:     /usr/bin/solaar
type:           Python3
package:        solaar-1.1.10-1.fc39
runlevel:       N 5
exception_type: UnicodeDecodeError
crash_function: get_friendly_name
interpreter:    python3-3.12.1-2.fc39.x86_64

Truncated backtrace:
hidpp20.py:1234:get_friendly_name:UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 2: invalid start byte

Traceback (most recent call last):
  File "/usr/lib/python3.12/site-packages/solaar/ui/__init__.py", line 196, in _status_changed
    window.update(device, need_popup, refresh)
  File "/usr/lib/python3.12/site-packages/solaar/ui/window.py", line 883, in update
    item = _device_row(path, device.number, device if bool(device) else None)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/solaar/ui/window.py", line 464, in _device_row
    receiver_path, device_number, bool(device.online), device.codename, icon_name, status_text, status_icon, device
                                                       ^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/logitech_receiver/device.py", line 183, in codename
    self._codename = _hidpp20.get_friendly_name(self)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/logitech_receiver/hidpp20.py", line 1234, in get_friendly_name
    return name.decode('utf-8')
           ^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 2: invalid start byte

Local variables in innermost frame:
device: <Device(255,B01D,MX Ergo Multi-Device Trackball ,)>
name_length: 50
name: b'\x04\x04\xc0x\n\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x04\xc0x\n\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x04\xc0x\n\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x04'
fragment: b'\x04\x04\xc0x\n\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
initial_null: 0

Comment 1 Luca Botti 2024-01-19 05:47:19 UTC
Created attachment 2009207 [details]
File: os_info

Comment 2 Luca Botti 2024-01-19 05:47:21 UTC
Created attachment 2009208 [details]
File: environ

Comment 3 Luca Botti 2024-01-19 05:47:22 UTC
Created attachment 2009209 [details]
File: mountinfo

Comment 4 Luca Botti 2024-01-19 05:47:24 UTC
Created attachment 2009210 [details]
File: open_fds

Comment 5 Luca Botti 2024-01-19 05:47:26 UTC
Created attachment 2009211 [details]
File: namespaces

Comment 6 Luca Botti 2024-01-19 05:47:27 UTC
Created attachment 2009212 [details]
File: backtrace

Comment 7 Luca Botti 2024-01-19 05:47:29 UTC
Created attachment 2009213 [details]
File: cpuinfo

Comment 8 Dominik 'Rathann' Mierzejewski 2024-03-13 17:07:51 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 9 Fedora Update System 2024-07-23 17:42:39 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 10 Fedora Update System 2024-07-23 17:43:02 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 11 Fedora Update System 2024-07-24 03:51:36 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 12 Fedora Update System 2024-07-24 04:17:51 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 13 Fedora Update System 2024-07-25 01:28:55 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 14 Fedora Update System 2024-08-01 01:24:57 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 15 Red Hat Bugzilla 2024-11-30 04:25:06 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days


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