Opened 5 years ago
Last modified 13 months ago
#59153 assigned defect
dbus @1.12.16_0: Startup items not started correctly
Reported by: | rubendibattista (Ruben Di Battista) | Owned by: | MarcusCalhoun-Lopez (Marcus Calhoun-Lopez) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.6.0 |
Keywords: | Cc: | hugo-ribeiro (Hugo Ribeiro), mascguy (Christopher Nielsen) | |
Port: | dbus |
Description
I'm experiencing problems with port that need dbus integration. For example if I run gimp:
2019-10-03 02:29:20.520 gimp[84942:5482481] *** WARNING: Method userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead. Session D-Bus not running. Try running `launchctl load -w /Library/LaunchAgents/org.freedesktop.dbus-session.plist'. Unable to read initialization file script-fu.init (gimp:84942): GLib-GObject-WARNING **: 02:29:22.464: invalid cast from 'GtkMenuBar' to 'GtkWindow' (gimp:84942): Gtk-CRITICAL **: 02:29:22.464: gtk_window_add_accel_group: assertion 'GTK_IS_WINDOW (window)' failed
So I checked the dbus
processes running:
ps -A | grep dbus 84828 ?? 0:00.01 /opt/local/bin/dbus-daemon --system --nofork
So the session daemon is not running.
So I do
sudo port load dbus
but still
ps -A | grep dbus 84828 ?? 0:00.01 /opt/local/bin/dbus-daemon --system --nofork
If I then do:
launchctl start org.freedesktop.dbus-session
I get
ps -A | grep dbus 84828 ?? 0:00.01 /opt/local/bin/dbus-daemon --system --nofork 85050 ?? 0:00.01 /opt/local/bin/dbus-daemon --nofork --session
but still gimp (or Inkscape) don't get the connection to dbus.
MacOs version: 10.14.6 (18G95)
Attachments (2)
Change History (17)
comment:1 Changed 5 years ago by jmroot (Joshua Root)
comment:2 Changed 5 years ago by mf2k (Frank Schima)
Cc: | MarcusCalhoun-Lopez removed |
---|---|
Owner: | set to MarcusCalhoun-Lopez |
Status: | new → assigned |
comment:3 Changed 5 years ago by hugo-ribeiro (Hugo Ribeiro)
I have the exact same problem. (Never reported it because gimp and inkscape still launch and are usable). Anyhow, I've attached the output of sudo port -d unload dbus && sudo port -d load dbus
.
Changed 5 years ago by hugo-ribeiro (Hugo Ribeiro)
Attachment: | dbus_unload_load.txt added |
---|
output from unload and load dbus with macports
comment:4 Changed 5 years ago by kencu (Ken)
I have the exact same issue as well, and have never been able to figure out why dbus always delivers errors like this.
comment:5 Changed 5 years ago by hugo-ribeiro (Hugo Ribeiro)
Cc: | hugo-ribeiro added |
---|
Changed 5 years ago by rubendibattista (Ruben Di Battista)
Attachment: | dbus_rubendibattista.txt added |
---|
comment:6 Changed 5 years ago by rubendibattista (Ruben Di Battista)
I can also confirm that the programs seem to work despite the error...
comment:7 Changed 5 years ago by rubendibattista (Ruben Di Battista)
Other problematic port: evince. It does not work... Even if I launch manually the dbus session. (i.e. I cannot open any pdf).
@kencu @hugo-ribeiro can you try to open a PDF with evince?
comment:8 Changed 5 years ago by rubendibattista (Ruben Di Battista)
Just wanted to ping here! The problem is still there...
comment:9 Changed 5 years ago by kencu (Ken)
I see lots of dbus errors using evince on 10.6.8, but it does work to view documents
$ evince (evince:76996): dbind-WARNING **: 09:00:40.404: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.a11y.Bus exited with status 1 (evince:76996): dconf-WARNING **: 09:00:55.358: failed to commit changes to dconf: The connection is closed (evince:76996): dconf-WARNING **: 09:00:55.360: failed to commit changes to dconf: The connection is closed (yelp:77211): dbind-WARNING **: 09:02:05.597: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.a11y.Bus exited with status 1 ** (yelp:77211): WARNING **: 09:02:05.744: Unable to connect to dbus: The connection is closed (<unknown>:77217): dbind-WARNING **: 09:02:06.845: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.a11y.Bus exited with status 1
of course, I see lots of dbus errors with every gnome program.
comment:10 Changed 5 years ago by kencu (Ken)
I went through my HOME folder, and cleaned out several years worth of .XYZ directories, some of which seemed to be dbus
related.
Since I did that, I'm no longer seeing these dbus errors!
Oh, could it be so easy....
comment:11 Changed 5 years ago by rubendibattista (Ruben Di Battista)
The only dbus folder I had is .dbus-keyring. I removed it, but if I do the port load dbus
I still get only the system session:
60388 ?? 0:00.02 /opt/local/bin/dbus-daemon --system --nofork
evince
gives me error
Unable to open document “file:///Users/rubendibattista/git/x/Documents/presentations/output/presentation/main-presentation.pdf”. File type PDF document is not supported
:(
And with inkscape I get the same ol' errors:
dbus[60450]: Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded! Failed to get connection ** (org.inkscape.Inkscape:60450): CRITICAL **: 12:28:14.372: dbus_g_proxy_new_for_name: assertion 'connection != NULL' failed ** (org.inkscape.Inkscape:60450): CRITICAL **: 12:28:14.372: dbus_g_proxy_call: assertion 'DBUS_IS_G_PROXY (proxy)' failed ** (org.inkscape.Inkscape:60450): CRITICAL **: 12:28:14.372: dbus_g_connection_register_g_object: assertion 'connection != NULL' failed ** (org.inkscape.Inkscape:60450): WARNING **: 12:28:14.631: Fonts dir '/Users/rubendibattista/.config/inkscape/fonts' does not exist and will be ignored. dbus[60450]: Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded! Failed to get connection ** (org.inkscape.Inkscape:60450): CRITICAL **: 12:28:16.252: dbus_g_proxy_new_for_name: assertion 'connection != NULL' failed ** (org.inkscape.Inkscape:60450): CRITICAL **: 12:28:16.252: dbus_g_connection_lookup_g_object: assertion 'connection != NULL' failed ** (org.inkscape.Inkscape:60450): CRITICAL **: 12:28:16.252: dbus_g_connection_register_g_object: assertion 'connection != NULL' failed
I loaded manually dbus-session
:
launchctl start org.freedesktop.dbus-session
I seriously don't know what's wrong here.
comment:12 Changed 5 years ago by jmroot (Joshua Root)
So it looks like base has loaded the launchd plists correctly. launchctl list | grep dbus
should confirm that; run as your user to see dbus-session and as root to see dbus-system. The dbus-system job has KeepAlive set, so it will run all the time. The dbus-session job does not, since it runs per-user. It is meant to launch on demand when there is traffic on its socket.
I don't know what the problem is, but it seems unlikely to be at the launchd level.
comment:13 Changed 4 years ago by raimue (Rainer Müller)
Make sure that the dbus environment variable is set in launchd in order to find the socket for the session daemon. If the following command returns nothing, something is not right.
$ launchctl getenv DBUS_LAUNCHD_SESSION_BUS_SOCKET /private/tmp/com.apple.launchd.[...]/unix_domain_listener
If you are using iTerm2, the way it restores a previous session may break the setting of this environment variable through launchd. See the upstream report for details and workarounds.
comment:15 Changed 13 months ago by mascguy (Christopher Nielsen)
Cc: | mascguy added |
---|
Please show the output from
sudo port -d unload dbus && sudo port -d load dbus
.