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

PNG reader fails to read the image from the input source on merlin beta refresh

XMLWordPrintable

    • beta2
    • generic
    • generic
    • Verified

      PNG reader is unable to read any image available in the input source and throws
      the following Exception. This failure occurs for both File and InputStream
      input sources.

      Here is the Exception :

      java.lang.IllegalArgumentException: LUT has improper length!
      at javax.imageio.ImageTypeSpecifier$Indexed.<init>(ImageTypeSpecifier.java:831)
      at javax.imageio.ImageTypeSpecifier.createIndexed(ImageTypeSpecifier.java:919)
      at com.sun.imageio.plugins.png.PNGImageReader.getImageTypes( PNGImageReader.java:1459)
      at com.sun.imageio.plugins.png.PNGImageReader.readImage( PNGImageReader.java:1343)
      at com.sun.imageio.plugins.png.PNGImageReader.read(PNGImageReader.java:1526)
      at ImgReadPNG.actionPerformed(ImgReadPNG.java:85)
      at java.awt.Button.processActionEvent(Button.java:384)
      at java.awt.Button.processEvent(Button.java:353)
      at java.awt.Component.dispatchEventImpl(Component.java:3474)
      at java.awt.Component.dispatchEvent(Component.java:3341)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:439)
      at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:150)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:131)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)

      This failure occurs on all the platforms and occurs only on beta-refresh.
      It passes on Merlin-beta. I tested this beta-refresh build 63b.
      I also tried using the ImageIO.read() method and got the same failure.
      Herewith I have enclosed the sample code.

      How to reproduce the bug?
      Compile and run the sample code attached. You would get a frame with a 'load'
      button. Click the load button. If you see the above exception in the
      command prompt then the bug is reproduced.

            dricesunw Daniel Rice (Inactive)
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: