MantisBT - VTK
View Issue Details
0013409VTK(No Category)public2012-08-29 19:342012-09-06 19:00
David Gobbi 
David Gobbi 
normalminorhave not tried
closedfixed 
5.10.0 
 
TBD
performance
0013409: Python memory leak for observers
The PyVTKObject does not check for reference cycles in its observers, even for things as simple as an observer that is a method of the object itself. The place for the checks to be performed is PyVTKObject_Traverse, which can check each observer to see if it is a vtkPythonCommand, and if so, traverse its "obj" member which is a python object. This will allow simple reference cycles to be broken.

More complex reference cycles would require a special vtkPythonGarbageCollector class that could use VTK's ReportReferences function to traverse VTK's reference tree, looking for python objects.
No tags attached.
Issue History
2012-08-29 19:34David GobbiNew Issue
2012-08-29 19:34David GobbiStatusbacklog => tabled
2012-08-29 19:34David GobbiAssigned To => David Gobbi
2012-09-06 19:00David GobbiNote Added: 0029139
2012-09-06 19:00David GobbiStatustabled => closed
2012-09-06 19:00David GobbiResolutionopen => fixed

Notes
(0029139)
David Gobbi   
2012-09-06 19:00   
Committed patch 0ed9cde3 to fix this bug, prior to VTK 6 release.