On Wed, Dec 15, 2010 at 07:18:12PM +0000, Juha Jäykkä wrote: > Strange. I got the memory leak problem back after adding > (phi3as=mlab.pipeline.scalar_field(...) and ds=phi3as.mlab_source.dataset; > these existed before, too):
> ds.point_data.vectors=blah > to the pipeline. I can delete ~everything in the interpreter, so that > >>> dir() > ['__builtins__', '__doc__', '__name__', 'gc'] Do you do anything with ds? If so what? Do you have a self-contained minimalist example that replicates the problem. > So I think I do not have references lying around, but the memory is still > lost. I suspect that you still have references :). First of all, is this in the Python interpreter, or IPython. > Does this mean VTK or mayavi malloc()s stuff and never free()s it? It shouldn't be the case: if the Python objects are freed, the C-level (or VTK-level) objects should be freed too. I suspect a reference lying somewhere, maybe in the Mayavi pipeline (it can be a bit nasty, in terms of references :P) Cheers, Gaël ------------------------------------------------------------------------------ Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d _______________________________________________ MayaVi-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mayavi-users
