4

When I ssh -X into my Ubuntu 18.04 desktop from my Mac OSX computer, I am able to get in. However, when I try to run firefox or rstudio, I get

libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast

followed by

qt.glx: qglx_findConfig: Failed to finding matching FBConfig (8 8 8 8)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig (1 8 8 8)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig (1 1 8 8)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig (1 1 1 8)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig (1 1 1 8)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig (1 1 1 8)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig (1 1 1 8)
QQuickWidget: Failed to make context current
QQuickWidget::resizeEvent() no OpenGL context
QQuickWidget: Failed to make context current
qt.glx: qglx_findConfig: Failed to finding matching FBConfig (8 8 8 8)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig (1 8 8 8)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig (1 1 8 8)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig (1 1 1 8)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig (1 1 1 8)
QOpenGLShaderProgram: could not create shader program
QOpenGLShader: could not create shader
Could not link shader program:

I know that there are issues with XQuartz in Mac (I am on Catalina), but are these issues on my Ubuntu Desktop or from Mac? I have the Nvidia 430 driver, I installed them again but the above error keeps appearing. Any help is appreciated. Thanks!

user321627
  • 289
  • 2
  • 3
  • 11

1 Answers1

7

I got same error when using gnuplot. The reset of environment variable works for me:

$ export LIBGL_ALWAYS_INDIRECT=1

The solution comes from: https://psycomp.utsc.utoronto.ca/support/index.php/2021/10/14/libgl-error-when-using-ssh-x-forwarding-with-macos/