-
Bug
-
Resolution: Fixed
-
P3
-
9
-
b133
Tested on Ubuntu 14.04 Linux with current (09 Dec.) build of client repository.
Please compile/run 'LoadTest.java' fromJDK-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.
Please compile/run 'LoadTest.java' from
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.