[SciPy-dev] St9bad_alloc

David Cournapeau david@ar.media.kyoto-u.ac...
Thu Jun 21 03:51:45 CDT 2007


Maik Trömel wrote:
> My system has:
> Python 2.4.1
> Scipy '0.5.2'
> Numpy '1.0.1'
>
> The Second System was Python 2.5.1, with the same scipy and numpy versions.
> Both system are running with Debian Testing.
>
Something to keep in mind is that your script is using a lot of memory 
(several hundred MB seems likely). This would depend on the algorithms 
used, but with arrays of 2000x2000 double, it could simply be that one 
new call in the C++ code fails because no memory is available to the 
system anymore (new raises bad_alloc if not enough memory can be 
allocated, if I remember correctly).

How much memory do you have on your computer ? Can you check the memory 
behaviour of the application with eg top, etc... ?

David


More information about the Scipy-dev mailing list