MantisBT - VTK
View Issue Details
0002841VTK(No Category)public2006-02-07 09:042016-08-12 09:54
Mathieu Malaterre 
Will Schroeder 
lowminoralways
closedmoved 
 
 
0002841: memory leak in vtkHyperStreamline
Hi all,

I have found a memory leak in vtkHyperStreamline. The internal object
this->Streamers is allocated via new each time Execute is called, however it is
only deleted when the object itself is deleted. So if the vtkHyperStreamline
object executes multiple times there is a leak, and also keeping even one copy
of the Streamers around is very very memory intensive for some reason.

The attached script demonstrates the problem (you need to run top or similar at
the same time and see how much memory is used). There are some lines in the
script that you can uncomment to demonstrate the leak. I found that adding these
lines to the end of the function vtkHyperStreamline::Execute() will fix the
problem (must be after the call to BuildTube):

  delete [] this->Streamers;
  this->Streamers = 0;

Thanks for looking into this!

Lauren O'Donnell
No tags attached.
? testVtkHyperStreamlineMemoryUse.tcl (1,671) 1969-12-31 19:00
https://www.vtk.org/Bug/file/5457/testVtkHyperStreamlineMemoryUse.tcl
Issue History
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2016-08-12 09:54Kitware RobotNote Added: 0036824
2016-08-12 09:54Kitware RobotStatusexpired => closed
2016-08-12 09:54Kitware RobotResolutionopen => moved

Notes
(0036824)
Kitware Robot   
2016-08-12 09:54   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.