NOTICE! This is a static HTML version of a legacy LOCI Software ticket.

LOCI projects are now located on GitHub. The Bio-Formats project can be found here.

Ticket #548 (closed defect: fixed)

Opened 2010-09-03T05:59:43-05:00

Last modified 2010-09-03T06:01:34-05:00

Support OME-XML with BinData.Length = 0

Reported by: callan Owned by: callan
Priority: major Milestone:
Component: bio-formats Severity: serious
Keywords: Cc:
Blocked By: Blocking:


It should be possible to at least initialize the reader state when BinData elements have a zero length. The reader stack is:

  • MinMaxCalculator
  • ChannelSeparator
  • ChannelFiller
  • ImageReader (OMEXMLReader)

Currently the ChannelFiller makes an attempt to read at least one pixel from the file, causing the following exception:

Caused by: java.lang.ArrayIndexOutOfBoundsException
java.lang.System.arraycopy(Native Method)

Change History

comment:1 Changed 2010-09-03T05:59:51-05:00 by callan

  • Owner changed from melissa to callan
  • Status changed from new to assigned

comment:2 Changed 2010-09-03T06:01:34-05:00 by callan

  • Status changed from assigned to closed
  • Resolution set to fixed

(In [6876]) Some further test case cleanup. Added a check to ChannelFiller to handle cases where reading the first pixel of a file fails, which is now logged rather than being fatal. Also added a test case for the functionality. (Fixes #548)