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 615199 - Invoking a DBus method with a callback as an argument never executes the callback
Invoking a DBus method with a callback as an argument never executes the call...
Status: RESOLVED OBSOLETE
Product: seed
Classification: Bindings
Component: libseed
git master
Other Linux
: Normal normal
: ---
Assigned To: seed-maint
seed-maint
Depends on:
Blocks:
 
 
Reported: 2010-04-08 17:55 UTC by Elliot Smith
Modified: 2021-05-25 17:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
adds some debugging code (3.10 KB, patch)
2011-01-04 15:42 UTC, Alan Knowles
none Details | Review

Description Elliot Smith 2010-04-08 17:55:49 UTC
Using seed and seed-examples HEAD

Using WebKit 1.1.90

Running on Fedora 11

*******
The dbus-consolekit.js example (

http://git.gnome.org/browse/seed-examples/tree/dbus/dbus-consolekit.js

) currently hangs on my machine when I run it. I think this is because it never reaches Seed.quit() (the callback is never invoked) and just sits inside the GLib mainloop.

I can't see any messages being sent over DBus (when I use dbus-monitor) and can't really get any useful debug information from seed (under gdb).

I am able to call other DBus methods which don't take a callback (so the Banshee example works for me, for example).

Sorry I can't provide anything more useful.
Comment 1 tomw 2011-01-03 13:44:31 UTC
using seed HEAD
using gobject-introspection 9.12
using ubuntu 10.10

********************

Seems I have come across the same issue here and to be honest I'm a bit concerned that this bug is obviously still open. I can confirm though, that messages are sent over dbus as they are received on the remote end. However, there are no return values received. See the simple test snippets here:

http://pastebin.com/MXQwj4aF
http://pastebin.com/eGHKT1jT
Comment 2 Alan Knowles 2011-01-04 15:42:08 UTC
Created attachment 177491 [details] [review]
adds some debugging code

Got this far after adding a the deubging patch and a small change - not calling 
dbus_message_iter_has_next, which it looks like should not be called anyway.

Program received signal SIGSEGV, Segmentation fault.
0x00c1e0e6 in ?? () from /usr/lib/libwebkit-1.0.so.2
(gdb) bt full
  • #0 ??
    from /usr/lib/libwebkit-1.0.so.2
  • #1 JSObjectCallAsFunction
    from /usr/lib/libwebkit-1.0.so.2
  • #2 seed_closure_invoke_with_context
    at seed-closure.c line 405
  • #3 pending_notify
    at module.c line 316
  • #4 ??
    from /lib/libdbus-1.so.3
  • #5 ??
    from /lib/libdbus-1.so.3

Comment 3 Alan Knowles 2011-08-24 08:33:15 UTC
A partial fix should be in head.

The pastebin examples do not work at present at it displays 
DBus error: org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.seed.Test" does not exist
Comment 4 André Klapper 2021-05-25 17:32:08 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new enhancement request ticket at
  https://gitlab.gnome.org/GNOME/seed/-/issues/

Thank you for your understanding and your help.