Bug 2190371

Summary: [abrt] hplip-gui: getGroup(): cups.py:917:getGroup:UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd1 in position 38: unexpected end of data
Product: [Fedora] Fedora Reporter: Alexandr <t1gretto>
Component: hplipAssignee: Zdenek Dohnal <zdohnal>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 37CC: jridky, t1gretto, tkorbar, twaugh, zdohnal
Target Milestone: ---Flags: zdohnal: needinfo? (t1gretto)
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/18b24db35961368645c7f522ccfdf4a57c74a7c
Whiteboard: abrt_hash:d56f7a0a5ebbeae437769cc2f48c448f723c4472;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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: open_fds
none
File: namespaces
none
File: backtrace
none
File: environ
none
File: mountinfo
none
File: os_info
none
File: cpuinfo none

Description Alexandr 2023-04-28 07:38:06 UTC
Version-Release number of selected component:
hplip-gui-3.22.10-3.fc37

Additional info:
reporter:       libreport-2.17.9
interpreter:    python3-3.11.2-1.fc37.x86_64
runlevel:       N 5
kernel:         6.2.9-200.fc37.x86_64
type:           Python3
reason:         cups.py:917:getGroup:UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd1 in position 38: unexpected end of data
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-gnome-hplip-53348.scope
executable:     /usr/bin/hp-toolbox
cmdline:        /usr/bin/python3 /usr/bin/hp-toolbox
uid:            1000
exception_type: UnicodeDecodeError
package:        hplip-gui-3.22.10-3.fc37
crash_function: getGroup

Truncated backtrace:
cups.py:917:getGroup:UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd1 in position 38: unexpected end of data

Traceback (most recent call last):
  File "/usr/share/hplip/ui5/devmgr5.py", line 572, in Tabs_currentChanged
    self.TabIndex[tab]()
  File "/usr/share/hplip/ui5/devmgr5.py", line 1781, in updatePrintSettingsTab
    self.PrintSettingsToolbox.updateUi(self.cur_device, self.cur_printer)
  File "/usr/share/hplip/ui5/printsettingstoolbox.py", line 473, in updateUi
    text, num_subgroups = cups.getGroup(g)
                          ^^^^^^^^^^^^^^^^
  File "/usr/share/hplip/prnt/cups.py", line 917, in getGroup
    return cupsext.getGroup(group)
           ^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd1 in position 38: unexpected end of data

Local variables in innermost frame:
group: 'InstallableOptions'

Comment 1 Alexandr 2023-04-28 07:38:09 UTC
Created attachment 1960682 [details]
File: open_fds

Comment 2 Alexandr 2023-04-28 07:38:11 UTC
Created attachment 1960683 [details]
File: namespaces

Comment 3 Alexandr 2023-04-28 07:38:12 UTC
Created attachment 1960684 [details]
File: backtrace

Comment 4 Alexandr 2023-04-28 07:38:14 UTC
Created attachment 1960685 [details]
File: environ

Comment 5 Alexandr 2023-04-28 07:38:16 UTC
Created attachment 1960686 [details]
File: mountinfo

Comment 6 Alexandr 2023-04-28 07:38:18 UTC
Created attachment 1960687 [details]
File: os_info

Comment 7 Alexandr 2023-04-28 07:38:19 UTC
Created attachment 1960688 [details]
File: cpuinfo

Comment 8 Zdenek Dohnal 2023-07-14 12:45:03 UTC
Hi,

thank you for reporting the issue!

Are you able to reproduce the issue? Can you tell me the steps which leads to the crash?