Caffeine does not start in Ubuntu

Bug #1453903 reported by Erich Eickmeyer
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Caffeine
Invalid
Undecided
Unassigned

Bug Description

Caffeine crashes upon start in Ubuntu. When started from the terminal, this is the output:

Traceback (most recent call last):
  File "/usr/bin/caffeine-indicator", line 176, in <module>
    caffeine = Caffeine()
  File "/usr/bin/caffeine-indicator", line 125, in __init__
    self.root = display.Display().screen().root
  File "/usr/lib/python3/dist-packages/Xlib/display.py", line 80, in __init__
    self.display = _BaseDisplay(display)
  File "/usr/lib/python3/dist-packages/Xlib/display.py", line 62, in __init__
    display.Display.__init__(*(self, ) + args, **keys)
  File "/usr/lib/python3/dist-packages/Xlib/protocol/display.py", line 61, in __init__
    name, host, displayno)
  File "/usr/lib/python3/dist-packages/Xlib/support/connect.py", line 93, in get_auth
    return getattr(mod, modname).get_auth(sock, dname, host, dno)
  File "/usr/lib/python3/dist-packages/Xlib/support/unix_connect.py", line 116, in new_get_auth
    au = xauth.Xauthority()
  File "/usr/lib/python3/dist-packages/Xlib/xauth.py", line 84, in __init__
    self.entries.append((family, addr.decode('UTF-8'),
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfe in position 0: invalid start byte

This only recently started happening. Let me know if you need any more info. Version 2.8.3

Revision history for this message
Matija Polajnar (matija-polajnar) wrote :

I have the same problem with another python program (not present in ubuntu repo). As a workaround, downgrading python-xlib one patch lower to http://si.archive.ubuntu.com/pool/universe/p/python-xlib/ python-xlib_0.14+20091101-1ubuntu2_all.deb makes it work again.

Revision history for this message
Reuben Thomas (rrt) wrote :

This is not a bug in caffeine, it's a bug in python-xlib. Please report the bug there.

Changed in caffeine:
status: New → 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.