jockey-gtk crashed with AttributeError: 'Backend' object has no attribute '_f_result' while trying to install fglrx driver

Bug #278034 reported by Jacob Hayn
130
Affects Status Importance Assigned to Milestone
jockey (Ubuntu)
Fix Released
High
Martin Pitt

Bug Description

Binary package hint: jockey-gtk

On a Hardy box the fglrx driver was installed and worked fine. I've upgraded from Hardy to the Intrepid Beta (with update-manager -d). After the upgrade the fgrlx driver was'nt installed anymore. Then i tried to reinstall it with 'System' -> 'Systemverwaltung' -> 'Hardware-Treiber' (sorry, that's german, but i checked the menu with 'alacarte' - it is jockey-gtk). That failed, so i ran it in a terminal and it chrashed again with the following output:

~$ jockey-gtk
Traceback (most recent call last):
  File "/usr/bin/jockey-gtk", line 344, in on_button_toggle_clicked
    'toggle', False):
  File "/usr/lib/python2.5/site-packages/jockey/ui.py", line 571, in set_handler_enable
    handler_id, enable)
  File "/usr/lib/python2.5/site-packages/jockey/backend.py", line 116, in polkit_auth_wrapper
    return fn(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/jockey/backend.py", line 87, in dbus_sync_call_signal_wrapper
    raise _h_exception_exc
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.AttributeError: Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/dbus/service.py", line 696, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/lib/python2.5/site-packages/jockey/backend.py", line 326, in set_enabled
    return self._f_result
AttributeError: 'Backend' object has no attribute '_f_result'

~$ lsb_release -rd
Description: Ubuntu intrepid (development branch)
Release: 8.10

~$ apt-cache policy jockey-gtk
jockey-gtk:
  Installiert: 0.5~beta1-0ubuntu2
  Kandidat: 0.5~beta1-0ubuntu2
  Versions-Tabelle:
 *** 0.5~beta1-0ubuntu2 0
        500 http://de.archive.ubuntu.com intrepid/main Packages
        100 /var/lib/dpkg/status

I found only one result on google for '_f_result jockey-gtk', an italian ubuntu forum. That doesn't helped much because i don't understand italian.

ProblemType: Crash
Architecture: i386
DistroRelease: Ubuntu 8.10
ExecutablePath: /usr/bin/jockey-gtk
InterpreterPath: /usr/bin/python2.5
NonfreeKernelModules: fglrx
Package: jockey-gtk 0.5~beta1-0ubuntu2
PackageArchitecture: all
ProcAttrCurrent: unconfined
ProcCmdline: /usr/bin/python /usr/bin/jockey-gtk
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/jockey-gtk']
SourcePackage: jockey
Title: jockey-gtk crashed with AttributeError in set_enabled()
Uname: Linux 2.6.27-4-generic i686
UserGroups: adm admin audio cdrom dialout dip floppy fuse lpadmin plugdev sambashare vboxusers video www-data

Revision history for this message
Jacob Hayn (jacobhayn) wrote :
Revision history for this message
Alberto Milone (albertomilone) wrote :

The proprietary fglrx video driver available in Ubuntu 8.04 LTS and earlier releases is not compatible with the X.Org included in Ubuntu 8.10. For further information, please read this:
https://wiki.ubuntu.com/IntrepidReleaseNotes#ATI%20video%20support

And here's the bug report filed against the fglrx driver:
https://bugs.launchpad.net/ubuntu/+source/fglrx-installer/+bug/247376

As regards the crash of Jockey, it might depend on the fact that python-apt failed to install the package since it provides "xserver-xorg-video-2" which conflicts with the current Xorg ABI (and this conflict is ok).

Revision history for this message
Martin Pitt (pitti) wrote :

Note to self: might happen if _f_result_wrapper() exits with an exception.

Changed in jockey:
assignee: nobody → pitti
status: New → In Progress
importance: Undecided → High
Revision history for this message
Martin Pitt (pitti) wrote :

Right, I reproduced the bug. Fixing...

Revision history for this message
Martin Pitt (pitti) wrote :

I fixed trunk to propagate the actual error from the driver, instead of that "_f_result" stuff. This change will then cause a different exception to be raised (reporting that through the standard crash handler is appreciated!).

Changed in jockey:
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package jockey - 0.5~beta1-0ubuntu3

---------------
jockey (0.5~beta1-0ubuntu3) intrepid; urgency=low

  * Merge bug fixes from trunk:
     - Update the name of fglrx; radeonhd etc. are accelerated, too.
       (LP: #263359)
     - ui.py, backend(): Re-detect device drivers after the backend timed out.
       (LP: #273231)
     - backend.py, set_enabled(): Propagate exceptions from the enable/disable
       threads. (LP: #278034)
     - jockey-{gtk,kde}: Fix display of UI elements if no drivers are
       available. (LP: #277616, #277702)
     - jockey-kde: Actually show a license dialog when clicking on "Details"
       for the license. [Alberto]
     - Fix enabling/disabling of video drivers if multiple cards are
       configured in xorg.conf. [Alberto]
     - detection.py, get_printers(): Intercept RuntimeError harder.
       (LP: #272721)

 -- Martin Pitt <email address hidden> Mon, 06 Oct 2008 13:34:12 +0200

Changed in jockey:
status: Fix Committed → Fix Released
Revision history for this message
Lorenz (lorenzloidl) wrote :

Amazingly quick fix! Will test tonight :)

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.