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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: 9
    • Fix Version/s: tbd_major
    • Component/s: client-libs
    • Labels:

      Description

      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)

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: