memory leak problem with arrays

Robert Kern robert.kern at gmail.com
Wed Jun 14 18:58:01 EDT 2006


sonjaa wrote:
> Hi
> 
> I'm new to programming in python and I hope that this is the problem.
> 
> I've created a cellular automata program in python with the numpy array
> extensions. After each cycle/iteration the memory used to examine and
> change the array as determined by the transition rules is never freed.
> I've tried using "del" on every variable possible, but that hasn't
> worked. I've read all the forums for helpful hints on what to do, but
> nothing has worked so far. I've even tried the "python memory
> verification" (beta) program, which did point to numpy.dtype and
> numpy.ndarray as increasing objects, before the whole computer crashed.

Please post to numpy-discussion:

  http://www.scipy.org/Mailing_Lists

We will need to know the version of numpy which you are using. There used to be
a bug that sounds like this, but it was fixed some time ago. Also, please try to
narrow your program down to the smallest piece of code that runs and still
displays the memory leak.

Thank you.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco




More information about the Python-list mailing list