help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: error: memory exhausted -- trying to return to prompt


From: Quentin Spencer
Subject: Re: error: memory exhausted -- trying to return to prompt
Date: Mon, 09 Jul 2007 07:56:35 -0500
User-agent: Thunderbird 2.0.0.4 (X11/20070615)

rambovn wrote:
Hallo,
I am trying to find the minimum of a function, I already used samin and
fminunc, and I got this above message of both functions after 2-3 hours
running.  Does anybody know the reason why I got this message and how to fix
it? I don't think it is because of lacking of memory

You need to provide more detail about which octave version you're using, which OS, and what kind of hardware. However, based on your description, I'm going to make a guess. The only time I ever saw this behavior was on the 2.1.73 version on cygwin, when using dynamically loaded functions. In this case, there is apparently a memory leak that consumes a few bytes of memory for every function call. In a script that runs for hours and calls such functions millions of times, this can eventually consume all of a computer's resources. I think this is a known problem, but it was never clear how to fix it because it's only on cygwin, which implies that it could very well be a compiler or cygwin bug. If my guess is correct, I would suggest trying the 2.9.12 binary that has been discussed on this list recently.

Quentin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]