libGL error: failed to load drivers: swrast

918 views
Skip to first unread message

Ahmad Barradah

unread,
May 21, 2019, 3:09:23 AM5/21/19
to singularity
I am trying to containerize a java 3D visualization app and run it on host with nvida GPU with the --nv to load the drivers. The problem is that I am seeing an inconsistent behavior when I try to run the application with a remote visualization software (VirtualGL) and most of the times it complains about failing to load the drivers but sometimes it succeeds. It seems that sometimes the libGL used is not the one loaded with nvida as the container also has mesa drivers and packages installed and I am not sure if this would create a conflict. Here is some information about my environment:

singularity version: 3.2.0
container OS: Centos 7.4
Host OS: Red Hat 7.4
Nvidia drivers: 390.46

the errors I am getting are:

libGL: screen 0 does not appear to be DRI2 capable

libGL: OpenDriver: trying /usr/lib64/dri/tls/swrast_dri.so

libGL: OpenDriver: trying /usr/lib64/dri/swrast_dri.so

libGL: Can't open configuration file /root/.drirc: No such file or directory.

libGL: Can't open configuration file /root/.drirc: No such file or directory.

libGL error: No matching fbConfigs or visuals found

libGL error: failed to load driver: swrast

libGL: screen 1 does not appear to be DRI2 capable

libGL: OpenDriver: trying /usr/lib64/dri/tls/swrast_dri.so

libGL: OpenDriver: trying /usr/lib64/dri/swrast_dri.so

libGL: Can't open configuration file /root/.drirc: No such file or directory.

libGL: Can't open configuration file /root/.drirc: No such file or directory.

libGL error: No matching fbConfigs or visuals found

libGL error: failed to load driver: swrast

libGL: screen 2 does not appear to be DRI2 capable

libGL: OpenDriver: trying /usr/lib64/dri/tls/swrast_dri.so

libGL: OpenDriver: trying /usr/lib64/dri/swrast_dri.so

libGL: Can't open configuration file /root/.drirc: No such file or directory.

libGL: Can't open configuration file /root/.drirc: No such file or directory.

libGL error: No matching fbConfigs or visuals found

libGL error: failed to load driver: swrast

libGL: screen 3 does not appear to be DRI2 capable

libGL: OpenDriver: trying /usr/lib64/dri/tls/swrast_dri.so

libGL: OpenDriver: trying /usr/lib64/dri/swrast_dri.so

libGL: Can't open configuration file /root/.drirc: No such file or directory.

libGL: Can't open configuration file /root/.drirc: No such file or directory.

libGL error: No matching fbConfigs or visuals found

libGL error: failed to load driver: swrast


your help is appreciated.

John Hearns

unread,
May 21, 2019, 4:41:39 AM5/21/19
to singu...@lbl.gov
If I remember correctly, for a long time ago, VirtualGL works by substituting a different version of libGL which has the compression features.

My advice would be to use    ltrace (library trace). So:

ltrace <our application>



--
You received this message because you are subscribed to the Google Groups "singularity" group.
To unsubscribe from this group and stop receiving emails from it, send an email to singularity...@lbl.gov.
To view this discussion on the web visit https://groups.google.com/a/lbl.gov/d/msgid/singularity/176aff0c-ad7e-46ab-842d-4615b48ba16a%40lbl.gov.

Ahmad Barradah

unread,
May 21, 2019, 6:55:11 AM5/21/19
to singularity
Thank you John for your response

I was not able to launch the application with ltrace but when I run ldconfig -p |grep -i gl.so from within the container I get the following:

libGL.so.1 (libc6.x86-64) => /lib64/libGL.so.1

I am not sure I understand how --nv works but shouldn't libGL.so.1 be linked to something like /.singularity.d/libs/libGL.so.1 when you use --nv
To unsubscribe from this group and stop receiving emails from it, send an email to singu...@lbl.gov.
Reply all
Reply to author
Forward
0 new messages