help-octave
[Top][All Lists]
Advanced

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

Re: Print plot error


From: Dmitri A. Sergatskov
Subject: Re: Print plot error
Date: Sat, 22 Aug 2009 14:16:52 -0500

On Sat, Aug 22, 2009 at 1:34 PM, Ben Abbott<address@hidden> wrote:

>
> Never mind the advice. I've just run the code below ...
>
> more off
> filename = "myRandomFrames";
> for n = 1:1000
>   imagesc (rand (8))
>   axis image
>   fprintf ("Printing frame %d\n", n);
>   print  (filename, "-dpng");
> endfor
>
> I get the same error you reported.
>
> sh: fork: Resource temporarily unavailable
> /sw/bin/gnuplot: fork: Resource temporarily unavailable
> warning: broken pipe -- some output may be lost
>


On my linux this gets killed by ulimit set on number of proceses
(it is set to 1024 and I have quite a few things running).
For some reason, octave leaves a lot of <defunct> gnuplot proceses.
E.g. after running this loop for 100 times (it finishes without error)
I still get:

 ps axu | grep gnuplot | wc -l
103

dima     16076  0.1  0.5 239608 11280 pts/5    S+   14:09   0:00
/usr/local/bin/gnuplot
dima     16077  0.4  0.1 136048  2548 pts/5    S+   14:09   0:01 gnuplot_x11
dima     16080  0.0  0.0      0     0 pts/5    Z+   14:09   0:00
[gnuplot] <defunct>
....
dima     16501  0.1  0.0      0     0 pts/5    Z+   14:09   0:00
[gnuplot] <defunct>
dima     16513  0.0  0.0  89008   792 pts/2    S+   14:13   0:00 grep gnuplot

So there is 100 <defunct> gnuplots.
They do go away when I quit octave.

I am not sure if this is an OS issue, or octave's ...

Sincerely,

Dmitri.
--



reply via email to

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