RC1 5.0 fails running normal, new, powerful Mesa
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
I have a remote build of PV 5.5.0, RC1. When I run ParaView, I get the following in the output window:
Warning: In /projects/viz/paraview/src/ParaView/5.0.0-junk/ParaView4/VTK/Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx, line 549 vtkOSOpenGLRenderWindow (0x1451d00): VTK is designed to work with OpenGL version 3.2 but it appears it has been given a context that does not support 3.2. VTK will run in a compatibility mode designed to work with OpenGL 2.1 but some features may not work.
I then try to open a cylinder, and get the following on the client side:
ERROR: In /projects/viz/paraview/src/ParaView/5.0.0-junk/ParaView4/VTK/Rendering/OpenGL2/vtkShaderProgram.cxx, line 370 vtkShaderProgram (0x4005bd0): 0:2(12): error: extension `GL_EXT_gpu_shader4' unsupported in fragment shader
ERROR: In /projects/viz/paraview/src/ParaView/5.0.0-junk/ParaView4/VTK/Common/Core/vtkDataArrayTemplate.txx, line 142 vtkUnsignedCharArray (0x62558d0): Unable to allocate 3757531591590 elements of size 1 bytes.
Server side looks like this:
Connecting to client (reverse connection requested)... Connection URL: csrc://ceerws2213:11111 Client connected. GL_Version: 3.0 Mesa 11.0.4 GL_Version: 3.0 Mesa 11.0.4 GL_Version: 3.0 Mesa 11.0.4 GL_Version: 3.0 Mesa 11.0.4 GL_Version: 3.0 Mesa 11.0.4 GL_Version: 3.0 Mesa 11.0.4 GL_Version: 3.0 Mesa 11.0.4 GL_Version: 3.0 Mesa 11.0.4
and Warning: In /projects/viz/paraview/src/ParaView/5.0.0-junk/ParaView4/VTK/Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx, line 549 vtkOSOpenGLRenderWindow (0xb26ba0): VTK is designed to work with OpenGL version 3.2 but it appears it has been given a context that does not support 3.2. VTK will run in a compatibility mode designed to work with OpenGL 2.1 but some features may not work.
ERROR: In /projects/viz/paraview/src/ParaView/5.0.0-junk/ParaView4/VTK/Rendering/OpenGL2/vtkShaderProgram.cxx, line 370 vtkShaderProgram (0x4005bd0): 0:2(12): error: extension `GL_EXT_gpu_shader4' unsupported in fragment shader
However!!!!!!!!!!!!
Mesa 11.0.4 is OpenGL 4.1 compliant!
So, what's going on?
Due to stupid stuff in Mesa (internet search says something about patents), Mesa 11.0.4 implements OpenGL 4.1, but a glGetString(GL_VERSION) returns that it is only OGL 3.0 compliant.
Hack to get around it: set MESA_GL_VERSION_OVERRIDE=3.2
But, we must have ParaView work as follows:
- Work with new Mesa, without having to set an environment variable.
- Work with older versions of Mesa (at least for a while), and never, never crash.