Opened 15 years ago

Closed 14 years ago

#20645 closed defect (worksforme)

[gimp] [2.6.6] dbus problem starting gimp

Reported by: mwathelet@… Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: gimp Cc: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Port: dbus

Description

new to this, a little clueless; got a few ports installed correctly but ran into this problem when attempting to use GIMP:

Xlib: extension "RANDR" missing on display "/tmp/launch-vbadei/:0". Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded! Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded! Not enough memory

Thanks!

Change History (6)

comment:1 Changed 15 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to devans@…

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

Keywords: gimp added
Port: dbus added; gimp removed
Resolution: worksforme
Status: newclosed
Summary: [gimp] [2.6.6] [extension "RANDR" missing on display ... Not enough memory][gimp] [2.6.6] dbus problem starting gimp

This appears to be a dbus problem. Please make sure that dbus is configured properly (i.e. that you followed the directions that were printed on the screen when dbus was installed), namely that you executed these commands:

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

this should only need to be done once. Rebooting your system after this may be a good idea as well.

This addresses the error

Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!

The error

Xlib:  extension "RANDR" missing on display "/tmp/launch-vbadei/:0"

is normal and is just a warning. Neither the X11 server shipped by Apple or the one installed by MacPorts (port xorg-server) supports the "RANDR" extension and they correctly report this to the application. The applications then proceed without using that extension. You will see this with just about every gtk2 based application (such as gimp) -- just ignore it.

You might want to search trac for dbus tickets similar to this one for more details about dbus.

If dbus is set up correctly you should see something like

devans% ps ax | grep dbus
  224  ??  Ss     0:00.57 /opt/local/bin/dbus-daemon --nofork --session

and when you start gimp you should only see the RANDR message.

By the way, gimp 2.6.7 is now current so you can upgrade to that as follows:

sudo port selfupdate
sudo port upgrade gimp2

comment:3 Changed 14 years ago by mark.swanson.sw@…

Resolution: worksforme
Status: closedreopened

Mac newb here.

Just today I installed macport gimp and I keep getting the 'Not enough memory' message:

Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!
Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!
Not enough memory

I tried the suggested solution:

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

But I still get the error when I start gimp.

I did the launchctl as root first, then rebooted. Then I tried launchctl with my regular user account. That didn't help, and rebooting didn't help.

After I reboot only the dbus-daemon --system --nofork started.

I still have to manually start one of them for some reason as only one starts at boot. This is what I have to start manually:

sudo launchctl load -w /Library/LaunchAgents/org.freedesktop.dbus-session.plist

Any thoughts ?

comment:4 Changed 14 years ago by jmroot (Joshua Root)

Cc: mcalhoun@… added

The dbus-session daemon is per-user and thus should not be started with sudo. The command for starting it is given correctly in the notes for dbus:

port notes dbus

comment:5 Changed 14 years ago by mark.swanson.sw@…

That works for me.

You sir are *awesome*.

Please change to 'closed'.

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

Resolution: worksforme
Status: reopenedclosed
Note: See TracTickets for help on using tickets.