[Vv] leaks

Arnaud GELAS arnaud_gelas at hms.harvard.edu
Tue Jun 15 22:28:28 CEST 2010


Hi David,

That's a good one!!!

There is not flag like this one in ITK... Theoretically, 
itk::SmartPointer should take care of releasing the memory of each 
instantiation of ITK class, but some leaks may occur within a class when 
memory is not properly deallocated. Then the only way is to use standard 
tool like valgrind or purify.

Bonne soiree,
Arnaud


On 06/15/2010 04:04 PM, David Sarrut wrote:
> Hi Arnaud,
>
> we have a joke here : "if you have mem leaks, buy RAM !" ;)
>
> Anyway, you finding is useful and we must have a look at these leaks. 
> In short term I however doubt that we manage to find time to track 
> them, but we will look. Do ITK have similar debug flag ?
>
> Thanks,
> David
>
> On Tue, Jun 15, 2010 at 21:47, Arnaud GELAS 
> <arnaud_gelas at hms.harvard.edu <mailto:arnaud_gelas at hms.harvard.edu>> 
> wrote:
>
>     Hi,
>
>     I have just ran vv, opened one image and I get the following leaks.
>
>     Arnaud
>
>     vtkDebugLeaks has detected LEAKS!
>     Class "vtkCornerAnnotation" has 12 instances still around.
>     Class "vtkOpenGLScalarsToColorsPainter" has 20 instances still around.
>     Class "vtkCellData" has 123 instances still around.
>     Class "vtkCompositePainter" has 20 instances still around.
>     Class "vtkOpenGLImageActor" has 12 instances still around.
>     Class "vtkCursor2D" has 12 instances still around.
>     Class "vtkInformationIntegerVectorValue" has 50 instances still
>     around.
>     Class "vtkCursor3D" has 12 instances still around.
>     Class "vtkPointsPainter" has 4 instances still around.
>     Class "vtkInformationVector" has 734 instances still around.
>     Class "vtkPointData" has 123 instances still around.
>     Class "vtkProperty2D" has 21 instances still around.
>     Class "vtkOpenGLDisplayListPainter" has 20 instances still around.
>     Class "vtkPolygonsPainter" has 4 instances still around.
>     Class "vtkTrivialProducer" has 14 instances still around.
>     Class "vtkMatrix4x4" has 80 instances still around.
>     Class "vtkCoordinate" has 144 instances still around.
>     Class "vtkBox" has 12 instances still around.
>     Class "vtkPoints" has 218 instances still around.
>     Class "vtkInformation" has 1237 instances still around.
>     Class "vtkLine" has 92 instances still around.
>     Class "vtkInformationStringVectorValue" has 60 instances still around.
>     Class "vtkMultiThreader" has 12 instances still around.
>     Class "vtkMarchingSquares" has 16 instances still around.
>     Class "vtkInformationIntegerPointerValue" has 23 instances still
>     around.
>     Class "vtkOpenGLCoincidentTopologyResolutionPainter" has 20
>     instances still around.
>     Class "vtkOpenGLLightingPainter" has 20 instances still around.
>     Class "vtkPixel" has 46 instances still around.
>     Class "vtkPolyData" has 100 instances still around.
>     Class "vtkLookupTable" has 13 instances still around.
>     Class "vtkGlyph3D" has 12 instances still around.
>     Class "vtkActor2D" has 60 instances still around.
>     Class "vtkPainterPolyDataMapper" has 20 instances still around.
>     Class "vtkHardwareSelectionPolyDataPainter" has 20 instances still
>     around.
>     Class "vtkOpenGLActor" has 28 instances still around.
>     Class "vtkIdList" has 184 instances still around.
>     Class "vtkTStripsPainter" has 4 instances still around.
>     Class "vtkDoubleArray" has 200 instances still around.
>     Class "vtkInformationDoubleValue" has 13 instances still around.
>     Class "vtkAlgorithmOutput" has 87 instances still around.
>     Class "vtkDefaultPainter" has 20 instances still around.
>     Class "vtkInformationIntegerValue" has 2505 instances still around.
>     Class "vtkOpenGLPolyDataMapper2D" has 12 instances still around.
>     Class "vtkTextProperty" has 99 instances still around.
>     Class "vtkExtentTranslator" has 3 instances still around.
>     Class "vtkCellArray" has 35 instances still around.
>     Class "vtkClipPolyData" has 12 instances still around.
>     Class "vtkStandardPolyDataPainter" has 16 instances still around.
>     Class "vtkVertex" has 23 instances still around.
>     Class "vtkChooserPainter" has 20 instances still around.
>     Class "vtkImageData" has 23 instances still around.
>     Class "vtkOpenGLFreeTypeTextMapper" has 87 instances still around.
>     Class "vtkFloatArray" has 34 instances still around.
>     Class "vtkInformationStringValue" has 101 instances still around.
>     Class "vtkInformationExecutivePortVectorValue" has 70 instances
>     still around.
>     Class "vtkContourValues" has 16 instances still around.
>     Class "vtkTransform" has 40 instances still around.
>     Class "vtkIdTypeArray" has 35 instances still around.
>     Class "vtkVoxel" has 23 instances still around.
>     Class "vtkOpenGLClipPlanesPainter" has 20 instances still around.
>     Class "vtkFieldData" has 123 instances still around.
>     Class "vvImageMapToWLColors" has 12 instances still around.
>     Class "vtkImageClip" has 16 instances still around.
>     Class "vtkOpenGLProperty" has 20 instances still around.
>     Class "vtkInformationDoubleVectorValue" has 67 instances still around.
>     Class "vtkUnsignedCharArray" has 33 instances still around.
>     Class "vtkLinesPainter" has 4 instances still around.
>     Class "vtkStreamingDemandDrivenPipeline" has 122 instances still
>     around.
>     Class "vtkMergePoints" has 4 instances still around.
>     Class "vtkOpenGLRepresentationPainter" has 20 instances still around.
>     Class "vtkTimerLog" has 351 instances still around.
>     Class "vtkCommand or subclass" has 484 instances still around.
>     Class "vtkInformationExecutivePortValue" has 102 instances still
>     around.
>
>     _______________________________________________
>     vv mailing list
>     vv at creatis.insa-lyon.fr <mailto:vv at creatis.insa-lyon.fr>
>     http://www.creatis.insa-lyon.fr/mailman/listinfo/vv
>
>
>
>
> -- 
> David Sarrut, Phd
> Chargé de recherche CNRS
> Centre de lutte contre le cancer Léon Bérard
> 28 rue Laënnec, 69373 Lyon cedex 08
> Laboratoire CREATIS-LRMN UMR CNRS 5220, Inserm U 630
> Tel : 04 78 78 51 51 / 06 74 72 05 42
> http://www.creatis.insa-lyon.fr/rio
> _________________________________
> "2 + 2 = 5,  for extremely large values of 2"
> _________________________________

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.creatis.insa-lyon.fr/pipermail/vv/attachments/20100615/15b42a39/attachment.html>


More information about the vv mailing list