The Reproduction code was incorrect. You need to load the image as Datanode and then cast it to an image to reproduce it. The memory leak is propably casue by smartpointer dependencies. here some code examples:
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Advanced Search
Aug 2 2016
Two more interesting examples:
"GetVtkImageData" is called by a number of filters. e.g. ExtractSliceFilter. At the moment this memory leak makes it impossible to use these filters in an autonomous processing, where more than 6-7 images are handled.
Bug will be fixed with the cahnges from T13953
A workaround would be cloning of the image before calling getVtkData. I'm gonna investigate the source of the problem some other time.
We began our research
In mitkDisplayInteractor.h
in the method:
void mitk::DisplayInteractor::ExecuteOperation(mitk::Operation * operation)
A similar bug (maybe even same bug source) can be reproduced by the following
[57e31e]: Merge branch 'bug-13883-imageAccessor'
Merged commits:
2012-12-06 16:04:55 Bastian Graser [96a0f3]
COMP typedef of base class not available on linux
New remote branch pushed: bug-13883-imageAccessor
[9a1b42]: Merge branch 'bug-13883-imageAccessor'
Merged commits:
2012-12-05 14:24:33 Bastian Graser [e3af41]
Corrected Typo and updated Test
[db342d]: Merge branch 'bug-13883-imageAccessor'
Merged commits:
2012-12-06 16:18:33 Bastian Graser [091e85]
COMP added typedef from base class to derived class
New remote branch pushed: bug-13751-rotationIn3DRenderWindow
[4883d8]: Merge branch 'bug-13751-rotationIn3DRenderWindow'
Merged commits:
2012-12-05 17:55:30 Bastian Graser [653618]
Added check for 3D Renderwindow rotation
We found a solution.
[aba33d]: Merge branch 'bug-13689-ExtractSliceFilter'
Merged commits:
2012-11-21 16:27:53 Bastian Graser [e45642]
Added a modified call inside the SetWorldGeometry function
New remote branch pushed: bug-13689-ExtractSliceFilter
[6ac612]: Merge branch 'bug-13568-GeoProjectFuncNEW'
Merged commits:
2012-11-28 15:01:38 Bastian Graser [3680e8]
COMP put comments around unused paramter
New remote branch pushed: bug-13568-GeoProjectFuncNEW
[632f83]: Merge branch 'bug-13568-Geo2DProjectFunction'
Merged commits:
2012-11-21 15:20:59 Bastian Graser [db680b]
Added new function for projection
New remote branch pushed: bug-13568-Geo2DProjectFunction
We did some research. According to the history books of MITK the function
.. Test fails under MacOS due to uninitialized points
[235a3c]: Merge branch 'bug-13531-ClonePointSet'
Merged commits:
2012-11-14 10:39:41 Bastian Graser [22daa8]
COMP Poinset contained uninitialized points. repaired this.
[fa2cf3]: Merge branch 'bug-13531-ClonePointSet'
Merged commits:
2012-11-08 15:01:54 Bastian Graser [8ee645]
geometry is now cloned before timesteps and points are set
Apparently, when you call "InsertPoint", you have to give world coordinates. Didnt see that. that clears the problem
Clone method DOES have a bug.
when you clone a 4D pointset the resulting pointset is 3D because the geometry is cloned in a wrong way.
New remote branch pushed: bug-13531-ClonePointSet
We have a look
Works for us
[e45e30]: Merge branch 'bug-13213-statemachineMitralPoints'
Merged commits:
2012-09-24 14:53:09 Bastian Graser [f08cef]
added shift and rightmousebuttonclick to statemachine
finished! need CoreFlag please
[f3144b]: Merge branch 'bug-13202-ReorientSlices'
Merged commits:
2012-09-24 16:42:06 Bastian Graser [a2f58c]
added Test and fixed a bug
Adjusted templates
for this issue, start checking at mitkPaintbrushTool.cpp line 117
Pushed a temporary solution to branch bug-13161-wipe2D.
Hm.. apparently only works in debug mode.
In release modethe feedback contour is not visible
We took a look at it:
Forgot something:
[d62b00]: Merge branch 'bug-13109-RenderPlaneRotation'
Merged commits:
2012-11-08 18:27:07 Bastian Graser [b43805]
added a deprecated warning to RotateToPoint function
[8c5569]: Merge branch 'bug-13109-RenderPlaneRotation'
Merged commits:
2012-11-14 16:33:43 Bastian Graser [9b7550]
COMP Reinitialized Planes is called only once after all rotations are finished
For rotating the renderwindows, the following "new" method is most appropiate:
is not really distinct. It is changing the normal of a stack of slices (slicedGeometry). Yet, the rotation of the slices around the normal is not well defined. So this can produce strange results.
The operation "AcRestorePlaneOperation" is not that great, since you need all kind of information for that plane (spacing, extend, etc...)
New remote branch pushed: bug-13109-RenderPlaneRotation
Rotated using possibilty 1 (after some manual rotation)
it's annoying, it's a bug.
Also, after finishing a Line Path or Polyong, the FIRST set point is deleted again.
[a5153c]: Merge branch 'bug-13080-segmentationReinit'
Merged commits:
2012-09-12 15:03:07 Bastian Graser [0c60a6]
Added a Reinit Call to the selected datanode to fix segmentation problem
The implemented solution (reinit the selected node) is not such a great solution. Maybe the user wants to see several images while performing segemntation.
Tge problem was a missing reinit of the selected datanode. This has been added now.
Maybe enabling busyCursor "BusyCursorOn()" would help to indicate to the user that otsu is still calculating (when e.g. choosing 10 thresholds)
There was a missing if statement in "EnableInterpolation" method
[18b651]: Merge branch 'bug-13016-3dinterpolationvisible'
Merged commits:
2012-09-12 16:04:08 Bastian Graser [c1ccb2]
fixed visibility changes when radio button clicked
Only on 32 BIT
yes
[931490]: Merge branch 'bug-12953-writing4Dimages'
Merged commits:
2014-03-05 16:11:49 Bastian Graser [f14ec8]
Added a 4th component to spacing, origin and direction matrix to support 4D images correctly
Fixed it.
New remote branch pushed: bug-12952-TutorialIGTTrackingLabBasedOnNewMaster
this needs to be fixed
[7f5326]: Merge branch 'bug-12946-closedcontour'
Merged commits:
2012-08-29 15:25:34 Bastian Graser [ee2f41]
Also adjusted 2D Mapper to make closed contour
[3546fd]: Merge branch 'bug-12946-closedcontour'
Merged commits:
2012-08-31 15:11:26 Bastian Graser [bbdc06]
COMP got rid of a warning
There is already a property called "close contour" for pointsets. But it is not read and used correctly in the mapper. This is now repaired!