[prev in list] [next in list] [prev in thread] [next in thread] 

List:       paraview
Subject:    Re: [Paraview] [Catalyst] segfault during destructor vtkCPProcessor -->vtkPVRenderWindow
From:       Andy Bauer <andy.bauer () kitware ! com>
Date:       2015-08-21 15:38:20
Message-ID: CAMaOp+GDozMgVKSM99u1_DVkYDGMLr8k4tj6dACR+ZORG7wB2A () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


My guess would be that it's a memory issue. Can you try running with a
memory checker? I've used valgrind in the past for stuff like this.

On Tue, Aug 18, 2015 at 2:28 AM, Deij-van Rijswijk, Menno <M.Deij@marin.nl>
wrote:

> Hi,
>
> I have a headless ParaView build of the HEAD origin/master (commit number
> 1018) with libOSMesa 10.6.3 as offscreen renderer, to support a Catalyst
> workflow. Everything works fine, except that the process of MPI-rank 0 will
> give a segfault when a render window has been used in the catalyst pipeline
> (this happens also when not running with mpiexec/mpirun).
>
> I'm not familiar enough with VTK/PV or gdb to try to solve this on my own,
> so I post the gdb backtrace here in case someone has an idea what is going
> on. Any clues on how to fix this are welcome :-) Let me know if you need
> more information.
>
> Best wishes,
>
>
> Menno Deij - van Rijswijk
>
>
>
> #0  0x00002aaac65a0137 in glIsTextureEXT () from
> /home/mdeij/Programs/lib/libOSMesa.so.8
> #1  0x00002aaac4252def in vtkOpenGLTexture::ReleaseGraphicsResources
> (this=0x2, win=0x0)
>     at
> /home/mdeij/src/ParaView/VTK/Rendering/OpenGL/vtkOpenGLTexture.cxx:80
> #2  0x00002aaac01ef377 in vtkPVScalarBarActor::ReleaseGraphicsResources
> (this=0x2, window=0x0)
>     at
> /home/mdeij/src/ParaView/ParaViewCore/VTKExtensions/Rendering/vtkPVScalarBarActor.cxx:176
> #3  0x00002aaac4bc0584 in
> vtkScalarBarRepresentation::ReleaseGraphicsResources (this=0x2, w=0x0)
>     at
> /home/mdeij/src/ParaView/VTK/Interaction/Widgets/vtkScalarBarRepresentation.cxx:227
> #4  0x00002aaaaf6f1522 in vtkRenderer::SetRenderWindow (this=0x2,
> renwin=0x0)
>     at /home/mdeij/src/ParaView/VTK/Rendering/Core/vtkRenderer.cxx:1211
> #5  0x00002aaaaf6f4f65 in vtkRenderWindow::RemoveRenderer (this=0x2,
> ren=0x0)
>     at /home/mdeij/src/ParaView/VTK/Rendering/Core/vtkRenderWindow.cxx:831
> #6  0x00002aaabe043c85 in vtkPVRenderView::~vtkPVRenderView
> (this=0x68f1de0)
>     at
> /home/mdeij/src/ParaView/ParaViewCore/ClientServerCore/Rendering/vtkPVRenderView.cxx:426
> #7  0x00002aaabe043c3a in vtkPVRenderView::~vtkPVRenderView (this=0x2)
>     at
> /home/mdeij/src/ParaView/ParaViewCore/ClientServerCore/Rendering/vtkPVRenderView.cxx:567
> #8  0x00002aaab4a9c446 in vtkSmartPointerBase::operator= (this=0x2, r=0x0)
>     at /home/mdeij/src/ParaView/VTK/Common/Core/vtkSmartPointerBase.cxx:75
> #9  0x00002aaaaebdded3 in vtkSIProxy::~vtkSIProxy (this=0x68f1a00)
>     at
> /home/mdeij/src/ParaView/ParaViewCore/ServerImplementation/Core/vtkSIProxy.cxx:93
> #10 0x00002aaaaebdde9a in vtkSIProxy::~vtkSIProxy (this=0x2)
>    from
> /home/mdeij/src/build_ParaView/lib/libvtkPVServerImplementationCore-pv4.3.so.1
> #11 0x00002aaaaebbe523 in ~vtkInternals (this=<optimized out>,
> $30=<optimized out>)
>     at
> /home/mdeij/src/ParaView/ParaViewCore/ServerImplementation/Core/vtkPVSessionCore.cxx:125
> #12 vtkPVSessionCore::~vtkPVSessionCore (this=0x39fd830)
>     at
> /home/mdeij/src/ParaView/ParaViewCore/ServerImplementation/Core/vtkPVSessionCore.cxx:351
> #13 0x00002aaaaebbe3aa in vtkPVSessionCore::~vtkPVSessionCore (this=0x2)
>    from
> /home/mdeij/src/build_ParaView/lib/libvtkPVServerImplementationCore-pv4.3.so.1
> #14 0x00002aaaaebbb867 in vtkPVSessionBase::~vtkPVSessionBase
> (this=0x39fdc80)
>     at
> /home/mdeij/src/ParaView/ParaViewCore/ServerImplementation/Core/vtkPVSessionBase.cxx:86
> #15 0x00002aaaae8b873a in vtkSMSession::~vtkSMSession (this=0x2)
>    from
> /home/mdeij/src/build_ParaView/lib/libvtkPVServerManagerCore-pv4.3.so.1
> #16 0x00002aaaaee83d01 in ~vtkSmartPointer (this=<optimized out>,
> $3=<optimized out>)
>     at /home/mdeij/src/ParaView/VTK/Common/Core/vtkSmartPointer.h:26
> #17 ~pair (this=<optimized out>, $2=<optimized out>) at
> /usr/include/c++/4.4.7/bits/stl_pair.h:67
> #18 destroy (this=<optimized out>, __p=<optimized out>, $0=<optimized
> out>, $1=<optimized out>)
>     at /usr/include/c++/4.4.7/ext/new_allocator.h:115
> #19 _M_destroy_node (this=<optimized out>, __p=<optimized out>,
> $8=<optimized out>, $9=<optimized out>)
>     at /usr/include/c++/4.4.7/bits/stl_tree.h:383
> #20 _M_erase (this=<optimized out>, __x=<optimized out>, $5=<optimized
> out>, $6=<optimized out>)
>     at /usr/include/c++/4.4.7/bits/stl_tree.h:972
> #21 clear (this=0x0, $3=<optimized out>) at
> /usr/include/c++/4.4.7/bits/stl_tree.h:726
> #22 clear (this=<optimized out>, $2=<optimized out>) at
> /usr/include/c++/4.4.7/bits/stl_map.h:626
> #23 vtkProcessModule::Finalize () at
> /home/mdeij/src/ParaView/ParaViewCore/ClientServerCore/Core/vtkProcessModule.cxx:290
> #24 0x00002aaaad674142 in vtkInitializationHelper::Finalize ()
>     at
> /home/mdeij/src/ParaView/ParaViewCore/ServerManager/SMApplication/vtkInitializationHelper.cxx:279
> #25 0x00002aaaad242e48 in vtkCPCxxHelper::~vtkCPCxxHelper (this=0x2840fe0)
>     at /home/mdeij/src/ParaView/CoProcessing/Catalyst/vtkCPCxxHelper.cxx:58
> #26 0x00002aaaad242dfa in vtkCPCxxHelper::~vtkCPCxxHelper (this=0x2)
>     at
> /home/mdeij/src/ParaView/CoProcessing/Catalyst/vtkCPCxxHelper.cxx:124
> #27 0x00002aaaad246ad2 in vtkCPProcessor::~vtkCPProcessor (this=0x3a0cbd0)
>     at /home/mdeij/src/ParaView/CoProcessing/Catalyst/vtkCPProcessor.cxx:66
> #28 0x00002aaaad246a4a in vtkCPProcessor::~vtkCPProcessor (this=0x2)
>     at
> /home/mdeij/src/ParaView/CoProcessing/Catalyst/vtkCPProcessor.cxx:278
>
>
> dr. ir. Menno A. Deij-van Rijswijk
> Researcher / Software Engineer
> Maritime Simulation & Software Group
> E mailto:M.Deij@marin.nl
> T +31 317 49 35 06
>
>
> MARIN
> 2, Haagsteeg, P.O. Box 28, 6700 AA Wageningen, The Netherlands
> T +31 317 49 39 11, F +31 317 49 32 45, I www.marin.nl
>
> _______________________________________________
> 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 ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>

[Attachment #5 (text/html)]

<div dir="ltr">My guess would be that it&#39;s a memory issue. Can you try running \
with a memory checker? I&#39;ve used valgrind in the past for stuff like \
this.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 18, \
2015 at 2:28 AM, Deij-van Rijswijk, Menno <span dir="ltr">&lt;<a \
href="mailto:M.Deij@marin.nl" target="_blank">M.Deij@marin.nl</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex">Hi,<br> <br>
I have a headless ParaView build of the HEAD origin/master (commit number 1018) with \
libOSMesa 10.6.3 as offscreen renderer, to support a Catalyst workflow. Everything \
works fine, except that the process of MPI-rank 0 will give a segfault when a render \
window has been used in the catalyst pipeline (this happens also when not running \
with mpiexec/mpirun).<br> <br>
I&#39;m not familiar enough with VTK/PV or gdb to try to solve this on my own, so I \
post the gdb backtrace here in case someone has an idea what is going on. Any clues \
on how to fix this are welcome :-) Let me know if you need more information.<br> <br>
Best wishes,<br>
<br>
<br>
Menno Deij - van Rijswijk<br>
<br>
<br>
<br>
#0   0x00002aaac65a0137 in glIsTextureEXT () from \
/home/mdeij/Programs/lib/libOSMesa.so.8<br> #1   0x00002aaac4252def in \
                vtkOpenGLTexture::ReleaseGraphicsResources (this=0x2, win=0x0)<br>
      at /home/mdeij/src/ParaView/VTK/Rendering/OpenGL/vtkOpenGLTexture.cxx:80<br>
#2   0x00002aaac01ef377 in vtkPVScalarBarActor::ReleaseGraphicsResources (this=0x2, \
                window=0x0)<br>
      at /home/mdeij/src/ParaView/ParaViewCore/VTKExtensions/Rendering/vtkPVScalarBarActor.cxx:176<br>
 #3   0x00002aaac4bc0584 in vtkScalarBarRepresentation::ReleaseGraphicsResources \
                (this=0x2, w=0x0)<br>
      at /home/mdeij/src/ParaView/VTK/Interaction/Widgets/vtkScalarBarRepresentation.cxx:227<br>
 #4   0x00002aaaaf6f1522 in vtkRenderer::SetRenderWindow (this=0x2, renwin=0x0)<br>
      at /home/mdeij/src/ParaView/VTK/Rendering/Core/vtkRenderer.cxx:1211<br>
#5   0x00002aaaaf6f4f65 in vtkRenderWindow::RemoveRenderer (this=0x2, ren=0x0)<br>
      at /home/mdeij/src/ParaView/VTK/Rendering/Core/vtkRenderWindow.cxx:831<br>
#6   0x00002aaabe043c85 in vtkPVRenderView::~vtkPVRenderView (this=0x68f1de0)<br>
      at /home/mdeij/src/ParaView/ParaViewCore/ClientServerCore/Rendering/vtkPVRenderView.cxx:426<br>
 #7   0x00002aaabe043c3a in vtkPVRenderView::~vtkPVRenderView (this=0x2)<br>
      at /home/mdeij/src/ParaView/ParaViewCore/ClientServerCore/Rendering/vtkPVRenderView.cxx:567<br>
 #8   0x00002aaab4a9c446 in vtkSmartPointerBase::operator= (this=0x2, r=0x0)<br>
      at /home/mdeij/src/ParaView/VTK/Common/Core/vtkSmartPointerBase.cxx:75<br>
#9   0x00002aaaaebdded3 in vtkSIProxy::~vtkSIProxy (this=0x68f1a00)<br>
      at /home/mdeij/src/ParaView/ParaViewCore/ServerImplementation/Core/vtkSIProxy.cxx:93<br>
 #10 0x00002aaaaebdde9a in vtkSIProxy::~vtkSIProxy (this=0x2)<br>
     from /home/mdeij/src/build_ParaView/lib/libvtkPVServerImplementationCore-pv4.3.so.1<br>
 #11 0x00002aaaaebbe523 in ~vtkInternals (this=&lt;optimized out&gt;, \
                $30=&lt;optimized out&gt;)<br>
      at /home/mdeij/src/ParaView/ParaViewCore/ServerImplementation/Core/vtkPVSessionCore.cxx:125<br>
 #12 vtkPVSessionCore::~vtkPVSessionCore (this=0x39fd830)<br>
      at /home/mdeij/src/ParaView/ParaViewCore/ServerImplementation/Core/vtkPVSessionCore.cxx:351<br>
 #13 0x00002aaaaebbe3aa in vtkPVSessionCore::~vtkPVSessionCore (this=0x2)<br>
     from /home/mdeij/src/build_ParaView/lib/libvtkPVServerImplementationCore-pv4.3.so.1<br>
 #14 0x00002aaaaebbb867 in vtkPVSessionBase::~vtkPVSessionBase (this=0x39fdc80)<br>
      at /home/mdeij/src/ParaView/ParaViewCore/ServerImplementation/Core/vtkPVSessionBase.cxx:86<br>
 #15 0x00002aaaae8b873a in vtkSMSession::~vtkSMSession (this=0x2)<br>
     from /home/mdeij/src/build_ParaView/lib/libvtkPVServerManagerCore-pv4.3.so.1<br>
#16 0x00002aaaaee83d01 in ~vtkSmartPointer (this=&lt;optimized out&gt;, \
$3=&lt;optimized out&gt;)<br>  at \
/home/mdeij/src/ParaView/VTK/Common/Core/vtkSmartPointer.h:26<br> #17 ~pair \
(this=&lt;optimized out&gt;, $2=&lt;optimized out&gt;) at \
/usr/include/c++/4.4.7/bits/stl_pair.h:67<br> #18 destroy (this=&lt;optimized \
out&gt;, __p=&lt;optimized out&gt;, $0=&lt;optimized out&gt;, $1=&lt;optimized \
out&gt;)<br>  at /usr/include/c++/4.4.7/ext/new_allocator.h:115<br>
#19 _M_destroy_node (this=&lt;optimized out&gt;, __p=&lt;optimized out&gt;, \
$8=&lt;optimized out&gt;, $9=&lt;optimized out&gt;)<br>  at \
/usr/include/c++/4.4.7/bits/stl_tree.h:383<br> #20 _M_erase (this=&lt;optimized \
out&gt;, __x=&lt;optimized out&gt;, $5=&lt;optimized out&gt;, $6=&lt;optimized \
out&gt;)<br>  at /usr/include/c++/4.4.7/bits/stl_tree.h:972<br>
#21 clear (this=0x0, $3=&lt;optimized out&gt;) at \
/usr/include/c++/4.4.7/bits/stl_tree.h:726<br> #22 clear (this=&lt;optimized out&gt;, \
$2=&lt;optimized out&gt;) at /usr/include/c++/4.4.7/bits/stl_map.h:626<br> #23 \
vtkProcessModule::Finalize () at \
/home/mdeij/src/ParaView/ParaViewCore/ClientServerCore/Core/vtkProcessModule.cxx:290<br>
 #24 0x00002aaaad674142 in vtkInitializationHelper::Finalize ()<br>
      at /home/mdeij/src/ParaView/ParaViewCore/ServerManager/SMApplication/vtkInitializationHelper.cxx:279<br>
 #25 0x00002aaaad242e48 in vtkCPCxxHelper::~vtkCPCxxHelper (this=0x2840fe0)<br>
      at /home/mdeij/src/ParaView/CoProcessing/Catalyst/vtkCPCxxHelper.cxx:58<br>
#26 0x00002aaaad242dfa in vtkCPCxxHelper::~vtkCPCxxHelper (this=0x2)<br>
      at /home/mdeij/src/ParaView/CoProcessing/Catalyst/vtkCPCxxHelper.cxx:124<br>
#27 0x00002aaaad246ad2 in vtkCPProcessor::~vtkCPProcessor (this=0x3a0cbd0)<br>
      at /home/mdeij/src/ParaView/CoProcessing/Catalyst/vtkCPProcessor.cxx:66<br>
#28 0x00002aaaad246a4a in vtkCPProcessor::~vtkCPProcessor (this=0x2)<br>
      at /home/mdeij/src/ParaView/CoProcessing/Catalyst/vtkCPProcessor.cxx:278<br>
<br>
<br>
dr. ir. Menno A. Deij-van Rijswijk<br>
Researcher / Software Engineer<br>
Maritime Simulation &amp; Software Group<br>
E mailto:<a href="mailto:M.Deij@marin.nl">M.Deij@marin.nl</a><br>
T <a href="tel:%2B31%20317%2049%2035%2006" value="+31317493506">+31 317 49 35 \
06</a><br> <br>
<br>
MARIN<br>
2, Haagsteeg, P.O. Box 28, 6700 AA Wageningen, The Netherlands<br>
T <a href="tel:%2B31%20317%2049%2039%2011" value="+31317493911">+31 317 49 39 11</a>, \
F <a href="tel:%2B31%20317%2049%2032%2045" value="+31317493245">+31 317 49 32 45</a>, \
I <a href="http://www.marin.nl" rel="noreferrer" target="_blank">www.marin.nl</a><br> \
<br> _______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" \
target="_blank">www.kitware.com</a><br> <br>
Visit other Kitware open-source projects at <a \
href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" \
target="_blank">http://www.kitware.com/opensource/opensource.html</a><br> <br>
Please keep messages on-topic and check the ParaView Wiki at: <a \
href="http://paraview.org/Wiki/ParaView" rel="noreferrer" \
target="_blank">http://paraview.org/Wiki/ParaView</a><br> <br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" \
rel="noreferrer" target="_blank">http://markmail.org/search/?q=ParaView</a><br> <br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" \
target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br> \
</blockquote></div><br></div>



_______________________________________________
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 ParaView Wiki at: http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic