View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0009520VTK(No Category)public2009-09-10 15:572016-08-12 09:55
ReporterLuke Dodd 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0009520: Memory leak in vtkUnstructuredGridBunykRayCastFunction
DescriptionWhen using a vtkUnstructuredGridVolumeRayCastMapper to render a volume with vtkUnstructuredGridBunykRayCastFunction there is a memory leak. The leak occurs when something before the mapper in the pipeline is modified and a render requested.

vtkUnstructuredGridBunykRayCastFunction::UpdateTriangleList will be called during the render, it will allocate vtkUnstructuredGridBunykRayCastFunction::TetraTriangles - but not delete the one that had been allocated on the previous call.

I have supplied c++ source to reproduce the leak, and a patch. When the source is compiled and the process will consistently leak ram. Be careful running it for long, it will 100% the cpu and uses up all the ram it can over time.
TagsNo tags attached.
Project
Type
Attached Filescxx file icon BunykRayCastMemLeak.cxx [^] (2,824 bytes) 2009-09-10 15:57
patch file icon BunykRayCastMemLeak.patch [^] (831 bytes) 2009-09-10 15:58 [Show Content]

 Relationships

  Notes
(0017545)
François Bertel (developer)
2009-09-15 15:41

Which version of VTK are you using? (a release ? CVS head ?)
(0017549)
Luke Dodd (reporter)
2009-09-15 19:51

This is present in vtk 5.4.2. It seems to be fixed in CVS head that I just tested.

(I tested my larger program against CVS head before and it had memory issues - it didn't show up in the smaller example I uploaded. Most likely a fault somewhere else in my code clouding the issue.)

This revision seems to be the fix: http://public.kitware.com/cgi-bin/viewcvs.cgi/VolumeRendering/vtkUnstructuredGridBunykRayCastFunction.cxx?r1=1.6&r2=1.7 [^]

Sorry for any time wasted!
(0017550)
François Bertel (developer)
2009-09-15 20:43

I asked because I'm the person who actually applied the patch on VTK CVS head in April in rev 1.7 of vtkUnstructuredGridBunykRayCastFunction.cxx.

Don't be sorry because this is an opportunity to apply the patch to the release branch. Thanks for the report.
(0037098)
Kitware Robot (administrator)
2016-08-12 09:55

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2009-09-10 15:57 Luke Dodd New Issue
2009-09-10 15:57 Luke Dodd File Added: BunykRayCastMemLeak.cxx
2009-09-10 15:58 Luke Dodd File Added: BunykRayCastMemLeak.patch
2009-09-15 15:41 François Bertel Status backlog => tabled
2009-09-15 15:41 François Bertel Assigned To => François Bertel
2009-09-15 15:41 François Bertel Note Added: 0017545
2009-09-15 19:51 Luke Dodd Note Added: 0017549
2009-09-15 20:43 François Bertel Note Added: 0017550
2010-09-07 13:44 François Bertel Assigned To François Bertel =>
2011-06-16 13:11 Zack Galbreath Category => (No Category)
2016-08-12 09:55 Kitware Robot Note Added: 0037098
2016-08-12 09:55 Kitware Robot Status expired => closed
2016-08-12 09:55 Kitware Robot Resolution open => moved
2016-08-12 09:55 Kitware Robot Assigned To => Kitware Robot


Copyright © 2000 - 2018 MantisBT Team