[vtkusers] Off screen rendering
Oscar Esteban
oesteban at die.upm.es
Thu Nov 20 07:12:42 EST 2014
Dear experts,
I'm trying to write png files slicing a 3D volume through its coordinates
planes, with the contours corresponding to the intersection of the plane
and a number of surfaces (triangularized meshes). I need to run the code in
a headless debian server. The code I'm trying is here:
https://gist.github.com/oesteban/f22e155146ce6738b431
I have tried with no success with vtk-5.10.1 and vtk-6.1.0. I've tested on
5.10.1 with this example:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/OffScreenRendering, and
6.1.0 with https://gist.github.com/certik/5687727.
Successful compilation of both versions included:
VTK_OPENGL_HAS_OSMESA=ON
VTK_USE_X=OFF
VTK_USE_TK=OFF
VTK_USE_OFFSCREEN=ON
Program received signal SIGSEGV, Segmentation fault.
__rawmemchr_sse2 () at ../sysdeps/x86_64/multiarch/../rawmemchr.S:31
31 ../sysdeps/x86_64/multiarch/../rawmemchr.S: No such file or
directory.
(gdb) bt
#0 __rawmemchr_sse2 () at ../sysdeps/x86_64/multiarch/../rawmemchr.S:31
#1 0x00007ffff45fe150 in _IO_str_init_static_internal (sf=0x7fffffffc380,
ptr=0x0, size=0, pstart=0x0) at strops.c:45
#2 0x00007ffff45f2875 in _IO_vsscanf (string=0x0, format=0x142d1c3
"%d.%d", args=0x7fffffffc4a0) at iovsscanf.c:44
#3 0x00007ffff45dea38 in __sscanf (s=0x0, format=0xffffffff <Address
0xffffffff out of bounds>) at sscanf.c:34
#4 0x0000000000c5b549 in vtkOpenGLExtensionManager::ReadOpenGLExtensions()
()
#5 0x0000000000c5ac80 in vtkOpenGLExtensionManager::Update() ()
#6 0x0000000000c5a957 in
vtkOpenGLExtensionManager::ExtensionSupported(char const*) ()
#7 0x0000000000bf131a in vtkOpenGLRenderWindow::OpenGLInitContext() ()
#8 0x0000000000bef19d in vtkOpenGLRenderWindow::OpenGLInit() ()
#9 0x0000000000bb566d in vtkOSOpenGLRenderWindow::Start() ()
#10 0x0000000000b2e900 in vtkRenderWindow::DoStereoRender() ()
#11 0x0000000000b2fc7d in vtkRenderWindow::DoFDRender() ()
#12 0x0000000000b30515 in vtkRenderWindow::DoAARender() ()
#13 0x0000000000b2eceb in vtkRenderWindow::Render() ()
#14 0x0000000000b399c5 in
vtkWindowToImageFilter::RequestData(vtkInformation*,
vtkInformationVector**, vtkInformationVector*) ()
#15 0x0000000000b39cc1 in
vtkWindowToImageFilter::ProcessRequest(vtkInformation*,
vtkInformationVector**, vtkInformationVector*) ()
#16 0x0000000000920204 in vtkExecutive::CallAlgorithm(vtkInformation*, int,
vtkInformationVector**, vtkInformationVector*) ()
#17 0x000000000091cd1c in
vtkDemandDrivenPipeline::ExecuteData(vtkInformation*,
vtkInformationVector**, vtkInformationVector*) ()
#18 0x000000000091bbe1 in
vtkCompositeDataPipeline::ExecuteData(vtkInformation*,
vtkInformationVector**, vtkInformationVector*) ()
#19 0x000000000091f4a1 in
vtkDemandDrivenPipeline::ProcessRequest(vtkInformation*,
vtkInformationVector**, vtkInformationVector*) ()
#20 0x0000000000927c61 in
vtkStreamingDemandDrivenPipeline::ProcessRequest(vtkInformation*,
vtkInformationVector**, vtkInformationVector*) ()
#21 0x000000000091dc87 in vtkDemandDrivenPipeline::UpdateData(int) ()
#22 0x0000000000929401 in vtkStreamingDemandDrivenPipeline::Update(int) ()
#23 0x000000000070752d in main ()
The same segfault is reported here:
http://public.kitware.com/pipermail/vtkusers/2013-April/079007.html,
however the solution they linked is not available anymore. Threads in the
list around the pointed dates are:
http://vtk.1045678.n5.nabble.com/VTK-offscreen-rendering-td4548419.html#a4856413
and http://www.vtk.org/pipermail/vtkusers/2011-July/068951.html.
I did not try the patch in the last link, I would prefer not to modify VTK
source.
Thanks a lot. Best wishes,
Oscar
*______________________________________*
*Oscar Esteban*
PhD Student / Researcher
Biomedical Image Technologies (BIT), UPM
ETSI Telecomunicación Lab. C203, Av. Complutense s/n - E-28040 Madrid
(Spain)
+34 915 495 700 ext.4234
Signal Processing Laboratory (LTS5), EPFL-STI-IEL-LTS5
ELD 224 (Bâtiment ELD), Station 11, CH-1015 Lausanne, Switzerland
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20141120/b066766b/attachment.html>
More information about the vtkusers
mailing list