Vedo: Using vedo without X server?

Created on 19 Dec 2019  路  3Comments  路  Source: marcomusy/vedo

I have been using vtkplotter with success on my local machine, but for a larger project I want to move my code to a server. Problem is, I get the following error:

ERROR: In /work/standalone-x64-build/VTK-source/Rendering/OpenGL2/vtkXOpenGLRenderWindow.cxx, line 1223
vtkXOpenGLRenderWindow (0x4fc59e0): bad X server connection. DISPLAY=Aborted (core dumped)

I use the option offscreen=True and save screenshots of my renderings, but still it does not work. Do you have any idea if this could work in some way without an X server?

Most helpful comment

@MarkusRosen ,
the following works for me:

https://github.com/marcomusy/vtkplotter/issues/64#issuecomment-559979201

that is with the vtk version from conda (8.2.0)

All 3 comments

Hi @MarkusRosen this seems a general limitation of VTK which needs to be build with osmesa support, see here.

You can still use all vtkplotter classes to do your analysis and then only save some individual output meshes or volumes to file.

I'm doing some tests now to see if it's doable to export a whole scene in either npy obj or x3d formats to be later visualized..

@MarkusRosen ,
the following works for me:

https://github.com/marcomusy/vtkplotter/issues/64#issuecomment-559979201

that is with the vtk version from conda (8.2.0)

Thank you very much for your quick help! I wasn't able to find this comment. Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DeepaMahm picture DeepaMahm  路  5Comments

Jesse0818 picture Jesse0818  路  4Comments

bhaveshshrimali picture bhaveshshrimali  路  6Comments

Yoorthiziri picture Yoorthiziri  路  7Comments

vianamp picture vianamp  路  3Comments