<html>
<head>
<base href="http://fiji.sc/bugzilla/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Headless ImageJ2 takes about a minute extra to exit after finishing script or macro"
href="http://fiji.sc/bugzilla/show_bug.cgi?id=874">874</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Headless ImageJ2 takes about a minute extra to exit after finishing script or macro
</td>
</tr>
<tr>
<th>Product</th>
<td>Fiji
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P5
</td>
</tr>
<tr>
<th>Component</th>
<td>ImageJ2
</td>
</tr>
<tr>
<th>Assignee</th>
<td>imagej-bugs@imagej.net
</td>
</tr>
<tr>
<th>Reporter</th>
<td>polleke@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=188" name="attach_188" title="ImageJ2 properties">attachment 188</a> <a href="attachment.cgi?id=188&action=edit" title="ImageJ2 properties">[details]</a></span>
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>