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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: client-libs
    • Labels:

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            bpb Brian Burkhalter
            Reporter:
            avstepan Alexander Stepanov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: