XavierNX / OpenGL / GLFW failing to create GLX context from python (though it works from c++)

I am getting different behavior from GLFW/GLX when run from c++ vs python
GLX context creation working normally when called directly from c++
GLX context creation fails when the same GLFW/GLX c/c++ code invoked from python wrapper script
I instrumented GLFW’s chooseGLXFBConfig and x11 _glfwPlatformInit for more information.

The first difference occurs at GLFW’s GLX_VENDOR client query call.
glXGetClientString(_glfw.x11.display, GLX_VENDOR); // glx_context.c : chooseGLXFBConfig()

In the case when invoked directly from c++ the GLX_VENDOR query returns “NVIDIA Corporation”
In the case when invoked from a python script → then c++ the GLX_VENDOR query returns nullptr

both cases are invoked from the same exact shell with all the same environment variables.
$DISPLAY is validated as the same as per the debug log below.

What gives ?

debug output below…

Thanks.

//////////////////////////////
// output of glxinfo from shell
//////////////////////////////

name of display: :0.0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: NVIDIA Corporation
server glx version string: 1.4

//////////////////////////////
// output of successful c++ run (with logging output added to GLFW)
//////////////////////////////

GLFW display<:0.0>
GLFW display<0x24dc7370>
GLFW X11 screen<0>
GLFW X11 root<358>
GLFW X11 context<-1>
GLFW X11 ok
primary_monitor<0x24de6e40>
mode<0x24de6ee4>
mode redbits<8>
mode grnbits<8>
mode blubits<8>
mode refreshRate<60>
GLFW X11 display<0x24dc7370>
GLFW desired<0x7fff5efcd8>
GLFW GLX major<1>
GLFW GLX minor<4>
GLFW GLX client vendor: NVIDIA Corporation
GLFW GLX nativeConfigs: 0x24e9dc00
offscreen_window<0x24de5f80>

//////////////////////////////
// output of failed python run (with logging output added to GLFW)
//////////////////////////////

GLFW display<:0.0>
GLFW display<0x55e8c74570>
GLFW X11 screen<0>
GLFW X11 root<358>
GLFW X11 context<-1>
GLFW X11 ok
primary_monitor<0x55e8c93ca0>
mode<0x55e8c93d44>
mode redbits<8>
mode grnbits<8>
mode blubits<8>
mode refreshRate<60>
GLFW X11 display<0x55e8c74570>
GLFW desired<0x7fc07e7cb8>
GLFW GLX major<1>
GLFW GLX minor<4>
GLFW GLX client vendor: (null)
GLFW GLX nativeConfigs: (nil)
GLFW ERROR<65542:GLX: No GLXFBConfigs returned>
GLFW ERROR<65545:GLX: Failed to find a suitable GLXFBConfig>

There is no update from you for a period, assuming this is not an issue any more.
Hence we are closing this topic. If need further support, please open a new one.
Thanks

Hi,
We would need to reproduce it and do investigation. Please share your release version( $ head -1 /nv_tegra_release ), and test apps, steps so that we can do replication.