[Paraview] segfault with append data for polyhedron datasets

Paul Edwards paul.m.edwards at gmail.com
Mon Jan 6 14:35:17 EST 2014


Below is the fix:

diff --git a/Filters/Core/vtkAppendFilter.cxx
b/Filters/Core/vtkAppendFilter.cxx
index 674135c..1f8878f 100644
--- a/Filters/Core/vtkAppendFilter.cxx
+++ b/Filters/Core/vtkAppendFilter.cxx
@@ -302,6 +302,7 @@ int vtkAppendFilter::RequestData(
         if (ug && ds->GetCellType(cellId) == VTK_POLYHEDRON )
           {
           vtkIdType nfaces, *facePtIds;
+          newPtIds->Reset ();
           ug->GetFaceStream(cellId,nfaces,facePtIds);
           for(vtkIdType id=0; id < nfaces; ++id)
             {



On 6 January 2014 16:04, Paul Edwards <paul.m.edwards at gmail.com> wrote:

> I'm having problems when using data with polyhedron cells.  I get a
> segfault when I run append data on the attached datasets.  I've got a very
> simple example - two datasets, one with 3 cells and other with 2 cells.
>  The steps to reproduce:
>
> Load polyhedron1.vtu
> Load polyhedron2.vtu
> Select both, choose "Append datasets" and apply
>
> There seems to be some memory corruption somewhere but it's not obvious to
> me...  Any hints would be appeciated if anyone has the time to look.
>
> Thanks,
> Paul
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20140106/8a953f35/attachment.htm>


More information about the ParaView mailing list