← Back to team overview

desktop-packages team mailing list archive

[Bug 1409096] [NEW] ubuntu-bug synaptic fails due to UnicodeDecodeError while reading dmesg

 

Public bug reported:

invoking `ubuntu-bug synaptic` causes

    $ ubuntu-bug synaptic
    ==== AUTHENTICATING FOR com.ubuntu.apport.root-info ===
    Authentication is required to collect system information for this problem report
    Authenticating as: richter,,, (richter)
    Password: 
    ==== AUTHENTICATION COMPLETE ===
    ERROR: hook /usr/share/apport/package-hooks/source_synaptic.py crashed:
    Traceback (most recent call last):
      File "/usr/lib/python3/dist-packages/apport/report.py", line 197, in _run_hook
        symb['add_info'](report, ui)
    TypeError: add_info() takes 1 positional argument but 2 were given

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/usr/lib/python3/dist-packages/apport/report.py", line 202, in _run_hook
        symb['add_info'](report)
      File "/usr/share/apport/package-hooks/source_synaptic.py", line 15, in add_info
        'CurrentDmesg.txt': 'dmesg | comm -13 --nocheck-order /var/log/dmesg -'})
      File "/usr/lib/python3/dist-packages/apport/hookutils.py", line 469, in attach_root_command_outputs
        buf = f.read().strip()
      File "/usr/lib/python3.4/codecs.py", line 313, in decode
        (result, consumed) = self._buffer_decode(data, self.errors, final)
    UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe2 in position 2531522: invalid continuation byte

after I entered my user password at the prompt.

ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: apport 2.14.7-0ubuntu8
Uname: Linux 3.19.0-031900rc3-generic x86_64
ApportVersion: 2.14.7-0ubuntu8
Architecture: amd64
CurrentDesktop: Unity
Date: Fri Jan  9 20:11:56 2015
EcryptfsInUse: Yes
InstallationDate: Installed on 2015-01-03 (6 days ago)
InstallationMedia: Ubuntu 14.10 "Utopic Unicorn" - Release amd64 (20141022.1)
PackageArchitecture: all
SourcePackage: apport
SystemImageInfo:
 current build number: 0
 device name: 
 channel: daily
 last update: Unknown
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: apport (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug utopic

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/1409096

Title:
  ubuntu-bug synaptic fails due to UnicodeDecodeError while reading
  dmesg

Status in apport package in Ubuntu:
  New

Bug description:
  invoking `ubuntu-bug synaptic` causes

      $ ubuntu-bug synaptic
      ==== AUTHENTICATING FOR com.ubuntu.apport.root-info ===
      Authentication is required to collect system information for this problem report
      Authenticating as: richter,,, (richter)
      Password: 
      ==== AUTHENTICATION COMPLETE ===
      ERROR: hook /usr/share/apport/package-hooks/source_synaptic.py crashed:
      Traceback (most recent call last):
        File "/usr/lib/python3/dist-packages/apport/report.py", line 197, in _run_hook
          symb['add_info'](report, ui)
      TypeError: add_info() takes 1 positional argument but 2 were given

      During handling of the above exception, another exception
  occurred:

      Traceback (most recent call last):
        File "/usr/lib/python3/dist-packages/apport/report.py", line 202, in _run_hook
          symb['add_info'](report)
        File "/usr/share/apport/package-hooks/source_synaptic.py", line 15, in add_info
          'CurrentDmesg.txt': 'dmesg | comm -13 --nocheck-order /var/log/dmesg -'})
        File "/usr/lib/python3/dist-packages/apport/hookutils.py", line 469, in attach_root_command_outputs
          buf = f.read().strip()
        File "/usr/lib/python3.4/codecs.py", line 313, in decode
          (result, consumed) = self._buffer_decode(data, self.errors, final)
      UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe2 in position 2531522: invalid continuation byte

  after I entered my user password at the prompt.

  ProblemType: Bug
  DistroRelease: Ubuntu 14.10
  Package: apport 2.14.7-0ubuntu8
  Uname: Linux 3.19.0-031900rc3-generic x86_64
  ApportVersion: 2.14.7-0ubuntu8
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Fri Jan  9 20:11:56 2015
  EcryptfsInUse: Yes
  InstallationDate: Installed on 2015-01-03 (6 days ago)
  InstallationMedia: Ubuntu 14.10 "Utopic Unicorn" - Release amd64 (20141022.1)
  PackageArchitecture: all
  SourcePackage: apport
  SystemImageInfo:
   current build number: 0
   device name: 
   channel: daily
   last update: Unknown
  UpgradeStatus: No upgrade log present (probably fresh install)

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


Follow ups

References