Error "Negative position" reading .AIM files
Posted: Thu Sep 18, 2014 2:29 pm
Dear all,
I'm trying to read a .AIM file using bio-formats (v5.0.2) and the function bfopen.m. The file is 2.2GB and contains 1115 slices. The function successfully reads the slices #1 to #1031 (using the function bfGetPlane.m), but give me the error below from slice #1032 to #1115. I uploaded the file on the OMERO.qa plateform
http://qa.openmicroscopy.org.uk/qa/feedback/9541/
Thanks in advance for your help!!
Java exception occurred:
java.lang.IllegalArgumentException: Negative position
at sun.nio.ch.FileChannelImpl.read(Unknown Source)
at loci.common.NIOByteBufferProvider.allocateDirect(NIOByteBufferProvider.java:131)
at loci.common.NIOByteBufferProvider.allocate(NIOByteBufferProvider.java:116)
at loci.common.NIOFileHandle.buffer(NIOFileHandle.java:551)
at loci.common.NIOFileHandle.seek(NIOFileHandle.java:273)
at loci.common.RandomAccessInputStream.seek(RandomAccessInputStream.java:154)
at loci.formats.in.AIMReader.openBytes(AIMReader.java:72)
at loci.formats.ImageReader.openBytes(ImageReader.java:431)
at loci.formats.ChannelFiller.openBytes(ChannelFiller.java:193)
at loci.formats.ChannelSeparator.openBytes(ChannelSeparator.java:222)
at loci.formats.ChannelSeparator.openBytes(ChannelSeparator.java:155)
I'm trying to read a .AIM file using bio-formats (v5.0.2) and the function bfopen.m. The file is 2.2GB and contains 1115 slices. The function successfully reads the slices #1 to #1031 (using the function bfGetPlane.m), but give me the error below from slice #1032 to #1115. I uploaded the file on the OMERO.qa plateform
http://qa.openmicroscopy.org.uk/qa/feedback/9541/
Thanks in advance for your help!!
Java exception occurred:
java.lang.IllegalArgumentException: Negative position
at sun.nio.ch.FileChannelImpl.read(Unknown Source)
at loci.common.NIOByteBufferProvider.allocateDirect(NIOByteBufferProvider.java:131)
at loci.common.NIOByteBufferProvider.allocate(NIOByteBufferProvider.java:116)
at loci.common.NIOFileHandle.buffer(NIOFileHandle.java:551)
at loci.common.NIOFileHandle.seek(NIOFileHandle.java:273)
at loci.common.RandomAccessInputStream.seek(RandomAccessInputStream.java:154)
at loci.formats.in.AIMReader.openBytes(AIMReader.java:72)
at loci.formats.ImageReader.openBytes(ImageReader.java:431)
at loci.formats.ChannelFiller.openBytes(ChannelFiller.java:193)
at loci.formats.ChannelSeparator.openBytes(ChannelSeparator.java:222)
at loci.formats.ChannelSeparator.openBytes(ChannelSeparator.java:155)