View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
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 | ||||||||
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 | ||||||||
Tags | No tags attached. | ||||||||
Project | |||||||||
Type | |||||||||
Attached Files | testVtkHyperStreamlineMemoryUse.tcl [^] (1,671 bytes) 1969-12-31 19:00 | ||||||||
Relationships | |
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. |
Notes |
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 |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |