Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8145014

"IIOException: Couldn't seek!" when calling TIFFImageReader.getNumImages()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • client-libs

      Tested on Ubuntu 14.04 Linux with current (09 Dec.) build of client repository.

      Please compile/run 'LoadTest.java' from JDK-8144997 and try to load the image attached.

      Output:
      == Loading 6cd02db6f3688efdd705c28ffcb9a3d3.tif ==
      NOK: getNumImages() Couldn't seek!
      javax.imageio.IIOException: Couldn't seek!
              at com.sun.imageio.plugins.tiff.TIFFImageReader.locateImage(TIFFImageReader.java:227)
              at com.sun.imageio.plugins.tiff.TIFFImageReader.getNumImages(TIFFImageReader.java:249)
              at LoadTest.Load(LoadTest.java:47)
              at LoadTest.main(LoadTest.java:76)
      Caused by: java.io.EOFException
              at javax.imageio.stream.ImageInputStreamImpl.readShort(ImageInputStreamImpl.java:229)
              at javax.imageio.stream.ImageInputStreamImpl.readUnsignedShort(ImageInputStreamImpl.java:242)
              at com.sun.imageio.plugins.tiff.TIFFImageReader.locateImage(TIFFImageReader.java:214)
              ... 3 more

      But the image could be loaded using, e.g., GNOME Image Viewer and even old (JAI-based) java code. The issue is also reproducible on Mac OS X 10.10.

            bpb Brian Burkhalter
            avstepan Alexander Stepanov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: