Hi Peter,

First of all, I apologize for taking so long looking into this.

I think I know what the problem is. In prog_filter.py, you are doing
the following:

outputBlock = inputBlock.NewInstance()

Due to some issues in VTK's reference counting and the way it
interacts with Python, this causes a memory leak and outputBlock is
never released. Try this:

outputBlock = inputBlock.NewInstance()
outputBlock.UnRegister(None)

instead. I bet you this will fix the memory problem. I will
investigate how we can solve this problem in VTK in the future.

-berk


On Wed, Apr 1, 2009 at 4:48 PM, Peter Brady<petertbr...@gmail.com> wrote:
> Hello all,
>
> I have some reasonable sized data sets (256x256x512) that I'm using
> paraview to do some postprocessing on via a python script.  However,
> for some reason, as time progresses and it slogs through more
> timesteps the memory usage slowly creeps up until my workstation
> crashes (seems to take about 200-300 timesteps before it eats up all
> my memory).  I haven't encountered this problem before but this is the
> largest data set I've processed thus far.  My data format is ensight
> gold.  The script I'm using is below:
>
> ...
_______________________________________________
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

Reply via email to