<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hi,
<div class=""><br class="">
</div>
<div class="">Thank you for raising this bug. If you have any smaller files (< 2GB) that reproduce the same behaviour you can upload them to
<a href="https://www.openmicroscopy.org/qa2/qa/upload/" class="">https://www.openmicroscopy.org/qa2/qa/upload/</a>, otherwise we will arrange FTP details for you to transfer the larger original file for testing.</div>
<div class="">I have opened a Bio-Formats Trello card to track this issue: <a href="https://trello.com/c/dDcSZtur/296-indexoutofboundsexception" class="">https://trello.com/c/dDcSZtur/296-indexoutofboundsexception</a></div>
<div class=""><br class="">
</div>
<div class="">With Thanks,</div>
<div class="">David Gault</div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On 23 Nov 2018, at 18:05, Guilhem Chenon <<a href="mailto:guilhem.chenon@espci.fr" class="">guilhem.chenon@espci.fr</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div text="#000000" bgcolor="#FFFFFF" class="">
<p class=""><font face="Karla" class="">Hello,</font></p>
<p class=""><font face="Karla" class="">I am having trouble with several random .nd2 files which will  not open with Bio-Formats plugin either in ImageJ or Matlab. When I call bfGetReader on the file, I get this error message:</font></p>
<p class=""><font face="Karla" class="">Error using bfGetReader (line 85)<br class="">
Java exception occurred:<br class="">
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0<br class="">
<br class="">
    at java.util.ArrayList.rangeCheck(ArrayList.java:653)<br class="">
<br class="">
    at java.util.ArrayList.get(ArrayList.java:429)<br class="">
<br class="">
    at loci.formats.FormatReader.getSizeC(FormatReader.java:689)<br class="">
<br class="">
    at loci.formats.in.NativeND2Reader.initFile(NativeND2Reader.java:1348)<br class="">
<br class="">
    at loci.formats.FormatReader.setId(FormatReader.java:1401)<br class="">
<br class="">
    at loci.formats.DelegateReader.setId(DelegateReader.java:291)<br class="">
<br class="">
    at loci.formats.ImageReader.setId(ImageReader.java:835)<br class="">
<br class="">
    at loci.formats.ReaderWrapper.setId(ReaderWrapper.java:651)<br class="">
<br class="">
    at loci.formats.ChannelFiller.setId(ChannelFiller.java:223)<br class="">
<br class="">
    at loci.formats.ReaderWrapper.setId(ReaderWrapper.java:651)<br class="">
<br class="">
    at loci.formats.ChannelSeparator.setId(ChannelSeparator.java:289)<br class="">
</font></p>
<p class=""><font face="Karla" class="">The original file is quite big (10Gb), so I can only upload it through FTP. When I crop the file in NIS, interestingly, it works, so for now my workaround is to crop the image itself because apparently NIS  re-encodes
 channels and timepoints during cropping so I can open it with Bio-Formats. <br class="">
</font></p>
<p class=""><font face="Karla" class="">Moreover, these problematic files open fine with the ImageJ ND2 Reader plugin (<a class="moz-txt-link-freetext" href="https://imagej.nih.gov/ij/plugins/nd2-reader.html">https://imagej.nih.gov/ij/plugins/nd2-reader.html</a>).
<br class="">
</font></p>
<p class=""><font face="Karla" class="">Thank you for your time.</font></p>
<p class=""><font face="Karla" class="">Best regards,</font><br class="">
</p>
<div class="moz-signature">-- <br class="">
Guilhem CHENON <br class="">
LCMD - ESPCI Paris</div>
<div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" class=""><br class="">
<table style="border-top: 1px solid #D3D4DE;" class="">
<tbody class="">
<tr class="">
<td style="width: 55px; padding-top: 18px;" class=""><a href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank" class=""><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png" alt="" width="46" height="29" style="width: 46px; height: 29px;" class=""></a></td>
<td style="width: 470px; padding-top: 17px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;" class="">
Garanti sans virus. <a href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank" style="color: #4453ea;" class="">
www.avg.com</a> </td>
</tr>
</tbody>
</table>
<a href="x-msg://3/#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1" class=""></a></div>
</div>
_______________________________________________<br class="">
ome-users mailing list<br class="">
<a href="mailto:ome-users@lists.openmicroscopy.org.uk" class="">ome-users@lists.openmicroscopy.org.uk</a><br class="">
http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
<br>
<span style="font-size:10pt;">The University of Dundee is a registered Scottish Charity, No: SC015096</span>
</body>
</html>