MantisBT - VTK | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0002841 | VTK | (No Category) | public | 2006-02-07 09:04 | 2016-08-12 09:54 |
| Reporter | Mathieu Malaterre | ||||
| Assigned To | Will Schroeder | ||||
| Priority | low | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | moved | ||
| Platform | OS | OS Version | |||
| Product Version | |||||
| Target Version | Fixed in Version | ||||
| Project | |||||
| Type | |||||
| Summary | 0002841: memory leak in vtkHyperStreamline | ||||
| Description | 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 | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | https://www.vtk.org/Bug/file/5457/testVtkHyperStreamlineMemoryUse.tcl | ||||
| 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 | ||
| Notes | |||||
|
|
|||||
|
|
||||