[vtk-developers] Crash when resetting an array
Laurent Chauvin
lchauvin at bwh.harvard.edu
Mon Feb 28 18:41:35 EST 2011
Hello,
I am trying to modify vtkPolyDataConnectivityFilter.
Everything is fine except when I try to reset the PointMap array
(vtkIdType).
I use this code (the same used to initializate the array):
for (int i = 0; i < numPts; i++)
{
this->PointMap[i] = -1;
}
I put this code just after the for loop to find the largest region id.
It compiled without any problem.
But when I run this code I have this error:
Slicer3-real: malloc.c:3574: mremap_chunk: Assertion `((size + offset) &
(mp_.pagesize-1)) == 0' failed.
zsh: abort
/home/freak/Slicer3/Slicer3-Experimental/Slicer3-build/bin/Slicer3-real
numPts seems not to be modified, so I don't understand what this problem is
not happening during initialization.
Do you have an idea what the problem could be ?
Thank you.
Laurent.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20110228/695c50f8/attachment.html>
More information about the vtk-developers
mailing list