bioformats icon indicating copy to clipboard operation
bioformats copied to clipboard

Slidebook: ArrayIndexOutOfBoundsException

Open dgault opened this issue 2 years ago • 6 comments

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)

dgault avatar Aug 04 '23 10:08 dgault

I will speak to the person today and to see if the slidebook reader can be an option

jburel avatar Aug 04 '23 10:08 jburel

I am also experiencing this issue on 7.0.1, trying to interface with the Java library using the documentation.

stephenshank avatar Dec 01 '23 01:12 stephenshank

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

dgault avatar Dec 01 '23 12:12 dgault

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.

stephenshank avatar Dec 04 '23 18:12 stephenshank

Thanks again for providing the sample file Stephen. For the rest of the OME team, the file is available under inbox/gh-4066

dgault avatar Dec 05 '23 10:12 dgault