Hello, I’m trying to visualizing vtk file in linux server for automation.
So, I got python script from paraview in window version ‘Tools - Start trace’.
I’m doing quite simple job. ‘Contour’, change ‘Coloring’ as a solid color and 'Save screenshot
The traced python script works at my window and mac computer (pvpython *.py), but returns a segmentation fault at Linux server.
Long story short, ParaView depend on OpenGL and we depend on X, EGL or OSMesa to provide us the graphic context.
The default paraview (Qt) assume X (for linux). But in your case, X is not started or at least you don’t have a DISPLAY defined in your SSH terminal. So at that point, when pvpython try to create the graphic window (offscreen) it fails since X is not around.
I’m not 100% sure, but I think we bundle mesa in our graphic version. So you might be able use your default paraview by just adding --mesa as argument when running headless script.