[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/22954] GtkToolkit.createImage / ImageFilter problem
From: |
gcc-bugzilla at gcc dot gnu dot org |
Subject: |
[Bug classpath/22954] GtkToolkit.createImage / ImageFilter problem |
Date: |
16 Oct 2005 01:27:46 -0000 |
A problem occurs when trying to use a an ImageFilter descendant - an example
line of code is (tested with kaffe, latest CVS head):
img = createImage(new FilteredImageSource(img.getSource(), new Rotate()));
The exception generated is:
Exception during event dispatch:
java.lang.NullPointerException
at java.awt.image.FilteredImageSource.addConsumer
(FilteredImageSource.java:73)
at gnu.java.awt.peer.gtk.GtkImage.<init> (GtkImage.java:84)
at gnu.java.awt.peer.gtk.GtkToolkit.createImage (GtkToolkit.java:280)
at gnu.java.awt.peer.GLightweightPeer.createImage
(GLightweightPeer.java:137) at java.awt.Component.createImage
(Component.java:1997)
at TxtButton.drawKey (TxtButton.java:121)
at BasicButton.paint (BasicButton.java:136)
at java.awt.Container$GfxPaintVisitor.visit (Container.java:1693)
at java.awt.Container.visitChild (Container.java:1514)
at java.awt.Container.visitChildren (Container.java:1476)
at java.awt.Container.paint (Container.java:725)
at ZeroPanel.paint (ZeroPanel.java:20)
at java.awt.Container$GfxPaintVisitor.visit (Container.java:1693)
at java.awt.Container.visitChild (Container.java:1514)
at java.awt.Container.visitChildren (Container.java:1476)
at java.awt.Container.paint (Container.java:725)
at ImgPanel.paint (ImgPanel.java:105)
at java.awt.Container$GfxPaintVisitor.visit (Container.java:1693)
at java.awt.Container.visitChild (Container.java:1514)
at java.awt.Container.visitChildren (Container.java:1476)
at java.awt.Container.paint (Container.java:725)
at gnu.java.awt.peer.gtk.GtkComponentPeer.handleEvent
(GtkComponentPeer.java:301)
at java.awt.Component.dispatchEvent (Component.java:2280)
at java.awt.EventQueue.dispatchEvent (EventQueue.java:517)
at java.awt.EventDispatchThread.run (EventDispatchThread.java:75)
at java.lang.VMThread.run (VMThread.java:123)
(BasicButton is a java.awt.Component descendant)
I've also attached a sample project that replicates the problem (the exception
trace above is from a more complex project).
------- Comment #1 from from-classpath at savannah dot gnu dot org 2005-05-25
14:41 -------
note: the sample code doesn't draw anything right now - will add a version that
replicates the exception soon.
------- Comment #2 from from-classpath at savannah dot gnu dot org 2005-05-30
14:05 -------
Sven is reworking stuff in AWT image handling. I hope that this will fix this
bug. I reassing this bug to him.
------- Comment #3 from from-classpath at savannah dot gnu dot org 2005-05-31
08:10 -------
Strange. With both tests, I wasn't able to reproduce the exception, although
nothing seemed to be drawn.
But the good news is that on my tree, I seem to get the same result now on
Classpath and with the JDK.
------- Comment #4 from from-classpath at savannah dot gnu dot org 2005-05-31
09:21 -------
Indeed I'm not getting anything drawn on linux either - still working on the
sample code (I had to leave for a while right after sending it) - I left that
code as it might show another problem (on windows it draws ok, on linux it
doesn't - might the fact that i'm used to peer-less designs).
I'll continue removing stuff from the larger app (the one that throws the
exception) until i have a clean reproduction test.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22954
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug classpath/22954] GtkToolkit.createImage / ImageFilter problem,
gcc-bugzilla at gcc dot gnu dot org <=