[Bug 1168206] Re: UnicodeDecodeError raised from attach_hardware()

Marcus Tomlinson marcus.tomlinson at canonical.com
Thu Mar 5 13:07:25 UTC 2020


This release of Ubuntu is no longer receiving maintenance updates. If
this is still an issue on a maintained version of Ubuntu please let us
know.

** Changed in: apport (Ubuntu)
       Status: New => Incomplete

-- 
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/1168206

Title:
  UnicodeDecodeError raised from attach_hardware()

Status in apport package in Ubuntu:
  Incomplete
Status in xdiagnose package in Ubuntu:
  Fix Released

Bug description:
  As seen on bugs #1164623 and #1162151:

  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/apport/report.py", line 197, in _run_hook
      symb['add_info'](report, ui)
    File "/usr/share/apport/package-hooks/source_xserver-xorg-video-intel.py", line 660, in add_info
      attach_hardware(report)
    File "/usr/lib/python3/dist-packages/apport/hookutils.py", line 246, in attach_hardware
      attach_dmi(report)
    File "/usr/lib/python3/dist-packages/apport/hookutils.py", line 201, in attach_dmi
      value = fd.read().strip()
    File "/usr/lib/python3.3/codecs.py", line 300, in decode
      (result, consumed) = self._buffer_decode(data, self.errors, final)
  UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte

  attach_dmi() is an apport call.  The dmi info's sometimes useful but
  not crucial to have in X bug reports, so if it's erroring we can
  safely skip its inclusion.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1168206/+subscriptions



More information about the foundations-bugs mailing list