[vtk-developers] [VTK 0013409]: Python memory leak for observers

Mantis Bug Tracker mantis at public.kitware.com
Wed Aug 29 19:34:54 EDT 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://www.vtk.org/Bug/view.php?id=13409 
====================================================================== 
Reported By:                David Gobbi
Assigned To:                David Gobbi
====================================================================== 
Project:                    VTK
Issue ID:                   13409
Category:                   (No Category)
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     tabled
Project:                    TBD 
Type:                       performance 
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             2012-08-29 17:34 MDT
Last Modified:              2012-08-29 17:34 MDT
====================================================================== 
Summary:                    Python memory leak for observers
Description: 
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.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-08-29 17:34 David Gobbi    New Issue                                    
2012-08-29 17:34 David Gobbi    Status                   backlog => tabled   
2012-08-29 17:34 David Gobbi    Assigned To               => David Gobbi     
======================================================================




More information about the vtk-developers mailing list