Login  Register

Re: Out of Memory Problems

Posted by dscho on Jul 25, 2013; 3:01pm
URL: http://imagej.273.s1.nabble.com/Out-of-Memory-Problems-tp5004033p5004142.html

Hi Hans Wurscht (your real name? If so: awesome!),

On Thu, 25 Jul 2013, Hans Wurscht wrote:

> I experience the same problem when using the doCommand in a macro:
>
> openImage();
>
> macro "open image in new thread"{
> newImage("Untitled", "8-bit white", 400, 400, 1);
> }
>
> function openImage(){
> setBatchMode(true);
> for(i=0;i<1000;i++){
> doCommand("open image in new thread");
> wait(100);
> }
> wait(3000);
> run("Close All");
> setBatchMode(false);
> }
>
> Once finished, you can see that the threads are terminated, but the
> memory is not freed up.

Most likely, the doCommand()-started threads terminate *after*
setBatchMode(false).

> Running the garbage collector from the menu does not help. I use the
> doComand option to run some live analyis during timelapse recordings,
> and this bug leads to an out of memory error and failue of the
> analysis.
>
> I tried IJ 1.47u, 1.48a with openJDK 6 / 7 on Ubuntu 12.04 32bit
> without success.

Are you using Fiji? Have you tried upgrading to IJ 1.48a (the current
version)?

Ciao,
Johannes

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html