After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 719627 - Exception (caused by notification daemon failures) at end of a successful render prevents the render window updating
Exception (caused by notification daemon failures) at end of a successful ren...
Status: RESOLVED FIXED
Product: pitivi
Classification: Other
Component: User interface
0.92
Other Linux
: Normal trivial
: 0.93
Assigned To: Pitivi maintainers
Pitivi maintainers
Depends on:
Blocks:
 
 
Reported: 2013-12-01 08:43 UTC by Alex Băluț
Modified: 2013-12-12 20:14 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Alex Băluț 2013-12-01 08:43:24 UTC
It should show maybe a Close button but it shows Pause/Cancel and this stacktrace in the console:

Traceback (most recent call last):
  • File "pitivi/render.py", line 977 in _busMessageCb
    self.notification.show()
gi._glib.GError: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Notifications was not provided by any .service files

Comment 1 Jean-François Fortin Tam 2013-12-01 15:03:00 UTC
Oh... that's unexpected. How can freedesktop notifications not work? So in your case has_libnotify = True (the import works) but it still fails to use it?

It's really weird that it manages to get through                 

Notify.init("pitivi")
self.notification = Notify.Notification.new(blah blah blah)

but not
self.notification.show()

Alex, what would you suggest we do in this case? Add a nasty try-catch around the whole thing and log an error if it fails?
Comment 2 Alex Băluț 2013-12-02 04:18:41 UTC
This happens when the notification-daemon process dies, for example. In this case a RuntimeError is thrown, but we should not be bothered by it.
Wrote a fix, will make a pull request.
Comment 4 Jean-François Fortin Tam 2013-12-12 20:14:13 UTC
Thanks Alex :)