View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002841VTK(No Category)public2006-02-07 09:042016-08-12 09:54
ReporterMathieu Malaterre 
Assigned ToWill Schroeder 
PrioritylowSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0002841: memory leak in vtkHyperStreamline
DescriptionHi 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
TagsNo tags attached.
Project
Type
Attached Files? file icon testVtkHyperStreamlineMemoryUse.tcl [^] (1,671 bytes) 1969-12-31 19:00

 Relationships

  Notes
(0036824)
Kitware Robot (administrator)
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.

 Issue History
Date Modified Username Field Change
2011-06-16 13:11 Zack Galbreath Category => (No Category)
2016-08-12 09:54 Kitware Robot Note Added: 0036824
2016-08-12 09:54 Kitware Robot Status expired => closed
2016-08-12 09:54 Kitware Robot Resolution open => moved


Copyright © 2000 - 2018 MantisBT Team