[Bf-python] PyThon Memory leak.

joeedh joeeagar at prodigy.net
Mon Mar 7 10:57:16 CET 2005


Campbell Barton wrote:

> G'Day All,
>
> There is an issue where making a list in python will use up memory in 
> blender until blender is restarted.
>
> if you open up blender and run this line,
> x = [[]] * 100000 # As many as your memory will allow ..
>
> The lsit is created but the memory is still used,
> del x after this dosent work and teh garbage collector dosent do 
> anythying either.
>
> I asked around in the pythonj chat room and it turns out this is a 
> known bug.
>
> Aside from this spesific issue, could Blender force python to 
> deallocate memory once a python script finishes??
> its not running so it shouldent use memory.
>
> I am passing gigerbytes of 3D data and cant help making big lists- 
> forcing me to restart blender every hours or so (Reminds me on win95)
>
> - Cambo
>
>
This would ruin the Registry module, along with storing global data in 
the Blender module as attributes.

joeedh



More information about the Bf-python mailing list