help-octave
[Top][All Lists]
Advanced

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

Re: How to either diagnose or workaround code that makes octave get stuc


From: marco atzeri
Subject: Re: How to either diagnose or workaround code that makes octave get stuck
Date: Sun, 01 Jul 2012 08:14:19 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1

On 7/1/2012 7:13 AM, andrewcd wrote:
Hi All,

I've got a long (~6 hour) monte carlo simulation that I run overnight.
Recent versions of it have started freezing, maybe one iteration in 100.
This is annoying because I leave the program chugging away, and then come
back the next morning finding it stuck only a few repetitions in.  No error
message, the OS is quck and crisp, the editor and the rest of the QT
frontend are quick and fine, just no movement in the terminal, and the
command prompt tied up.

So, two questions:
1.  Is there something that I can do to get octave to skip past a set of
code whenever it has taken to long to run?
2.  Is it possible to break a process, and then go back and find out what in
the (output suppressed) script got octave stuck?

I'm using 3.2.3 in QtOctave, on a 64 bit Ubuntu 10.04 machine.

Thanks in advance for any help.

--

QtOctave is not Octave but a GUI external at the project that
communicates with Octave :

http://octave-gsoc2012.blogspot.it/2012/06/why-not-take-existing-gui.html

Have you tried to use just Octave  ?

For debugging, it is surely better and to store all the log use the
diary command

http://www.gnu.org/software/octave/doc/interpreter/Diary-and-Echo-Commands.html#Diary-and-Echo-Commands
http://www.gnu.org/software/octave/doc/interpreter/Debugging.html#Debugging

Regards
Marco




reply via email to

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