View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013409VTK(No Category)public2012-08-29 19:342012-09-06 19:00
ReporterDavid Gobbi 
Assigned ToDavid Gobbi 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version5.10.0 
Target VersionFixed in Version 
Summary0013409: Python memory leak for observers
DescriptionThe 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.
TagsNo tags attached.
ProjectTBD
Typeperformance
Attached Files

 Relationships

  Notes
(0029139)
David Gobbi (developer)
2012-09-06 19:00

Committed patch 0ed9cde3 to fix this bug, prior to VTK 6 release.

 Issue History
Date Modified Username Field Change
2012-08-29 19:34 David Gobbi New Issue
2012-08-29 19:34 David Gobbi Status backlog => tabled
2012-08-29 19:34 David Gobbi Assigned To => David Gobbi
2012-09-06 19:00 David Gobbi Note Added: 0029139
2012-09-06 19:00 David Gobbi Status tabled => closed
2012-09-06 19:00 David Gobbi Resolution open => fixed


Copyright © 2000 - 2018 MantisBT Team