OpenGL/GLX applications inside a singularity container

361 views
Skip to first unread message

Wojciech Tadeusz Fedorko

unread,
May 27, 2019, 6:45:26 PM5/27/19
to singularity
Hello,

I am trying to run an application inside a ubuntu 16.04 container (based on NGC pytorch 19.04 docker container) that uses glx visualizations and I'm running into some troubles.
'Ususal' x11 apps (e.g. xclock) run fine.

The application uses Qt and the container has Qt 5.12.3 installed from source.

The application fails with messages like this:
qt.glx: qglx_findConfig: Failed to finding matching FBConfig (8 8 8 0)
...
No XVisualInfo for format QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 0, redBufferSize 1, greenBufferSize 1, blueBufferSize 1, alphaBufferSize -1, stencilBufferSize 0, samples -1, swapBehavior QSurfaceFormat::SingleBuffer, swapInterval -1, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::NoProfile)

- this seems to hint that qt has trouble finding the GLX configuration
running glxinfo and glxgears seems to confirm the problem:
$glxinfo                                                                                                              
name of display
: localhost:10.0
Error: couldn't find RGB GLX visual or fbconfig    

$
glxgears                                                                                                             Error: couldn't get an RGB, Double-buffered visual    

I am connecting to a remote system where the container is run with ssh with X forwarding and I can run glxinfo and glxgears 'outside' the container on the host system.

I would appreciate any help with this,
Thanks!
Wojtek


Reply all
Reply to author
Forward
0 new messages