What are "some 3D apps"? Please be specific. Are these commercial applications? Do they all use a particular framework/toolkit like GTK, Qt, JOGL, wxWidgets, etc.? Most likely, the applications in question are "visual hunting", which means they are iterating through available visuals and calling glXGetConfig() on each in an attempt to find a visual with particular OpenGL rendering attributes. When an application does that rather than call glXChooseVisual() or glXGetVisualFromFBConfig() to obtain an OpenGL-compatible visual, VirtualGL has no idea which OpenGL rendering attributes the application wants. All VirtualGL can do in this case is map the unknown visuals to a default GLXFBConfig on the 3D X server. Referring to https://github.com/VirtualGL/virtualgl/issues/96, applications that do this are most commonly looking for either an alpha channel or a stencil buffer, so try setting (in the environment)
VGL_DEFAULTFBCONFIG=GLX_STENCIL_SIZE,8 or VGL_DEFAULTFBCONFIG=GLX_ALPHA_SIZE,8 or VGL_DEFAULTFBCONFIG=GLX_ALPHA_SIZE,8,GLX_STENCIL_SIZE,8 I'm looking into better ways of addressing this problem in the long term, since it seems to be popping up more frequently lately. That's why I'm asking you about toolkits. I'm wondering if some OSS widget toolkit or other graphics framework has started visual hunting for some reason. Minimally, I need to document the scope of the problem and a workaround, so I need to know which applications (or, more generally, which toolkits) are affected. On 3/12/19 8:09 AM, Jason Edgecombe wrote: > Hi everyone, > > I'm having trouble using VirtualGL with an Nvidia Tesla card. When > trying to run some 3D apps, I get the error "Could not obtain RGB visual > on the server suitable for off-screen rendering" > > Here is an example: > ---------------------------------------------------- > % vglrun -d :1 glxinfo | grep OpenGL > OpenGL vendor string: NVIDIA Corporation > OpenGL renderer string: Tesla V100-PCIE-32GB/PCIe/SSE2 > OpenGL core profile version string: 4.6.0 NVIDIA 418.39 > OpenGL core profile shading language version string: 4.60 NVIDIA > OpenGL core profile context flags: (none) > OpenGL core profile profile mask: core profile > OpenGL core profile extensions: > OpenGL version string: 4.6.0 NVIDIA 418.39 > OpenGL shading language version string: 4.60 NVIDIA > OpenGL context flags: (none) > OpenGL profile mask: (none) > OpenGL extensions: > [VGL] ERROR: in glXGetConfig-- > [VGL] 1124: Could not obtain RGB visual on the server suitable for > off-screen rendering > ---------------------------------------------------- > > glxspheres runs as expected without errors. > > Does anyone have any insights into this problem? > > Thanks, > Jason > --------------------------------------------------------------------------- > Jason Edgecombe | Linux Administrator > UNC Charlotte | The William States Lee College of Engineering > 9201 University City Blvd. | Charlotte, NC 28223-0001 > Phone: 704-687-1943 <tel:704-687-1943> > [email protected] <mailto:[email protected]> | http://engr.uncc.edu | > Facebook > --------------------------------------------------------------------------- -- You received this message because you are subscribed to the Google Groups "VirtualGL User Discussion/Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/virtualgl-users/8a0be31c-b377-4131-8735-955c7132e9ab%40virtualgl.org. For more options, visit https://groups.google.com/d/optout.
