<html>
<head>
<base href="http://fiji.sc/bugzilla/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:ctrueden@wisc.edu" title="Curtis Rueden <ctrueden@wisc.edu>"> <span class="fn">Curtis Rueden</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WONTFIX - Multithreading problem in javascript macro"
href="http://fiji.sc/bugzilla/show_bug.cgi?id=854">bug 854</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEEDSINFO
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>ctrueden@wisc.edu
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>WONTFIX
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WONTFIX - Multithreading problem in javascript macro"
href="http://fiji.sc/bugzilla/show_bug.cgi?id=854#c5">Comment # 5</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WONTFIX - Multithreading problem in javascript macro"
href="http://fiji.sc/bugzilla/show_bug.cgi?id=854">bug 854</a>
from <span class="vcard"><a class="email" href="mailto:ctrueden@wisc.edu" title="Curtis Rueden <ctrueden@wisc.edu>"> <span class="fn">Curtis Rueden</span></a>
</span></b>
<pre>I downloaded your script and your TIFF, and was able to reproduce the problem
on my OS X machine. Impressive script, Thomas!
Unfortunately, debugging concurrency issues is one of the more difficult and
time consuming programming tasks. And ImageJ 1.x is rife with concurrency
problems lurking under the hood, which most people rarely encounter, but which
advanced script writers such as yourself sometimes bump into.
I really appreciate that you would love some help debugging your code, but
given the complexity of the script, in this case I think there is no option but
for you, or someone else in your group, to dig in more deeply and identify the
root cause of the issue. Ultimately, you have a large function being called by
many threads at once into IJ1 data structures which are probably not
thread-safe, so some synchronized blocks may be in order (and I'm not sure how
you do that in JavaScript).
Two parting suggestions:
1) You could recast your code as a Java plugin and use an IDE with a dedicated
debugger, memory profiler, and many other goodies. Debugging concurrency issues
from Eclipse (by attaching to a running Fiji as a remote debugger; see
<a href="http://fiji.sc/Debugging_intro#Attaching_to_ImageJ_instances">http://fiji.sc/Debugging_intro#Attaching_to_ImageJ_instances</a>) will be easier
than debugging things from the ImageJ Script Editor in JavaScript with no such
tools.
2) You could post a Minimal, Complete and Verifiable example on StackOverflow
(<a href="http://stackoverflow.com/help/mcve">http://stackoverflow.com/help/mcve</a>) and hope that someone from the larger
community of developers there has additional suggestions or insight.
I wish you the best of luck with it.</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>