<html>
    <head>
      <base href="http://fiji.sc/bugzilla/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEEDSINFO "
   title="NEEDSINFO - Multithreading problem in javascript macro"
   href="http://fiji.sc/bugzilla/show_bug.cgi?id=854#c4">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_NEEDSINFO "
   title="NEEDSINFO - 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:thomas.siegmund@evotec.com" title="Thomas Siegmund <thomas.siegmund@evotec.com>"> <span class="fn">Thomas Siegmund</span></a>
</span></b>
        <pre>Created <span class=""><a href="attachment.cgi?id=204" name="attach_204" title="test script">attachment 204</a> <a href="attachment.cgi?id=204&action=edit" title="test script">[details]</a></span>
test script

Not what I would call a minimal test case, but I have at least tried to trim 
it down to something reasonable.

To reproduce the problem, please download a test image from Dropbox (60Mb tiff,
too big to attach here):

<a href="https://www.dropbox.com/s/8nvb42a0hum8rjg/test_image.tiff">https://www.dropbox.com/s/8nvb42a0hum8rjg/test_image.tiff</a> 

Put the image in an otherwise empty directory, run "multithreading-bug_ij.js".

The script will ask for the image directory and open results and log windows.
it will then analyze the image once single threaded and then twice
multithreaded. On my systems in multithreaded mode it will log the error from
line 296 usually several times:

 ERROR: number of nuclei != number of ROIS !!!!: test_image.tiff 109, nNuclei
0, nucleiRoisLength 1

The number and details of the errors will vary from run to run.

Multithreading can be switched off completely in line 66. In this mode I have
never seen a problem with the analysis.

Best

Thomas</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>