Bugzilla – Bug 874 |
Headless ImageJ2 takes about a minute extra to exit after finishing script or macro |
Last modified: 2016-02-26 14:35:34 CST |
⚠ |
NOTICE! This is a static HTML version of a legacy Fiji BugZilla bug. The Fiji project now uses GitHub Issues for issue tracking. Please file all new issues there. |
Headless ImageJ2 takes about a minute extra to exit after finishing script or... |
|
|
|
||||||||||||||||||||||||||||||||||||||||||
|
|
Created attachment 188 ImageJ2 properties In the daily version of ImageJ2, when running a script like this: ./ImageJ-linux64 --headless -macro scripts/short.js Takes about a minute after completion of the script to return to command line. The script contains "print('foo')". It also happens with macros (.ijm). I can reproduce this on a wide variety of linux installs and JRE's. But it only happens in pure ImageJ2, when installing the daily version of Fiji it does not happen. When adding eval("script", "System.exit(0);"); it is fixed. Using run('Quit'); has no effect. I'll attach the Java heap dump while waiting for ImageJ to exit. The ImageJ properties output has been attached already.
Created attachment 189 Java heap dump Java heap dump while waiting for ImageJ2 to finish
> I guess you can't reproduce this on MacOSx Actually, I cannot reproduce on OS X, nor on an Ubuntu Linux 12.04 system with a Fiji updated just now. Furthermore, I do not have the first clue how to debug an issue like this, when there is an unhelpful stack trace. If my job depended on debugging it, I would do a slew of web searches, and send some mails to relevant Java mailing list(s). Sorry I can't be more helpful. :-(