bug-classpath
[Top][All Lists]
Advanced

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

[Bug awt/27507] IllegalArgumentException when trying to draw a non-exist


From: yvan dot norsa at gmail dot com
Subject: [Bug awt/27507] IllegalArgumentException when trying to draw a non-existent Image with Graphics2D
Date: 8 May 2006 19:59:12 -0000


------- Comment #1 from yvan dot norsa at gmail dot com  2006-05-08 19:59 
-------
Created an attachment (id=11414)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11414&action=view)
test case

Here is the stacktrace corresponding to the attached testcase :
Exception during event dispatch:
java.lang.IllegalArgumentException: width (=-1) and height (=-1) must be > 0
   at
java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:366)
   at java.awt.image.BufferedImage.<init>(BufferedImage.java:201)
   at
gnu.java.awt.peer.gtk.GdkPixbufDecoder$GdkPixbufReader.setPixels(GdkPixbufDecoder.java:589)
   at java.awt.image.MemoryImageSource.sendPicture(MemoryImageSource.java:255)
   at
java.awt.image.MemoryImageSource.startProduction(MemoryImageSource.java:188)
   at
gnu.java.awt.peer.gtk.GdkPixbufDecoder.createBufferedImage(GdkPixbufDecoder.java:720)
   at gnu.java.awt.peer.gtk.GdkGraphics2D.drawImage(GdkGraphics2D.java:608)
   at gnu.java.awt.peer.gtk.GdkGraphics2D.drawImage(GdkGraphics2D.java:1262)
   at DrawImage$1.paint(DrawImage.java:15)
   at javax.swing.JComponent.paintChildrenOptimized(JComponent.java:2059)
   at javax.swing.JComponent.paintChildren(JComponent.java:1832)
   at javax.swing.JComponent.paint(JComponent.java:1765)
   at javax.swing.JLayeredPane.paint(JLayeredPane.java:648)
   at javax.swing.JComponent.paintChildrenOptimized(JComponent.java:2059)
   at javax.swing.JComponent.paintChildren(JComponent.java:1832)
   at javax.swing.JComponent.paint(JComponent.java:1765)
   at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:2209)
   at javax.swing.JComponent.paint(JComponent.java:1739)
   at java.awt.Container$GfxPaintVisitor.visit(Container.java:1906)
   at java.awt.Container.visitChild(Container.java:1721)
   at java.awt.Container.visitChildren(Container.java:1692)
   at java.awt.Container.paint(Container.java:766)
   at
gnu.java.awt.peer.gtk.GtkComponentPeer.paintComponent(GtkComponentPeer.java:325)
   at
gnu.java.awt.peer.gtk.GtkComponentPeer.handleEvent(GtkComponentPeer.java:289)
   at java.awt.Component.dispatchEventImpl(Component.java:5063)
   at java.awt.Container.dispatchEventImpl(Container.java:1741)
   at java.awt.Window.dispatchEventImpl(Window.java:642)
   at java.awt.Component.dispatchEvent(Component.java:2322)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:474)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:75)


-- 


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





reply via email to

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