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 618330 - Uncaught exception when incorrectly using D-Bus API
Uncaught exception when incorrectly using D-Bus API
Status: RESOLVED FIXED
Product: gnote
Classification: Applications
Component: dbus
0.7.x
Other Linux
: Normal critical
: ---
Assigned To: gnote-maint
gnote-maint
Depends on:
Blocks:
 
 
Reported: 2010-05-11 03:36 UTC by Jens Knutson
Modified: 2011-08-26 18:37 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jens Knutson 2010-05-11 03:36:04 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):
  • File "<input>", line 1 in <module>
  • File "/usr/lib/python2.6/site-packages/dbus/proxies.py", line 68 in __call__
    return self._proxy_method(*args, **keywords)
  • File "/usr/lib/python2.6/site-packages/dbus/proxies.py", line 140 in __call__
    **keywords)
  • File "/usr/lib/python2.6/site-packages/dbus/connection.py", line 630 in call_blocking
    message, timeout)
DBusException: org.freedesktop.DBus.Error.NoReply: Message did not receive a reply (timeout by message bus)

(and then Gnote crashes)
Comment 1 Aurimas Černius 2010-12-14 21:26:18 UTC
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
Comment 2 Aurimas Černius 2011-08-26 18:37:08 UTC
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.