GNOME Bugzilla – Bug 618330
Uncaught exception when incorrectly using D-Bus API
Last modified: 2011-08-26 18:37:35 UTC
Quick python example demonstrating my problem >>> import dbus >>> bus = dbus.SessionBus() >>> gnote_proxy = bus.get_object('org.gnome.Gnote', '/org/gnome/Gnote/RemoteControl') >>> gnote_proxy.FindStartHereNote() Traceback (most recent call last):
+ Trace 221853
return self._proxy_method(*args, **keywords)
**keywords)
message, timeout)
(and then Gnote crashes)
Actually Gnote aborts because of uncaught exception. Unfortunately this exception seems to be thrown out from main loop, it's an internal Gnote exception. Looks like this exception is thrown by dbus-c++ library, I reported this bug to them: https://sourceforge.net/tracker/?func=detail&aid=3137447&group_id=236997&atid=1101682
The provided example is not the correct way to use gnote D-Bus API from python. Gnote D-Bus support have been ported to Gio::DBus, this problem is gone. Thank you for bug report.