<div dir="ltr">Was it black on yellow or red?<div><br>Robby</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Oct 7, 2013 at 10:32 AM, Neil Toronto <span dir="ltr"><<a href="mailto:neil.toronto@gmail.com" target="_blank">neil.toronto@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have a long-running random simulation that spits out debug messages. I extrapolated that it would take 20 hours to get 5,000,000 samples, and let it run for a day. Here's what I saw when I returned:<br>
<br>
<br>
Welcome to DrRacket, version 5.90.0.9--2013-10-04(876995d5/<u></u>d) [3m].<br>
Language: typed/racket [custom]; memory limit: 1024 MB.<br>
starting...<br>
sample-search-tree returned failure<br>
refinement-sample-point returned #f<br>
refinement-sample-point returned #f<br>
refinement-sample-point returned #f<br>
refinement-sample-point returned #f<br>
refinement-sample-point returned #f<br>
refinement-sample-point returned #f<br>
refinement-sample-point returned #f<br>
refinement-sample-point returned #f<br>
refinement-sample-point returned #f<br>
refinement-sample-point returned #f<br>
refinement-sample-point returned #f<br>
refinement-sample-point returned #f<br>
refinement-sample-point returned #f<br>
refinement-sample-point returned #f<br>
refinement-sample-point returned #f<br>
refinement-sample-point returned #f<br>
refinement-sample-point returned #f<br>
refinement-sample-point returned #f<br>
refinement-sample-point returned #f<br>
refinement-sample-point returned #f<br>
refinement-sample-point returned #f<br>
i = 100<br>
refinement-sample-point returned #f<br>
refinement-sample-point returned #f<br>
<br>
[...]<br>
<br>
refinement-sample-point returned #f<br>
refinement-sample-point returned #f<br>
refinement-sample-point returned #f<br>
refinement-sample-point returned #f<br>
refinement-sample-point returned #f<br>
refinement-sample-point returned #f<br>
refinement-sample-point returned #f<br>
i = 2605500<br>
refinement-sample-point returned #f<br>
refinement-sample-point returned #f<br>
refinement-sample-point returned #f<br>
refinement-sample-point returned #f<br>
refinement-sample-point returned #f<br>
refinement-sample-point returned #f<br>
refinement-sample-point returned #f<br>
refinement-sample-point returned #f<br>
refinement-sample-point returned #f<br>
refinement-sample-point returned #f<br>
refinement-sample-point returned #f<br>
<br>
Interactions disabled<br>
|<br>
<br>
560157:0 720.77MB<br>
<br>
<br>
Fear my ASCII art status bar.<br>
<br>
"720.77MB" is what I got after clicking the GC indicator. (Before, it was about 300MB.) There were no command-line messages from DrRacket.<br>
<br>
I don't think this is an out-of-memory problem. DrRacket has been good about asking for more during other simulations, my limit is set to 1024MB, and I really doubt I'm allocating a 304MB temporary object.<br>
<br>
I wrote a small program to print 600000 debug messages, thinking it was a limit on the number of lines in the REPL, and it ran to completion.<br>
<br>
For full disclosure: I paused and restarted DrRacket from the command line (fg; ctrl-z; bg) a few times while the simulation was running, so I could use my laptop unplugged without draining the battery.<br>
<br>
Besides running out of memory, what else could cause a program to halt with "Interactions disabled", and how can I avoid it?<br>
<br>
Neil ⊥<br>
_________________________<br>
Racket Developers list:<br>
<a href="http://lists.racket-lang.org/dev" target="_blank">http://lists.racket-lang.org/<u></u>dev</a><br>
</blockquote></div><br></div>