Glxgears does not work on remote SSH session, but it works with MESA

Hello,

I have an nvidia RTX 6000 ADA working on a RHEL 8.8 server. I connect to it from an Oracle Linux 8.8 workstation, and when I try to open glxgears or glxinfo, I get the following error

X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 152 (GLX)
Minor opcode of failed request: 24 (X_GLXCreateNewContext)
Value in failed request: 0x0
Serial number of failed request: 66
Current serial number in output stream: 67

When I connect with Nomachine, glxgears and glxinfo work well; no such errors appear. The glxinfo reports
OpenGL version string: 4.5 (Compatibility Profile) Mesa 22.3.0

When I run glxgears preloading another GLX set of libraries from Mathworks the errors do not appear (LD_LIBRARY_PATH=“/usr/local/MATLAB/R2022b/sys/opengl/lib/glnxa64/” glxgears ; In /usr/local/MATLAB/R2022b/sys/opengl/lib/glnxa64/ I have libGL.so and libGLU.so
the glxinfo with this set of libraries is
server glx version string: 1.4 Mesa 17.1.3
client glx version string: 1.4 Mesa 17.1.3
GLX version: 1.4
OpenGL version string: 2.1 Mesa 17.1.3
OpenGL shading language version string: 1.20
).

It seems it is an error related to the set of GL libraries loaded by the Nvidia driver. Anyway to solve it?

nvidia-bug-report.log (2.6 MB)

I don’t think you really want what you’re trying to do. You’re using indirect GLX, which is outdated, the opengl level very limited, rendering is happening on your client which needs to have indirect glx enabled.

According to my Xorg.log, IndirectGLX is disabled

[ 15.975] (II) Indirect GLX disabled.