Page MenuHomePhabricator

mitkNavigationToolStorageDeserializerTest raises vtkDebugLeaks
Closed, WontfixPublic

Description

vtkDebugLeaks causes unit tests to fail. This is the output when running mitkNavigationToolStorageDeserializerTest:

...Generic Warning: In /home/mbiuser/mitkdc/MITK-sb-R-c/ep/src/VTK/Common/Core/vtkDebugLeaks.cxx, line 281
Deleting unknown object: VtkXMLPolyDataReader

Generic Warning: In /home/mbiuser/mitkdc/MITK-sb-R-c/ep/src/VTK/Common/Core/vtkDebugLeaks.cxx, line 281
Deleting unknown object: VtkXMLPolyDataReader

Generic Warning: In /home/mbiuser/mitkdc/MITK-sb-R-c/ep/src/VTK/Common/Core/vtkDebugLeaks.cxx, line 281
Deleting unknown object: VtkXMLPolyDataReader

Generic Warning: In /home/mbiuser/mitkdc/MITK-sb-R-c/ep/src/VTK/Common/Core/vtkDebugLeaks.cxx, line 281
Deleting unknown object: VtkXMLPolyDataReader

....

OK (7 tests)

vtkDebugLeaks has detected LEAKS!
Class "9vtkBufferIxE" has 20 instances still around.
Class "vtkCellData" has 5 instances still around.
Class "vtkPointData" has 5 instances still around.
Class "vtkPoints" has 5 instances still around.
Class "vtkInformation" has 5 instances still around.
Class "vtkPolyData" has 5 instances still around.
Class "vtkInformationIntegerValue" has 20 instances still around.
Class "vtkCellArray" has 20 instances still around.
Class "vtkFloatArray" has 5 instances still around.
Class "vtkIdTypeArray" has 20 instances still around.
Class "vtkFieldData" has 5 instances still around.
Class "9vtkBufferIfE" has 5 instances still around.
Class "vtkCommand or subclass" has 5 instances still around.

Event Timeline

eisenman created this task.
eisenman added a project: IGT.
eisenman moved this task from Backlog to In Progress on the IGT board.

Test method TestReadSimpleToolStorage causes the following leaks:

Class "9vtkBufferIxE" has 12 instances still around.
Class "vtkCellData" has 3 instances still around.
Class "vtkPointData" has 3 instances still around.
Class "vtkPoints" has 3 instances still around.
Class "vtkInformation" has 3 instances still around.
Class "vtkPolyData" has 3 instances still around.
Class "vtkInformationIntegerValue" has 12 instances still around.
Class "vtkCellArray" has 12 instances still around.
Class "vtkFloatArray" has 3 instances still around.
Class "vtkIdTypeArray" has 12 instances still around.
Class "vtkFieldData" has 3 instances still around.
Class "9vtkBufferIfE" has 3 instances still around.
Class "vtkCommand or subclass" has 3 instances still around.

No vtkDebugLeaks found now! Warnings are still emitted:

.Generic Warning: In /home/eisenman/workspaces/mitk-igt/MITK-debug-superbuild/ep/src/VTK/Common/Core/vtkDebugLeaks.cxx, line 281
Deleting unknown object: VtkXMLPolyDataReader

Generic Warning: In /home/eisenman/workspaces/mitk-igt/MITK-debug-superbuild/ep/src/VTK/Common/Core/vtkDebugLeaks.cxx, line 281
Deleting unknown object: VtkXMLPolyDataReader

Generic Warning: In /home/eisenman/workspaces/mitk-igt/MITK-debug-superbuild/ep/src/VTK/Common/Core/vtkDebugLeaks.cxx, line 281
Deleting unknown object: VtkXMLPolyDataReader

Generic Warning: In /home/eisenman/workspaces/mitk-igt/MITK-debug-superbuild/ep/src/VTK/Common/Core/vtkDebugLeaks.cxx, line 281
Deleting unknown object: VtkXMLPolyDataReader

The warnings can be narrowed down to the test method TestReadComplexToolStorage, which leads to the call of mitk::SurfaceVtkXmlIO::GetReaderConfidenceLevel.
Within the body of GetReaderConfidenceLevel, an instance of VtkXMLPolyDataReader is created (l. 97). When returning from GetReaderConfidenceLevel, a generic warning is emitted.

eisenman lowered the priority of this task from High to Low.Feb 6 2018, 4:30 PM
kislinsk added a project: Auto-closed.
kislinsk added a subscriber: kislinsk.

Hi there! ๐Ÿ™‚

This task was auto-closed according to our Task Lifecycle Management.
Please follow this link for more information and don't forget that you are encouraged to reasonable re-open tasks to revive them. ๐Ÿš‘

Best wishes,
The MITK devs