Slidebook: ArrayIndexOutOfBoundsException
Issue was reported on QA-33754, import failure during an OMERO workshop.
Server name: workshop.openmicroscopy.org, version: 5.6.6
The failure looks to be due to no pixelOffsets being found resulting in much of the metadata not being parsed. The stack trace is as below:
java.lang.ArrayIndexOutOfBoundsException: 0
at loci.formats.in.SlidebookReader.initFile(SlidebookReader.java:634)
at loci.formats.FormatReader.setId(FormatReader.java:1443)
at loci.formats.ImageReader.setId(ImageReader.java:849)
at ome.formats.importer.OMEROWrapper$4.setId(OMEROWrapper.java:167)
at loci.formats.ReaderWrapper.setId(ReaderWrapper.java:650)
at loci.formats.ChannelFiller.setId(ChannelFiller.java:234)
at loci.formats.ReaderWrapper.setId(ReaderWrapper.java:650)
at loci.formats.ChannelSeparator.setId(ChannelSeparator.java:293)
at loci.formats.ReaderWrapper.setId(ReaderWrapper.java:650)
at loci.formats.Memoizer.setId(Memoizer.java:662)
at loci.formats.ReaderWrapper.setId(ReaderWrapper.java:650)
I will speak to the person today and to see if the slidebook reader can be an option
I am also experiencing this issue on 7.0.1, trying to interface with the Java library using the documentation.
@stephenshank, do you have a sample file that we could use to reproduce the exception? If you need a suitable upload location then we recommend using https://zenodo.org/
I have shared data via email. For what it's worth, the standard output reports finding over two hundred pixel offsets, but the script still fails at the same exact location. The bug is also rather pervasive, occurring in all six datasets that I possess.
Thank you so much for looking into this! I will try to convince my collaborator to share some data publicly on Zenodo, to keep with the spirit of openness of the project.
Thanks again for providing the sample file Stephen. For the rest of the OME team, the file is available under inbox/gh-4066