dmedia-service crashes on import

Bug #729236 reported by David Green
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Dmedia
Fix Released
Critical
Jason Gerard DeRose
Frugalware Linux
New
Undecided
Unassigned

Bug Description

On Ubuntu 11.04 development version, using the latest (r172) lp:dmedia branch I get errors when I try to import files. The program quits before any indicator icon shows up but after the first run confirmation.

Terminal output: http://paste.ubuntu.com/575607/

Revision history for this message
David Green (david4dev) wrote :
Changed in dmedia:
status: New → Triaged
Revision history for this message
Jason Gerard DeRose (jderose) wrote :

David,

I haven't been able to reproduce this, but I have no doubt it is occurring. My hunch is this might be related to this bug I just started encountering as of a recent Natty update:

https://bugs.launchpad.net/dmedia/+bug/728769

Can you reproduce this every time? If so, can you give me a really detailed step-by-step of what you're doing? I'll try to reproduce it, or at least figure out what it's happening for you and not me.

Anyway, thanks for bug report and for braving both dmedia and Ubuntu testing together! :)

Changed in dmedia:
importance: Undecided → Critical
milestone: none → 0.5
Revision history for this message
David Green (david4dev) wrote :

Firstly, I installed dmedia from the branch by creating a .deb file using `debuild -b` from the root directory of the branch. I installed the package using `sudo gdebi ../dmedia_0.5.0-0ubuntu1_all.deb` which installed all dependencies and the package itself.

Once it had installed, I attempted to run it from the menu. It asked me to choose a folder and I did and pressed OK. After I did this, it crashes and Apport popped up several times telling me it had crashed.

I then tried to run it from a terminal. Running `dmedia-import` did exactly the same thing as when run from the menu and gave output similar to what I posted. I attempted to run `dmedia-import /usr/share/pixmaps` and this did the same thing.

I have been able to reproduce this repeatedly - even after updating and upgrading all of my packages and rebooting.

Revision history for this message
David Green (david4dev) wrote :

I've tried again with lp:dmedia revision 176. I get the same problems except the last line of the error out put has changed from `dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.ChildExited: Process /usr/lib/dmedia/dmedia-service exited with status 1` to `dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.ExecFailed: Failed to execute program /usr/lib/dmedia/dmedia-service: Success`

Full output: http://paste.ubuntu.com/584516/

Revision history for this message
Jason Gerard DeRose (jderose) wrote :

David, could you try this again with trunk revision 178? I think I got all the pygtk => pygi transition issues sorted out (which I think was causing your problem, although I wasn't able to reproduce it myself).

Revision history for this message
David Green (david4dev) wrote :

I still have the same problem with revision 178.

http://paste.ubuntu.com/586984/

Revision history for this message
Jason Gerard DeRose (jderose) wrote :

Drat! Thanks for you patience with this bug, David! And I apologize that it has dragged on for so long!

If you would be so kind, please try these 2 things:

1) Make sure all the dependencies are installed:

  sudo apt-get install desktopcouch python-couchdb python-genshi python-xdg gir1.2-gtk-2.0 gir1.2-webkit-1.0 gir1.2-appindicator-0.1 gir1.2-notify-0.7 totem libimage-exiftool-perl python-libtorrent python-boto python-gst0.10 gstreamer0.10-plugins-good

2) Try running dmedia-service from the source tree (first make the system-wide dmedia-service isn't running by going to the appindicator and clicking "Shutdown dmedia"):

  ./dmedia-service

If that fails to start, can you paste.ubuntu me the trace?

By the way, installing dmedia from the Novacut Daily Builds PPA can be a handy way to stay on top of dependencies changes... I'm usually pretty good about keeping dependencies current for anything that is merged to trunk - https://launchpad.net/~novacut/+archive/daily

Changed in dmedia:
milestone: 0.5 → 0.6
Revision history for this message
David Green (david4dev) wrote :

I updated all my packages, then installed dmedia from the Novacut Daily Builds PPA and ran dmedia-import (and chose to import /usr/share/pixmaps using the GUI) and it worked!

So this bug seems to be fixed. My guess is that it was a dependency problem or a bug in a dependency that was fixed upstream.

Changed in dmedia:
status: Triaged → Fix Released
Revision history for this message
Jason Gerard DeRose (jderose) wrote :

Thanks David, so glad this is working for you now. I could never reproduce, thought I was going crazy :)

Revision history for this message
Devil505 (devil505) wrote :

Same problem here:

devil505@frugalware ~ $ dmedia-import /usr/share/pixmaps/
Traceback (most recent call last):
  File "/usr/bin/dmedia-import", line 71, in <module>
    action = client.start_import(base, options.extract)
  File "/usr/lib/python2.7/site-packages/dmedia/gtkui/client.py", line 223, in start_import
    return self._call('StartImport', base, extract)
  File "/usr/lib/python2.7/site-packages/dmedia/gtkui/client.py", line 140, in _call
    method = self.proxy.get_dbus_method(name, dbus_interface=INTERFACE)
  File "/usr/lib/python2.7/site-packages/dmedia/gtkui/client.py", line 135, in proxy
    self._proxy = self._conn.get_object(self._bus, '/')
  File "/usr/lib/python2.7/site-packages/dbus/bus.py", line 244, in get_object
    follow_name_owner_changes=follow_name_owner_changes)
  File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 241, in __init__
    self._named_service = conn.activate_name_owner(bus_name)
  File "/usr/lib/python2.7/site-packages/dbus/bus.py", line 183, in activate_name_owner
    self.start_service_by_name(bus_name)
  File "/usr/lib/python2.7/site-packages/dbus/bus.py", line 281, in start_service_by_name
    'su', (bus_name, flags)))
  File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 630, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.ChildExited: Process /usr/lib/dmedia/dmedia-service exited with status 1

David Green (david4dev)
Changed in dmedia:
status: Fix Released → Fix Committed
Revision history for this message
David Green (david4dev) wrote :

This is fixed in the latest revision and works from the unstable ppa. I understand that frugalware uses pacman so the ppa can't be used. You need to install it manually using setup.py which I assume you have done already. My guess is that this is a dependency issue. Make sure you have the following installed:

    desktopcouch,
    python-couchdb (>= 0.8),
    python-genshi,
    python-xdg,
    gir1.2-gtk-2.0,
    gir1.2-webkit-1.0,
    gir1.2-appindicator-0.1,
    gir1.2-notify-0.7,
    totem,
    libimage-exiftool-perl,
    python-libtorrent,
    python-boto,
    python-gst0.10,
    gstreamer0.10-plugins-good

Some of the package names will probably be different in frugalware.

Changed in dmedia:
assignee: nobody → Jason Gerard DeRose (jderose)
Changed in dmedia:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.