New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #20645 (closed defect: worksforme)

Opened 4 years ago

Last modified 2 years ago

[gimp] [2.6.6] dbus problem starting gimp

Reported by: mwathelet@… Owned by: devans@…
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: gimp Cc: mcalhoun@…
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

comment:1 Changed 4 years ago by jmr@…

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

comment:2 Changed 4 years ago by devans@…

  • Keywords gimp added
  • Status changed from new to closed
  • Resolution set to worksforme
  • Port changed from gimp to dbus
  • Summary changed from [gimp] [2.6.6] [extension "RANDR" missing on display ... Not enough memory] to [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 3 years ago by mark.swanson.sw@…

  • Status changed from closed to reopened
  • Resolution worksforme deleted

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 3 years ago by jmr@…

  • 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 2 years ago by mark.swanson.sw@…

That works for me.

You sir are *awesome*.

Please change to 'closed'.

comment:6 Changed 2 years ago by macsforever2000@…

  • Status changed from reopened to closed
  • Resolution set to worksforme
Note: See TracTickets for help on using tickets.