bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug awt/28447] New: Exceptions in ImageIO.write


From: hendrich at informatik dot uni-hamburg dot de
Subject: [Bug awt/28447] New: Exceptions in ImageIO.write
Date: 20 Jul 2006 15:22:00 -0000

The ImageIO JPEG ImageWriter is broken (the PNG writer seems to work). 
Run the  attached testcase and provide the name of an image file as the 
first parameter. Hint: use a gif file, because the GIF ImageReader is fast
(thanks, Sven!) while the JPEG reader is very unreliable and very slow.

jamvm JPEGWriter gnu-dark.gif
java.lang.ClassCastException: [I
   at gnu.java.awt.Buffers.createBufferFromData(Buffers.java:122)
   at java.awt.image.ColorModel.getPixelFromArray(ColorModel.java:317)
   at java.awt.image.ColorModel.getAlpha(ColorModel.java:358)
   at java.awt.image.ColorModel.getRGB(ColorModel.java:380)
   at
gnu.java.awt.peer.gtk.GdkPixbufDecoder$GdkPixbufWriter.write(GdkPixbufDecoder.java:520)
   at javax.imageio.ImageIO.write(ImageIO.java:831)
   at javax.imageio.ImageIO.write(ImageIO.java:789)
   at javax.imageio.ImageIO.write(ImageIO.java:763)
   at JPEGWriter.main(JPEGWriter.java:10)


The app I was testing just reported a NPE:

-I- writeJPEGFile: using
gnu.java.awt.peer.gtk.GdkPixbufDecoder$GdkPixbufWriter@
42dd6ec8
Exception in thread "GdkPixbufWriter" java.lang.NullPointerException
   at
gnu.java.awt.peer.gtk.GdkPixbufDecoder$GdkPixbufWriter.run(GdkPixbufDecode
r.java:614)
   at java.lang.Thread.run(Thread.java:740)
Exception during event dispatch:
java.lang.NullPointerException
   at niffler.ImageUtils.writeJPEGFile(ImageUtils.java:728)


-- 
           Summary: Exceptions in ImageIO.write
           Product: classpath
           Version: 0.92
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: awt
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hendrich at informatik dot uni-hamburg dot de


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28447





reply via email to

[Prev in Thread] Current Thread [Next in Thread]