I managed to build nVidia’s OpenGL sample code gl_cadscene_rendertechniques
in nvpro. However, when I run the generated executable gl_cadscene_rendertechniques.exe
, I got an error:
GLX: Failed to create context: GLXBadFBConfig
Could not create window
If I set LIBGL_DEBUG=verbose
and LIBGL_ALWAYS_INDIRECT=0
, more error messages can be displayed:
libGL: MESA-LOADER: dlopen(/usr/lib/x86_64-linux-gnu/dri/swrast_dri.so)
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file $HOME/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file $HOME/.drirc: No such file or directory.
GLX: Failed to create context: GLXBadFBConfig
Could not create window
To troubleshoot, I built glfw
shipped with nvpro (in nvpro-samples/nvpro_core/third_party/glfw
). On the Ubuntu client, all OpenGL sample and test codes work as expected. On Windows client, windows
works (surprisingly), Some (like triangle-opengl
) reports the same error, some (like boing
) errors:
X Error of failed request: BadRequest (invalid request code or no such operation)
Major opcode of failed request: 149 (GLX)
Minor opcode of failed request: 16 (X_GLXVendorPrivate)
Serial number of failed request: 146
Current serial number in output stream: 148
Of course, nVidia’s sample code has no problem. So, it must be the fault of the system where I compile and run these samples. But what’s the problem? How can I fix it to run gl_cadscene_rendertechniques.exe
?
My environment:
Remote side:
- Ubuntu 20.04
- GPU: GeForce RTX 3090, Driver Version: 460.32.03
- GLX server version is 1.2 if using Xming, 1.4 for all other cases
- ssh and X server are both on.
Client side 1:
- Ubuntu 20.04
- Software renderer: 3.1 Mesa 20.3.2 which supports OpenGL 4.5
- Connect using
ssh -X
Client side 2:
- Windows 10,
- GPU: Quadro K5200, driver version 472.12
- X server: Xming 6.9.0.24 or VcXdrv X Server 1.20.9.0
- Connect using Bitvise SSH Client 8.49 with
xterm
terminal and X11 Forwarding enabled