[Bug 1766337] Re: uncaught python exception : UnicodeDecodeError: 'utf-8' codec can't decode byte; invalid continuation byte
Launchpad Bug Tracker
1766337 at bugs.launchpad.net
Thu May 10 19:28:08 UTC 2018
This bug was fixed in the package apport - 2.20.10-0ubuntu1
---------------
apport (2.20.10-0ubuntu1) cosmic; urgency=medium
* New upstream release:
- backends/packaging-apt-dpkg.py: when using a permanent sandbox better
check for the package being already available thereby reducing quantity
of downloads.
- apport/report.py: Use timeout parameter in subprocess to limit how long
we'll wait for gdb to return information as gdb can hang with some core
files.
- data/apport: Fix PEP8 issues
- apport/ui.py: Include ProblemType in reports which are updated as
package hooks may expect the report to have a ProblemType. (LP: #1766794)
- test/test_ui.py: modify run_crash_kernel test to account for the fact
that linux-image-$kvers-$flavor is now built from the linux-signed
source package on amd64 and ppc64el. (LP: #1766740)
* data/general-hooks/ubuntu.py: Fix UnicodeDecodeError when processing
DpkgTerminalLog. (LP: #1766337)
* data/general-hooks/ubuntu.py: Don't display a messy error if python or
python3 is not installed. (LP: #1769262)
* debian/apport.links: source_linux-signed.py -> source_linux.py package
hook (LP: #1766740)
* data/package-hooks/source_linux.py: Redirect bugs filed about the
linux-signed source package to linux. (LP: #1766740)
-- Brian Murray <brian at ubuntu.com> Thu, 10 May 2018 09:31:34 -0700
** Changed in: apport (Ubuntu)
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/1766337
Title:
uncaught python exception : UnicodeDecodeError: 'utf-8' codec can't
decode byte; invalid continuation byte
Status in apport package in Ubuntu:
Fix Released
Bug description:
Hi,
here is a python exception I got while reporting a bug:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport/report.py", line 198, in _run_hook
symb['add_info'](report, ui)
File "/usr/share/apport/general-hooks/ubuntu.py", line 89, in add_info
check_attachment_for_errors(report, attachment)
File "/usr/share/apport/general-hooks/ubuntu.py", line 208, in check_attachment_for_errors
trim_dpkg_log(report)
File "/usr/share/apport/general-hooks/ubuntu.py", line 508, in trim_dpkg_log
report['DpkgTerminalLog'] = '\n'.join([str(line.decode('utf-8')) for line in lines])
File "/usr/share/apport/general-hooks/ubuntu.py", line 508, in <listcomp>
report['DpkgTerminalLog'] = '\n'.join([str(line.decode('utf-8')) for line in lines])
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe2 in position 3070: invalid continuation byte
It can also be seen here:
https://launchpadlibrarian.net/367002573/HookError_ubuntu.txt
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: apport 2.20.9-0ubuntu6
Uname: Linux 4.16.3-041603-generic x86_64
ApportLog:
ApportVersion: 2.20.9-0ubuntu6
Architecture: amd64
CurrentDesktop: MATE
Date: Mon Apr 23 20:13:24 2018
PackageArchitecture: all
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: apport
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1766337/+subscriptions
More information about the foundations-bugs
mailing list