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

"IIOException: Data segment out of stream" when calling TIFFImageReader.read()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • tbd
    • 9
    • client-libs

      Please try to load the image attached with 'LoadTest.java' from JDK-8144997

      Output:

      == Loading d664a73588796b59191ad8628065f04a.tif ==
      NOK: read() Data segment out of stream
      javax.imageio.IIOException: Data segment out of stream
              at com.sun.imageio.plugins.tiff.TIFFIFD.checkFieldOffsets(TIFFIFD.java:394)
              at com.sun.imageio.plugins.tiff.TIFFIFD.initialize(TIFFIFD.java:622)
              at com.sun.imageio.plugins.tiff.TIFFImageMetadata.initializeFromStream(TIFFImageMetadata.java:87)
              at com.sun.imageio.plugins.tiff.TIFFImageReader.readMetadata(TIFFImageReader.java:306)
              at com.sun.imageio.plugins.tiff.TIFFImageReader.seekToImage(TIFFImageReader.java:280)
              at com.sun.imageio.plugins.tiff.TIFFImageReader.prepareRead(TIFFImageReader.java:921)
              at com.sun.imageio.plugins.tiff.TIFFImageReader.read(TIFFImageReader.java:1096)
              at javax.imageio.ImageReader.read(ImageReader.java:939)
              at LoadTest.Load(LoadTest.java:59)
              at LoadTest.main(LoadTest.java:78)
              
      At the same time the image could be loaded with Mac OS X Preview or GNOME Image Viewer.
              
      Tested on Mac OS X 10.01 with recent (Dec. 09) build of the client repository.
              
      The image is a part of 'imagetestsuite' (https://code.google.com/p/imagetestsuite/downloads/list)

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

              Created:
              Updated:
              Resolved: