UnicodeDecodeError raised from attach_hardware()

Bug #1168206 reported by Bryce Harrington
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Invalid
Undecided
Unassigned
xdiagnose (Ubuntu)
Fix Released
Undecided
Unassigned

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.

Related branches

Bryce Harrington (bryce)
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xdiagnose - 3.5

---------------
xdiagnose (3.5) raring-proposed; urgency=low

  * apport/source_xorg.py:
    + Catch exceptions thrown from attach_hardware() call, such as for
      errors in unicode handling.
      (LP: #1168206)
    + Only prompt for generating an nvidia-bug-report.log.gz in user
      interactive sessions (i.e. check that ui is defined.)
      (LP: #1163635)
 -- Bryce Harrington <email address hidden> Thu, 11 Apr 2013 18:53:27 -0700

Changed in xdiagnose (Ubuntu):
status: New → Fix Released
Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

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
Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

This issue has sat incomplete for more than 60 days now. I'm going to close it as invalid. Please feel free re-open if this is still an issue for you. Thank you.

Changed in apport (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.