10

I am trying to run an executable on a remote server, to which I connect via ssh -Y. I think the executable uses openGL

The server runs Ubuntu and the local system runs OSX.

ssh -Y normally opens a display on my local machine by X11. This works well with other applications (firefox, matlab etc..)

This time I get the message:

libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error of failed request:  GLXBadContext
  Major opcode of failed request:  149 (GLX)
  Minor opcode of failed request:  6 (X_GLXIsDirect)
  Serial number of failed request:  35
  Current serial number in output stream:  34
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  149 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  34
  Current serial number in output stream:  35

I also ran glxinfo (I was trying things I found on forums) and got this

name of display: localhost:11.0
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error of failed request:  GLXBadContext
  Major opcode of failed request:  149 (GLX)
  Minor opcode of failed request:  6 (X_GLXIsDirect)
  Serial number of failed request:  23
  Current serial number in output stream:  22

Could someone help with this?

Thank you!

  • What’s your local machine running? – Stephen Kitt Mar 12 '18 at 15:35
  • 2
    Are you using XQuartz? – Stephen Kitt Mar 12 '18 at 15:42
  • 14
    Try the following: 1) ensure you are running up-to-date Xquartz. 2) in a terminal, defaults write org.macosforge.xquartz.X11 enable_iglx -bool true 3) restart xquartz. This worked for me to get a simple java app running. I tried "glxgears" and it starts, but the gears don't turn. I presume they're supposed to. – Dan Pritts Jul 5 '18 at 5:24
  • 2
    I also get the glxgears displaying the wheels, but they do not move. – rdbisme Aug 9 '19 at 14:50
  • 1
    I installed xorg-server via MacPorts and had to write defaults write org.macports.X11 enable_iglx -bool true based on the default preference domain listed by quartz-wm --help. Running glxgears on the remote machine pops up the gears and libGL error messages (No matching fbConfigs or visuals found and failed to load driver: swrast) along with FPS counts. – Andreas Yankopolus Mar 16 '20 at 23:12
1

I got this sorta working on Mac OS Mojave with using defaults; write org.macports.X11 enable_iglx -bool true in a terminal app, then run Xquartz +extension GLX` in the same terminal.

Then I am able to run glxgears and get rastering working, but it throws the display into the top left corner of my external monitor (instead of default/retina display) and doesn't draw any frames to resize/move it.

It kinda reminds me of crappy driver support I had with Nvidia graphics cards and trying to run a Linux desktop in 1990's :)

I looked up on freedesktop.org bug repo and it doesn't appear Retina displays are supported by Xquartz/X11 yet. There is a few hacks, but this reminds me of how clunky it was to run Wireshark a few years back inside XQuartz on my Mac. I just want to get X11 forwarding working right, where it doesn't take ~3 to 5 minutes to redraw frames. See https://gitlab.freedesktop.org/xorg/xserver/-/issues/187

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.