Re: [kaffe] ppc: mouse keyboard problems with kaffe 1.1.7rc1
On Sat, 2006-03-25 at 16:56 +0100, Dalibor Topic wrote: > On Tue, 2006-03-21 at 21:50 +0100, Bernhard Reiter wrote: > > > Yes, as far as I can see they are not platform specific. The mouse > > > events issue seems to be solved now in a generic way. See: > > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26641 > > > > > > i) try to test another version of classpath. I am unsure how to do this > > > > with kaffe without a new Debian version, so I might try jamvm, if this > > > > is > > > > easier on Debian. > > > > A test with jamvm and classpath 0.90 (Debian package) plus the patch, > > makes the testcase work and the yahoo go applet receive mouse events. > > I've just tried it out again, and it works with rc2 now. I don't know if > the KeyEvent issue was fixed in GNU Classpath as well. Mark? Sorry, that issue is still not fixed. It is tracked as: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26703 Mark signature.asc Description: This is a digitally signed message part ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] ppc: mouse keyboard problems with kaffe 1.1.7rc1
On Tue, 2006-03-21 at 21:50 +0100, Bernhard Reiter wrote: > > Yes, as far as I can see they are not platform specific. The mouse > > events issue seems to be solved now in a generic way. See: > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26641 > > > > i) try to test another version of classpath. I am unsure how to do this > > > with kaffe without a new Debian version, so I might try jamvm, if this is > > > easier on Debian. > > A test with jamvm and classpath 0.90 (Debian package) plus the patch, > makes the testcase work and the yahoo go applet receive mouse events. I've just tried it out again, and it works with rc2 now. I don't know if the KeyEvent issue was fixed in GNU Classpath as well. Mark? cheers, dalibor topic ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] ppc: mouse keyboard problems with kaffe 1.1.7rc1
Hi Mark, Am Freitag, 17. März 2006 09:41 schrieb Mark Wielaard: > On Thu, 2006-03-16 at 20:05 +0100, Bernhard Reiter wrote: > > Next I wanted this on powerpc and tried > > > > b) kaffe-1.1.7rc1 (my Debian backport on ppc): > > The go applet did display fine, but did not receive mouse or key events. > > Out of curiousiy I went deeper into the problem and thought it might be > > a ppc related problem, because it seemed to work on ia586 with seemingly > > the same version. > > It would be nice if some kaffe hacker could explain the relation between > these versions. Which came before the other and what is the default awt > implementation for both? The Mandriva version was packaged by Mandriva, so I do not know if other Kaffe people would know. I believe that gtk-peer is the default implementation, though. > Yes, as far as I can see they are not platform specific. The mouse > events issue seems to be solved now in a generic way. See: > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26641 > > i) try to test another version of classpath. I am unsure how to do this > > with kaffe without a new Debian version, so I might try jamvm, if this is > > easier on Debian. A test with jamvm and classpath 0.90 (Debian package) plus the patch, makes the testcase work and the yahoo go applet receive mouse events. Bernhard ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] ppc: mouse keyboard problems with kaffe 1.1.7rc1
Am Donnerstag, 16. März 2006 20:05 schrieb Bernhard Reiter: > Am Mittwoch, 15. März 2006 20:47 schrieb Mark Wielaard: > > Thanks. I see no key event is ever received by the Frame (this is on x86 > > for me). I have filed this as bug #26703 > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26703 > > Do you happen to know if this ever worked with kaffe in the past? > > To give you my full history: > First I have tried: > a) Mandriva (ia586) with their cooker kaffe package, probably > Kaffe CVS from CVS (20060204) worked fine for me on the games.yahoo.com/go > applets, I believe that this will use the classpath implementation of > swing. Correction I was using: 0:1.1.7-0.rc1.3mdk, See history section of http://cvs.mandriva.com/cgi-bin/cvsweb.cgi/contrib-SPECS/kaffe/kaffe.spec which probably is 1.1.7rc1. > Next I wanted this on powerpc and tried > > b) kaffe-1.1.7rc1 (my Debian backport on ppc): > The go applet did display fine, but did not receive mouse or key events. Thinking about this: It might have been: No mouse events only, I cannot say for sure. At least the testcase is likely to be different from the frame receiving the events. > ii) Retest my two testcases for Mandriva. contrib kaffe package 0:1.1.7-0.rc1.3mdk: The TestMouse works, the TestKeyEvents does not. So TestKeyEvents did never work in the kaffe versions I have tested. ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] ppc: mouse keyboard problems with kaffe 1.1.7rc1
Hi Bernhard, On Thu, 2006-03-16 at 20:05 +0100, Bernhard Reiter wrote: > Am Mittwoch, 15. März 2006 20:47 schrieb Mark Wielaard: > > Thanks. I see no key event is ever received by the Frame (this is on x86 > > for me). I have filed this as bug #26703 > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26703 > > thanks for testing and filing the bug. We still haven't fixed it, but I believe we understand the issue now. See the bug report for some additional comments on where the problem is. > > Do you happen to know if this ever worked with kaffe in the past? > > To give you my full history: > First I have tried: > a) Mandriva (ia586) with their cooker kaffe package, probably > Kaffe CVS from CVS (20060204) worked fine for me on the games.yahoo.com/go > applets, I believe that this will use the classpath implementation of swing. Nice! I didn't know those worked already. But I am unable to try it against gcjwebplugin since it seems to demand some sort of yahoo id. > Next I wanted this on powerpc and tried > > b) kaffe-1.1.7rc1 (my Debian backport on ppc): > The go applet did display fine, but did not receive mouse or key events. > Out of curiousiy I went deeper into the problem and thought it might be > a ppc related problem, because it seemed to work on ia586 with seemingly > the same version. It would be nice if some kaffe hacker could explain the relation between these versions. Which came before the other and what is the default awt implementation for both? > Now I was looking at > c) running example applications from www.javabuch.de > using awt and swing on Debian. I found out that mouse and keyboard > events did not work with the default setting, but worked > using kaffe's other awt implementation; > e.g. with kaffe -Xkaffe-xlib-awt TestKeyEvents . That does make sense. In the GNU Classpath gtk-peer awt implementation a lot of work has been done to support "lightweight" components (like Free Swing). This is less developed in the old style kaffe xlib-awt framework. But in a couple of places we seem to forgot to check that old-style "heavyweight" (aka plain awt components) still got the events if the lightweights didn't handle them. > Trying to report the presumatley ppc related bug I have now learned: > d) There seems to be generic event bugs in classpath for kaffe. Yes, as far as I can see they are not platform specific. The mouse events issue seems to be solved now in a generic way. See: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26641 > And know looking closer I also see > e) Mandriva has probably packages a CVS version after 1.1.7rc1 of Kaffe. > > > Conclusion: next steps for me would be, > i) try to test another version of classpath. I am unsure how to do this with > kaffe without a new Debian version, so I might try jamvm, if this is easier > on Debian. Or we can try to get kaffe to make a new release! :) Including at least the patch from PR26641. > ii) Retest my two testcases for Mandriva. Thanks for all the testing. It (and the testcases) are really helpful. Mark signature.asc Description: This is a digitally signed message part ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] ppc: mouse keyboard problems with kaffe 1.1.7rc1
Hi Mark, Am Mittwoch, 15. März 2006 20:47 schrieb Mark Wielaard: > Thanks. I see no key event is ever received by the Frame (this is on x86 > for me). I have filed this as bug #26703 > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26703 thanks for testing and filing the bug. > Do you happen to know if this ever worked with kaffe in the past? To give you my full history: First I have tried: a) Mandriva (ia586) with their cooker kaffe package, probably Kaffe CVS from CVS (20060204) worked fine for me on the games.yahoo.com/go applets, I believe that this will use the classpath implementation of swing. Next I wanted this on powerpc and tried b) kaffe-1.1.7rc1 (my Debian backport on ppc): The go applet did display fine, but did not receive mouse or key events. Out of curiousiy I went deeper into the problem and thought it might be a ppc related problem, because it seemed to work on ia586 with seemingly the same version. Now I was looking at c) running example applications from www.javabuch.de using awt and swing on Debian. I found out that mouse and keyboard events did not work with the default setting, but worked using kaffe's other awt implementation; e.g. with kaffe -Xkaffe-xlib-awt TestKeyEvents . Trying to report the presumatley ppc related bug I have now learned: d) There seems to be generic event bugs in classpath for kaffe. And know looking closer I also see e) Mandriva has probably packages a CVS version after 1.1.7rc1 of Kaffe. Conclusion: next steps for me would be, i) try to test another version of classpath. I am unsure how to do this with kaffe without a new Debian version, so I might try jamvm, if this is easier on Debian. ii) Retest my two testcases for Mandriva. Bernhard ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] ppc: mouse keyboard problems with kaffe 1.1.7rc1
Hi Bernhard, On Wed, 2006-03-15 at 15:42 +0100, Bernhard Reiter wrote: > > On Wed, 2006-03-15 at 11:35 +0100, Bernhard Reiter wrote: > > Yes. If you have a small testcase for the keyboard issue that would be > > appreciated. > > I have attached a smal test application. > It shows the problem here. Thanks. I see no key event is ever received by the Frame (this is on x86 for me). I have filed this as bug #26703 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26703 Do you happen to know if this ever worked with kaffe in the past? Thanks, Mark signature.asc Description: This is a digitally signed message part ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] ppc: mouse keyboard problems with kaffe 1.1.7rc1
Am Mittwoch, 15. März 2006 11:45 schrieb Mark Wielaard: I found out that the version in kaffe 1.1.7rc1 is too different to use the patch. So I could not test the fix so far. > On Wed, 2006-03-15 at 11:35 +0100, Bernhard Reiter wrote: > > From looking at the diff I believe that this would not affect keyboard > > events, so the keyboard bug might still be in there. > > Yes. If you have a small testcase for the keyboard issue that would be > appreciated. I have attached a smal test application. It shows the problem here. Bernhard import java.awt.*; import java.awt.event.*; public class TestKeyEvents extends Frame implements KeyListener { public static void main(String[] args) { TestKeyEvents windows = new TestKeyEvents(); } public TestKeyEvents() { super("Keyboard Events"); addKeyListener(this); setSize(250,250); setVisible(true); } public void keyPressed(KeyEvent event) { System.out.println( "key pressed: " + "key char = " + event.getKeyChar() + " " + "key code = " + event.getKeyCode() ); } public void keyReleased(KeyEvent event) { System.out.println("key released"); } public void keyTyped(KeyEvent event) { char key = event.getKeyChar(); System.out.println("key typed: " + key); } } ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] ppc: mouse keyboard problems with kaffe 1.1.7rc1
On Sun, 2006-03-12 at 18:17 +0100, Bernhard Reiter wrote: > Am Samstag, 11. März 2006 13:50 schrieb Dalibor Topic: > > It turns out that GNU Classpath has a bug that prevents any > > events from being shown. I'll file your test case in the Classpath bug > > tracker and CC: you on it. Once that regression is resolved, we can see > > if the event passing bug on ppc-linux still exists. > > Thanks! This was http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26641 Which has been checked into classpath CVS now. If you could try that out, or someone could resync classpath cvs with kaffe cvs, to see if that fixes the issue also for you that would be appreciated. Thanks, Mark -- Escape the Java Trap with GNU Classpath! http://www.gnu.org/philosophy/java-trap.html Join the community at http://planet.classpath.org/ signature.asc Description: This is a digitally signed message part ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] ppc: mouse keyboard problems with kaffe 1.1.7rc1
Hi Bernhard, On Wed, 2006-03-15 at 11:35 +0100, Bernhard Reiter wrote: > From looking at the diff I believe that this would not affect keyboard events, > so the keyboard bug might still be in there. Yes. If you have a small testcase for the keyboard issue that would be appreciated. Your TestMouse code was very helpful. Thanks. > Also it does not look like it would be a big endian related problem. No, it was a general heavyweight/lightweight Container problem in the general awt code. Cheers, Mark signature.asc Description: This is a digitally signed message part ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] ppc: mouse keyboard problems with kaffe 1.1.7rc1
Hi Mark, thanks for the fix and the information. Note that my tests also discovered problems with keyboard events, though my testcase did not include code for this. Interesting enough Kaffe-1.1.7rc1 was working on ia586 for mouse and keyboard events. This was packaged by Mandriva, so I am not sure, if they used something different or if this actually was a ppc only problem. On Wed, Mar 15, 2006 at 11:03:38AM +0100, Mark Wielaard wrote: > This was http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26641 > Which has been checked into classpath CVS now. > If you could try that out, or someone could resync classpath cvs with > kaffe cvs, to see if that fixes the issue also for you that would be > appreciated. I will see if I can try the patch. From looking at the diff I believe that this would not affect keyboard events, so the keyboard bug might still be in there. Also it does not look like it would be a big endian related problem. Bernhard pgpyjfQLDpja4.pgp Description: PGP signature ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] ppc: mouse keyboard problems with kaffe 1.1.7rc1
Am Samstag, 11. März 2006 13:50 schrieb Dalibor Topic: > It turns out that GNU Classpath has a bug that prevents any > events from being shown. I'll file your test case in the Classpath bug > tracker and CC: you on it. Once that regression is resolved, we can see > if the event passing bug on ppc-linux still exists. Thanks! > There will be a rc2 today or in worst case tomorrow. I am going through > the bug reports and fixing a few of the remaining build issues. Good news. ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] ppc: mouse keyboard problems with kaffe 1.1.7rc1
On Sat, 2006-03-11 at 13:50 +0100, Dalibor Topic wrote: > It was. It turns out that GNU Classpath has a bug that prevents any > events from being shown. A regression actually, since gcj 4.1 on ubuntu, which uses an older Classpath snapshot, seems to display events. cheers, dalibor topic ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] ppc: mouse keyboard problems with kaffe 1.1.7rc1
On Fri, 2006-03-10 at 13:12 +0100, Bernhard Reiter wrote: > Am Freitag, 10. März 2006 10:54 schrieb Dalibor Topic: > > On Fri, Mar 10, 2006 at 10:30:39AM +0100, Bernhard Reiter wrote: > > > Am Dienstag, 7. M?rz 2006 12:13 schrieb Bernhard Reiter: > > > > I have tried kaffe 1.1.7rc1 (experimental packages from Debian) > > > > on PowerPC and found out that mouse and keyboard events are not working > > > > properly. > > > I'll be able to confirm if the bug is stil there on CVS head tonight on > > my ppc-linux box. There have been numerous fixes in CVS head's AWT > > implementation thanks to the GNU Classpath hackers' work. > > Hi Dalibor, > yes, I saw many merges, but it was hard for me to decide if this would be > worth testing. It was. It turns out that GNU Classpath has a bug that prevents any events from being shown. I'll file your test case in the Classpath bug tracker and CC: you on it. Once that regression is resolved, we can see if the event passing bug on ppc-linux still exists. > This brings me to the question: How far away is 1.1.7? I know that the Debian > maintainers are currently waiting with their Sarge backport until it is > out. ;) There will be a rc2 today or in worst case tomorrow. I am going through the bug reports and fixing a few of the remaining build issues. After a rc2, we'll spend a week waiting for the debian buildds to catch up and expose any major issues, and see if we get bug reports about problems that were overseen. As usual between Kaffe releases, a lot has changed in the past 6 months ;) cheers, dalibor topic ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] ppc: mouse keyboard problems with kaffe 1.1.7rc1
Bernhard Reiter wrote: > Am Freitag, 10. März 2006 10:54 schrieb Dalibor Topic: > > This brings me to the question: How far away is 1.1.7? I know that the Debian > maintainers are currently waiting with their Sarge backport until it is > out. ;) As already said at FOSDEM, I would like to have one more RC at least. So we can ensure that tomcat/eclipse actually works with kaffe for the final release. Wolfgang ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] ppc: mouse keyboard problems with kaffe 1.1.7rc1
Am Freitag, 10. März 2006 10:54 schrieb Dalibor Topic: > On Fri, Mar 10, 2006 at 10:30:39AM +0100, Bernhard Reiter wrote: > > Am Dienstag, 7. M?rz 2006 12:13 schrieb Bernhard Reiter: > > > I have tried kaffe 1.1.7rc1 (experimental packages from Debian) > > > on PowerPC and found out that mouse and keyboard events are not working > > > properly. > I'll be able to confirm if the bug is stil there on CVS head tonight on > my ppc-linux box. There have been numerous fixes in CVS head's AWT > implementation thanks to the GNU Classpath hackers' work. Hi Dalibor, yes, I saw many merges, but it was hard for me to decide if this would be worth testing. This brings me to the question: How far away is 1.1.7? I know that the Debian maintainers are currently waiting with their Sarge backport until it is out. ;) Bernhard ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] ppc: mouse keyboard problems with kaffe 1.1.7rc1
On Fri, Mar 10, 2006 at 10:30:39AM +0100, Bernhard Reiter wrote: > Am Dienstag, 7. M?rz 2006 12:13 schrieb Bernhard Reiter: > > I have tried kaffe 1.1.7rc1 (experimental packages from Debian) > > on PowerPC and found out that mouse and keyboard events are not working > > properly. > > > > I expect this to be a big endian related problem of gtk-peer > > and would welcome confirmations. > > > > I am attaching a test application which always gives me > > 23 or 24 in the getY() method, also the button numbers switch around. > > Interesting enough getX() reports the right values. > > Other tests reveal that keyboard events are also not transported. > > > > When using -Xkaffe-xlib-awt, it works as expected. > > Can someone confirm the problem on ppc? > > > > As this is my first report, I did not directly go do the bugzilla > > of kaffe or classpath. > > I am grateful for hints how to pursue this further. > Like > * Pointers where to poke around in the code, am I right about gtk-peer? > * Advise where to submit this bug. Did I possibly miss in in my > bugtracker > search? > * Confirmation from a ppc developer that the bug is there/ is not there? Hallo Bernhard, I'll be able to confirm if the bug is stil there on CVS head tonight on my ppc-linux box. There have been numerous fixes in CVS head's AWT implementation thanks to the GNU Classpath hackers' work. cheers, dalibor topic > > adTHANKSvance, > Bernhard > th > > > ___ > kaffe mailing list > kaffe@kaffe.org > http://kaffe.org/cgi-bin/mailman/listinfo/kaffe ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] ppc: mouse keyboard problems with kaffe 1.1.7rc1
Am Dienstag, 7. März 2006 12:13 schrieb Bernhard Reiter: > I have tried kaffe 1.1.7rc1 (experimental packages from Debian) > on PowerPC and found out that mouse and keyboard events are not working > properly. > > I expect this to be a big endian related problem of gtk-peer > and would welcome confirmations. > > I am attaching a test application which always gives me > 23 or 24 in the getY() method, also the button numbers switch around. > Interesting enough getX() reports the right values. > Other tests reveal that keyboard events are also not transported. > > When using -Xkaffe-xlib-awt, it works as expected. > Can someone confirm the problem on ppc? > > As this is my first report, I did not directly go do the bugzilla > of kaffe or classpath. I am grateful for hints how to pursue this further. Like * Pointers where to poke around in the code, am I right about gtk-peer? * Advise where to submit this bug. Did I possibly miss in in my bugtracker search? * Confirmation from a ppc developer that the bug is there/ is not there? adTHANKSvance, Bernhard th ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] ppc: mouse keyboard problems with kaffe 1.1.7rc1
I have tried kaffe 1.1.7rc1 (experimental packages from Debian) on PowerPC and found out that mouse and keyboard events are not working properly. I expect this to be a big endian related problem of gtk-peer and would welcome confirmations. I am attaching a test application which always gives me 23 or 24 in the getY() method, also the button numbers switch around. Interesting enough getX() reports the right values. Other tests reveal that keyboard events are also not transported. When using -Xkaffe-xlib-awt, it works as expected. Can someone confirm the problem on ppc? As this is my first report, I did not directly go do the bugzilla of kaffe or classpath. Bernhard import java.awt.*; import java.awt.event.*; import java.util.*; public class TestMouse extends Frame { public static void main(String[] args) { TestMouse window = new TestMouse(); window.setLocation(100,100); window.setSize(500,500); window.setVisible(true); } public TestMouse() { super("Test mouse clicks"); addWindowListener(new MyWindowListener()); addMouseListener(new MyMouseListener()); addMouseMotionListener(new MyMouseMotionListener()); } class MyMouseListener extends MouseAdapter { public void mousePressed(MouseEvent event) { System.out.println("mousePressed: "+ event + event.getX() +"/"+ event.getY()); } public void mouseReleased(MouseEvent event) { System.out.println("mouseReleased"); } } class MyMouseMotionListener extends MouseMotionAdapter { public void mouseDragged(MouseEvent event) { System.out.println("mouseDragged"+ event+ event.getX()+"/"+event.getY()); } } class MyWindowListener extends WindowAdapter { public void windowClosing(WindowEvent event) { setVisible(false); dispose(); System.exit(0); } } } ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe