Opened 10 years ago

Closed 8 years ago

#41442 closed defect (worksforme)

zenity fails under mavericks

Reported by: splaisan (Stephane Plaisance) Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: mavericks Cc: neverpanic (Clemens Lang)
Port: zenity

Description

I upgraded to 10.9 with all Xcode and Cl tools installed. I deinstalled all my ports then reinstalled as informed in mavericks pages.

After reinstalling zenity and lots of dependencies I get an error in XQuartz (XQuartz-2.7.5.dmg) with a simple command like:

zenity --file-selection  --file-filter="md file|*.md" --title='BITS utilities: Select a ".md" File'

** (zenity:36321): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.Spawn.ChildExited: Process /opt/local/libexec/at-spi-bus-launcher exited with status 1
**
Gdk:ERROR:gdkcairo.c:193:gdk_cairo_surface_paint_pixbuf: assertion failed: (cairo_image_surface_get_format (surface) == CAIRO_FORMAT_RGB24 || cairo_image_surface_get_format (surface) == CAIRO_FORMAT_ARGB32)
Abort trap: 6

xclock and xlogo work

Change History (15)

comment:1 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Is dbus started? Type "port notes dbus" to see instructions for how to start it.

comment:2 Changed 10 years ago by splaisan (Stephane Plaisance)

thanks a lot for that, from the note commands, it appears that the bus is already running

Apparently, it was my color resolution that was fatal and set too low in XQuartz. In 1000 ’s colors. Now zenity calls trigger this message BUT does the job!

** (zenity:62249): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.Spawn.ChildExited: Process /opt/local/libexec/at-spi-bus-launcher exited with status 1

I did

sudo launchctl unload -w /Library/LaunchDaemons/org.freedesktop.dbus-system.plist

then

sudo launchctl load -w /Library/LaunchDaemons/org.freedesktop.dbus-system.plist

to see if any effect but it remains the same
any idea?

Last edited 10 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:3 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: cal@… added

comment:4 Changed 10 years ago by neverpanic (Clemens Lang)

Can you run /opt/local/libexec/at-spi-bus-launcher directly and see if that prints any helpful diagnostic messages?

comment:5 Changed 10 years ago by splaisan (Stephane Plaisance)

here we go:

/opt/local/libexec/at-spi-bus-launcher
Failed to launch bus: Failed to connect to session bus

takes some time (~10sec) to return the result

comment:6 Changed 10 years ago by neverpanic (Clemens Lang)

Please read port notes dbus and make sure you did run the line that contains "LaunchAgents". Also, try logging off and back on again and see if that fixes the issue.

comment:7 Changed 10 years ago by splaisan (Stephane Plaisance)

I did this already on someone's (you!) advice but it says it is already running (see below)

$ sudo launchctl load -w /Library/LaunchDaemons/org.freedesktop.dbus-system.plist
org.freedesktop.dbus-system: Already loaded
$ launchctl load -w /Library/LaunchAgents/org.freedesktop.dbus-session.plist
org.freedesktop.dbus-session: Already loaded

I restarted several times meanwhile so this is not a fix for me unless my session is not 100% clean (yeas I did already fix permissions on my mac).

thanks for any other idea!

comment:8 Changed 10 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Keywords: mavericks added

comment:9 Changed 10 years ago by neverpanic (Clemens Lang)

What's the output of

env | grep DBUS

on a fresh shell?

comment:10 Changed 10 years ago by splaisan (Stephane Plaisance)

result is:

$ env | grep DBUS
DBUS_LAUNCHD_SESSION_BUS_SOCKET=/tmp/launch-mjydHr/unix_domain_listener

thanks!

comment:11 Changed 10 years ago by splaisan (Stephane Plaisance)

and it is found as follows

ll /tmp/launch-mjydHr/
srwx------  1 splaisan wheel   0 Nov 26 10:16 unix_domain_listener

comment:12 Changed 10 years ago by splaisan (Stephane Plaisance)

And I just found a fix although I have no idea if this is not harmful for other resources. Cal and colleagues might figure out how to refine this and make it for all.

A Solution was posted by Fran on http://forums.gentoo.org/viewtopic-t-947210-start-0.html

export NO_AT_BRIDGE=1 # added to my .bashrc does the trick

Thanks Fran! and all here who helped.

comment:13 Changed 10 years ago by neverpanic (Clemens Lang)

That solution should be fine for your needs. AFAIK at-spi stuff is some accessibility tool used by the GNOME environment.

comment:14 Changed 8 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to devans@…
Port: zenity added

I'm not sure if anything still needs to be done here.

comment:15 Changed 8 years ago by dbevans (David B. Evans)

Resolution: worksforme
Status: newclosed

Yes, current version of zenity (3.18.1.1) works fine for me so closing on that basis.

Note: See TracTickets for help on using tickets.