Activity Log Manager fails to launch

Bug #792288 reported by Alexander Karatarakis on 2011-06-03
32
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Activity Log Manager
Undecided
Unassigned

Bug Description

Installed from the PPA along with Zeitgeist 0.8.0 . When trying to launch activity-log-manager i get this:

Traceback (most recent call last):
  File "/usr/bin/activity-log-manager", line 87, in <module>
    window = Window()
  File "/usr/share/activity-log-manager/src/window.py", line 49, in __init__
    self._set_up_ui()
  File "/usr/share/activity-log-manager/src/window.py", line 61, in _set_up_ui
    self._set_up_applications_tab()
  File "/usr/share/activity-log-manager/src/window.py", line 97, in _set_up_applications_tab
    self.applications_tab = ApplicationsTab()
  File "/usr/share/activity-log-manager/src/window.py", line 345, in __init__
    self.app_chooser_dialog = ApplicationsChooserDialog()
  File "/usr/share/activity-log-manager/src/window.py", line 713, in __init__
    self._set_up_ui()
  File "/usr/share/activity-log-manager/src/window.py", line 721, in _set_up_ui
    self.treeview._populate_view()
  File "/usr/share/activity-log-manager/src/window.py", line 686, in _populate_view
    pix = self._get_pixbuf_from_gio_icon(icon)
  File "/usr/share/activity-log-manager/src/window.py", line 674, in _get_pixbuf_from_gio_icon
    pix = icon_info.load_icon()
glib.GError: Unrecognized image file format

I also checked out Bug #784067 but zeitgeist is running in my case:
[INFO - root] An existing instance was found. Please use --replace to quit it and start a new instance.

rhpot1991 (rhpot1991) wrote :

I have this issue on one box, but not on another. I suspect its a missing dependency but have been unable to determine which one at this point.

rhpot1991 (rhpot1991) wrote :

Temporary work around, change line 674 from:
pix = icon_info.load_icon()
to
pix = Nothing

gunkzmile (gunkzmile) wrote :

I managed to run this by changing line 674 from:
pix = icon_info.load_icon()
to
pix = None

"None" will be in color!!!

A more correct fix is:

Add this line after line 23:

import glib

Change line 676 from:

except gio.Error:

to:

except (gio.Error, glib.GError):

Here's the fix again in patch form.

Ghozy Arif Fajri (gojigeje) wrote :

@cybolic

followed your described step, but still ends with error,
however the last error said this:

NameError: global name 'Nothing' is not defined

Ghozy Arif Fajri (gojigeje) wrote :

Just experimenting.. I dont event know how to sripct in python.

I tried to change this part again,

pix = Nothing
to this:
pix = None

and activity-log-manager can run now, in my case.
I hope you can review it.

Isn't the line already pix = None? It is in my copy.
Anyway, what's the status on this bug? It's been here quite some time now.

Siegfried Gevatter (rainct) wrote :

I'm closing this since Activity Log Manager has been rewritten in Vala.

Changed in activity-log-manager:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers