Comment 15 for bug 1247624

Revision history for this message
Mondane (mondane-woodworker) wrote : Re: Laptop screen is turned off, needs shutdown to work again

I tried running apport-collect a few more times using a 14.04 daily image, but keep getting these errors:

ubuntu@ubuntu:~$ apport-collect -p xorg 1247624
cat: /var/log/lightdm/x-0-greeter.log: No such file or directory
cat: /var/log/lightdm/x-0-greeter.log.old: No such file or directory
ERROR: hook /usr/share/apport/package-hooks/source_xorg.py crashed:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/apport/report.py", line 197, in _run_hook
    symb['add_info'](report, ui)
  File "/usr/share/apport/package-hooks/source_xorg.py", line 683, in add_info
    attach_3d_info(report, ui)
  File "/usr/share/apport/package-hooks/source_xorg.py", line 406, in attach_3d_info
    xorglog = xorglog.encode('utf-8')
UnicodeDecodeError: 'ascii' codec can't decode byte 0x8c in position 27066: ordinal not in range(128)
Traceback (most recent call last):
  File "/usr/share/apport/apport-gtk", line 594, in <module>
    app.run_argv()
  File "/usr/lib/python2.7/dist-packages/apport/ui.py", line 674, in run_argv
    return self.run_update_report()
  File "/usr/lib/python2.7/dist-packages/apport/ui.py", line 594, in run_update_report
    attachment_comment='apport information')
  File "/usr/lib/python2.7/dist-packages/apport/crashdb_impl/launchpad.py", line 370, in update
    report.write_mime(mime, skip_keys=skip_keys)
  File "/usr/lib/python2.7/dist-packages/problem_report.py", line 507, in write_mime
    attach_value = CompressedValue(v, k).gzipvalue
  File "/usr/lib/python2.7/dist-packages/problem_report.py", line 44, in __init__
    self.set_value(value)
  File "/usr/lib/python2.7/dist-packages/problem_report.py", line 50, in set_value
    gzip.GzipFile(self.name, mode='wb', fileobj=out).write(value)
  File "/usr/lib/python2.7/gzip.py", line 136, in __init__
    self._write_gzip_header()
  File "/usr/lib/python2.7/gzip.py", line 181, in _write_gzip_header
    self.fileobj.write(fname + '\000')
TypeError: 'unicode' does not have the buffer interface

Do you have a solution so I can generate and send the bug report?
NB I needed to do 'sudo apt-get update && sudo apt-get install python-apport' first.