View Issue Details

IDProjectCategoryView StatusLast Update
0002162Slicer4(No Category)public2014-03-06 04:52
Reporteralexy Assigned Tojcfr  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product VersionSlicer 4.1.0 
Target VersionSlicer 4.2.0Fixed in VersionSlicer 4.2.0 
Summary0002162: Memory leak, when using the module Tractography Fiducial Seeding
Description

To reproduce the memory leaks :
1/ Open Slicer, then load "DTI Volume" by the sample data
2/ Add a fiducial
3/ Open "Tractography Fiducial Seeding" module
4/ Close Slicer

the "py_NeurosurgicalPlanningTutorial" test is failing due to those leaks !

TagsNo tags attached.

Activities

jcfr

jcfr

2012-06-27 12:46

administrator   ~0004950

Benjamin> Could you copy the leaks printed by VTK ?
Are they similar to the one reported in 0002262

BenjaminLong

BenjaminLong

2012-06-27 13:43

reporter   ~0004954

vtkDebugLeaks has detected LEAKS!
Class "vtkSynchronizedTemplatesCutter3D" has 12 instances still around.
Class "vtkCellData" has 1 instance still around.
Class "vtkTransformPolyDataFilter" has 12 instances still around.
Class "vtkInformationVector" has 255 instances still around.
Class "vtkPointData" has 1 instance still around.
Class "vtkTrivialProducer" has 1 instance still around.
Class "vtkMatrix4x4" has 92 instances still around.
Class "vtkCoordinate" has 24 instances still around.
Class "vtkPlane" has 12 instances still around.
Class "vtkInformation" has 304 instances still around.
Class "vtkSynchronizedTemplates3D" has 12 instances still around.
Class "vtkPolyData" has 1 instance still around.
Class "vtkActor2D" has 12 instances still around.
Class "vtkRectilinearSynchronizedTemplates" has 12 instances still around.
Class "vtkDoubleArray" has 60 instances still around.
Class "vtkAlgorithmOutput" has 13 instances still around.
Class "vtkInformationIntegerValue" has 221 instances still around.
Class "vtkOpenGLPolyDataMapper2D" has 12 instances still around.
Class "vtkGridSynchronizedTemplates3D" has 12 instances still around.
Class "vtkCellArray" has 1 instance still around.
Class "vtkCutter" has 12 instances still around.
Class "vtkInformationStringValue" has 1 instance still around.
Class "vtkInformationExecutivePortVectorValue" has 13 instances still around.
Class "vtkContourValues" has 60 instances still around.
Class "vtkIdTypeArray" has 1 instance still around.
Class "vtkTransform" has 12 instances still around.
Class "vtkFieldData" has 1 instance still around.
Class "vtkStreamingDemandDrivenPipeline" has 25 instances still around.
Class "vtkTimerLog" has 12 instances still around.
Class "vtkInformationExecutivePortValue" has 13 instances still around.

jcfr

jcfr

2012-06-27 13:54

administrator   ~0004956

Make sure to update your code base, I believe most of these leaks have been fixed. See 0002262 for details.

BenjaminLong

BenjaminLong

2012-06-28 09:06

reporter   ~0004967

Today I got this leaks ...

Class "vtkCellData" has 1 instance still around.
Class "vtkInformationVector" has 3 instances still around.
Class "vtkPointData" has 1 instance still around.
Class "vtkTrivialProducer" has 1 instance still around.
Class "vtkInformation" has 4 instances still around.
Class "vtkPolyData" has 1 instance still around.
Class "vtkAlgorithmOutput" has 1 instance still around.
Class "vtkInformationIntegerValue" has 11 instances still around.
Class "vtkCellArray" has 1 instance still around.
Class "vtkInformationStringValue" has 1 instance still around.
Class "vtkInformationExecutivePortVectorValue" has 1 instance still around.
Class "vtkIdTypeArray" has 1 instance still around.
Class "vtkFieldData" has 1 instance still around.
Class "vtkStreamingDemandDrivenPipeline" has 1 instance still around.
Class "vtkInformationExecutivePortValue" has 1 instance still around.

jcfr

jcfr

2012-06-28 13:20

administrator   ~0004981

Fixed in r20516
See http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&revision=20516

I would really really really recommend using Smart pointers ! It just makes the management of memory painless.

See http://www.vtk.org/doc/nightly/html/classvtkNew.html#details

Consider also reading:
http://www.vtk.org/Wiki/VTK/Tutorials/SmartPointers
http://www.vtk.org/pipermail/vtk-developers/2010-January/007155.html

jcfr

jcfr

2012-07-27 15:40

administrator   ~0005387

Dear issue reporter,

Good news :) Slicer developers SOLVED the problem you reported - YOU now need to VERIFY and CLOSE this issue.

jcfr

jcfr

2014-03-06 04:50

administrator   ~0010704

Closing resolved issues that have not been updated in more than 3 months

Issue History

Date Modified Username Field Change
2012-06-04 12:01 BenjaminLong New Issue
2012-06-04 12:01 BenjaminLong Status new => assigned
2012-06-04 12:01 BenjaminLong Assigned To => demian
2012-06-05 07:25 demian Assigned To demian => alexy
2012-06-27 12:46 jcfr Note Added: 0004950
2012-06-27 13:43 BenjaminLong Note Added: 0004954
2012-06-27 13:54 jcfr Note Added: 0004956
2012-06-28 09:06 BenjaminLong Note Added: 0004967
2012-06-28 12:42 jcfr Assigned To alexy => jcfr
2012-06-28 13:18 jcfr Reporter BenjaminLong => alexy
2012-06-28 13:20 jcfr Note Added: 0004981
2012-06-28 13:20 jcfr Status assigned => resolved
2012-06-28 13:20 jcfr Fixed in Version => Slicer 4.2.0 - Sept 1st 2012
2012-06-28 13:20 jcfr Resolution open => fixed
2012-07-27 15:40 jcfr Note Added: 0005387
2012-08-21 11:35 jcfr Target Version => Slicer 4.2.0 - Feature freeze Sept 1st 2012
2014-03-06 04:50 jcfr Note Added: 0010704
2014-03-06 04:52 jcfr Status resolved => closed
2016-02-29 13:56 jcfr Category Module Diffusion => (No Category)