[vtkusers] Off screen rendering

Oscar Esteban oesteban at die.upm.es
Fri Nov 21 04:06:26 EST 2014


Thanks a lot :)

I will try both solutions, Vincent's first as it is easier :D.

Then, I'll recompile OSMesa because I'm using ubuntu's and debian's stable
ones, and look like they are still in 6.5.3.

Thank you so much.

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

On 20 November 2014 14:59, Vincent SALEH <vincent.saleh at magellium.fr> wrote:

> Hi Oscar,
>
> I am no expert  but I would advise you to use
> renderWindow->OffScreenRenderingOn(); instead of  renderWindow->
> SetOffScreenRendering(1); with vtk-6.1.0.
>
> That worked fine for me.
>
> Good luck!
>
>
>
> Vincent
>
>
>
> *De :* vtkusers [mailto:vtkusers-bounces at vtk.org] *De la part de*
> Sebastien Jourdain
> *Envoyé :* jeudi 20 novembre 2014 14:33
> *À :* Oscar Esteban
> *Cc :* vtkusers
> *Objet :* Re: [vtkusers] Off screen rendering
>
>
>
> Which version of OSMesa did you point to?
>
>
>
> That's not exactly the same project described here but it should be almost
> the same CMake properties.
>
>
>
>
> http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/index.html#!/guide/os_mesa
>
>
>
> Seb
>
>
>
> On Thu, Nov 20, 2014 at 6:12 AM, Oscar Esteban <oesteban at die.upm.es>
> wrote:
>
> 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
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20141121/d9007700/attachment.html>


More information about the vtkusers mailing list