X Error of failed request: GLXBadContext when running pvpython in a VirtualGL environment
When using pvpython from ParaView-5.4.0-Qt5-OpenGL2-MPI-Linux-64bit, I have an Error when I try to use CreateView.
I use :
vglrun ~/bin/ParaView-5.4.0-Qt5-OpenGL2-MPI-Linux-64bit/bin/pvpython
to launch pvpython inside VirtualGL
Python 2.7.11 (default, Jun 6 2017, 03:39:18)
[GCC 5.3.1 20160406 (Red Hat 5.3.1-6)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from paraview.simple import *
>>> renderView1 = CreateView('RenderView')
But it failed with the following error message :
X Error of failed request: GLXBadContext
Major opcode of failed request: 153 (GLX)
Minor opcode of failed request: 26 (X_GLXMakeContextCurrent)
Serial number of failed request: 60
Current serial number in output stream: 60
I guess that it is related to the fact that pvpython is creating several subprocesses which does not have all the required environment set up and crash. Actually, in the Xorg.0.log, I have the following connection messages :
[2675346.781] AUDIT: Mon Jul 3 15:30:11 2017: 188066: client 9 connected from local host ( uid=1520 gid=500 pid=26275 )
[2675346.782] AUDIT: Mon Jul 3 15:30:11 2017: 188066: client 9 disconnected
[2675346.782] AUDIT: Mon Jul 3 15:30:11 2017: 188066: client 9 connected from local host ( uid=1520 gid=500 pid=26275 )
[2675346.783] AUDIT: Mon Jul 3 15:30:11 2017: 188066: client 10 connected from local host ( uid=1520 gid=500 pid=26275 )
[2675347.317] AUDIT: Mon Jul 3 15:30:11 2017: 188066: client 11 connected from local host ( uid=1520 gid=500 pid=26275 )
[2675347.329] AUDIT: Mon Jul 3 15:30:11 2017: 188066: client 12 connected from local host ( uid=1520 gid=500 pid=26275 )
[2675347.417] AUDIT: Mon Jul 3 15:30:12 2017: 188066: client 9 disconnected
[2675347.417] AUDIT: Mon Jul 3 15:30:12 2017: 188066: client 12 disconnected
[2675347.417] AUDIT: Mon Jul 3 15:30:12 2017: 188066: client 11 disconnected
[2675347.418] AUDIT: Mon Jul 3 15:30:12 2017: 188066: client 10 disconnected
The error does not occur when using the GUI with :
vglrun ~/bin/ParaView-5.4.0-Qt5-OpenGL2-MPI-Linux-64bit/bin/paraview
Paraview Version : 5.4.0
Operating System : Centos 7.3
Virtual GL : 2.5.2
Is there any workaround ?
Edited by Mathieu Westphal (Kitware)