GNOME Bugzilla – Bug 652572
Crash if daemon is not running
Last modified: 2011-08-26 10:57:48 UTC
I got this crash while trying to add a Google account without having the daemon running. GLib-GIO-CRITICAL **: g_dbus_proxy_call: assertion `G_IS_DBUS_PROXY (proxy)' failed Program received signal SIGTRAP, Trace/breakpoint trap. 0x00007ffff4cfd974 in g_logv (log_domain=0x7ffff598ede6 "GLib-GIO", log_level=G_LOG_LEVEL_CRITICAL, format=0x7ffff4d85178 "%s: assertion `%s' failed", args1=0x7fffffffbb60) at gmessages.c:552 552 G_BREAKPOINT (); (gdb) bt
+ Trace 227480
Hmm, the daemon should be activated by dbus-daemon(1) if it's not running already. Did you not run 'make install'? We could make the code handle the case where calls into the daemon fails but not sure it's worth it...
(In reply to comment #1) > Hmm, the daemon should be activated by dbus-daemon(1) if it's not running > already. Did you not run 'make install'? We could make the code handle the case > where calls into the daemon fails but not sure it's worth it... Making it not crash would be useful. Either that or print out a useful warning, rather than crashing (and yes, it's useful because soon, the account bits will be in gnome-control-center, and I don't fancy dup'ing bugs for people who can't install things properly).
(In reply to comment #1) > Hmm, the daemon should be activated by dbus-daemon(1) if it's not running > already. Did you not run 'make install'? We could make the code handle the case > where calls into the daemon fails but not sure it's worth it... I'm using jhbuild so it wasn't activated. We should at least display a g_warning() or something.
(In reply to comment #2) > (In reply to comment #1) > > Hmm, the daemon should be activated by dbus-daemon(1) if it's not running > > already. Did you not run 'make install'? We could make the code handle the case > > where calls into the daemon fails but not sure it's worth it... > > Making it not crash would be useful. Either that or print out a useful warning, > rather than crashing (and yes, it's useful because soon, the account bits will > be in gnome-control-center, and I don't fancy dup'ing bugs for people who can't > install things properly). Makes sense to me, yeah.
Created attachment 190531 [details] [review] panel: Disable buttons when D-Bus service not avail
No idea if this works or not. Guillaume? Does that print out a warning and disable the whole panel?
Doesn't seem to change anything, I still get the warning.
The patch certainly fixes the crash here.