19.05.2011 17:20, D. Sergei пишет:
Hello.
I have a memory leak when saved animation (as from gui and from python). I
attach a test case. When run test.py process uses RAM upto 35% (I have 12GB).
After this using memory for the process reset to 0 and starts grow again. But a
total using of a memory continues grow without stops.
ps. my system is openSUSE 11.3
test case (3.4MB):
http://dl.dropbox.com/u/714488/memory-leak-test.tar.gz
_______________________________________________
Seems, a some problem with off-screen rendering.
When I use WriteImage instead AnimationView and run script with
pvbatch --use-offscreen-rendering test.py
I get memory leak.
But without --use-offscreen-rendering option there is no memory leak.
(But a window is blink. How can I avoid this?)
I attach modified test.py (with WriteImage)
--
Best regards,
Sergei D.
#!/usr/bin/python
from paraview.simple import *
servermanager.LoadPlugin('/home/sega/ParaView-3.10.1/lib/paraview-3.10/libPointSprite_Plugin.so')
FileNames=[]
for i in range(2000):
FileNames+=['./data/test0001.vtk']
servermanager.LoadState('test.pvsm')
view=GetRenderViews()[0]
SetActiveView(view)
reader=LegacyVTKReader(FileNames=FileNames)
particles=FindSource('particles')
particles.Input=reader
tsteps=reader.TimestepValues
for t in tsteps:
view.ViewTime=t
WriteImage('./frames/frame_'+str(int(t))+'.png')
#AnimateReader(reader, filename="./frames/frame.png")
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the ParaView Wiki at:
http://paraview.org/Wiki/ParaView
Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview