ParaView-5.5.2 offscreen rendering mesa
Hi,
I facesed troubles with off screen rendering when paraview is compiled by using mesa. I tested pvbatch with "--force-offscreen-rendering" option multiple python scripts which works when paraview use normal GL libraries. My mesa libraries version is mesa-libOSMesa-17.2.3-8 from Centos7 package manager.
Used cmake options:
VTK_USE_X=OFF
VTK_DEFAULT_RENDER_WINDOW_OFFSCREEN=ON
PARAVIEW_BUILD_QT_GUI=OFF
OSMESA_INCLUDE_DIR=/usr/include/GL
OPENGL_glu_LIBRARY=/usr/lib64/libGLU.so
OSMESA_LIBRARY=/usr/lib64/libOSMesa.so
Simplest python script what I tested is:
from paraview.simple import *
cone = Cone(Resolution=32)
cone.Center = [1, 2, 3]
shrinkFilter = Shrink(cone)
shrinkFilter.UpdatePipeline()
Show(shrinkFilter)
print "pass show"
Render()
print "pass render"
WriteImage('test.png')
print "pass write"
And output is:
$ pvbatch --force-offscreen-rendering offScreenTest.py
pass show
Segmentation fault (core dumped)
In all cases it crash when it try render or take a screenshot
Any ideas?