[kaffe] problem starting kaffe with Nano-X - AWT
Hi all, I'm testing kaffe with an AWT application using Nano-X: in my previous mail I described the problem (a demo application, opening a window, show the exepected output window just sometimes) I'm trying to trace the problem, printing somemessages: whne the window is not shown the progam calls only Java_java_awt_Toolkit_tlkInit, and then i see no more messages. When the window appear correctly, I see # /usr/local/kaffe/bin/kaffe -Dkaffe.awt.nativelib=nanoxawt -Xbootclasspath/p:/home/AMDgiammy/kaffe-1.1.5/kaffeawt.jar Hello Java_java_awt_Toolkit_tlkInit: open graphics OK window.c: Java_java_awt_Toolkit_wndCreateFrame... window.c: Java_java_awt_Toolkit_wndCreateFrame... wid =! NULL window.c: Java_java_awt_Toolkit_wndCreateFrame... OK create wid=0x2 4 24 492 472 window.c: Java_java_awt_Toolkit_wndSetVisible... window.c: Java_java_awt_Toolkit_wndSetVisible...SHOW OK that is the Nano-X environment is initialized, and the window is created and set visible. It seems to me that NAno-X is Ok; the problem is that kaffe do not call the wndCreateFrame function (and the following functions). which are the steps from tlkInit and wndCreateFrame? where does kaffe get lost? If I discover something, I'll let you know thanks giammy -- Gianluca Moro Visit http://ilpinguino.altervista.org/ [EMAIL PROTECTED] MyBlog http://blog.libero.it/giangiammy/ __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
[kaffe] multiple kaffe instantiation
Hi all, runnin a hello world AWT demo, I see many kaffe-bin tasks: is it correct (in my PC, running the same program, I see just 1 kaffe-bin) Could it be a race condition between all this task which prevent my application so be shown correctly on the LCD? thanks again giammy 127 root272 S nanowm 1395 root 5732 S /usr/local/kaffe/jre/bin/kaffe-bin -vmdebug AWT -Dkaffe.awt.nativelib=nanoxawt -Xbootclasspath/p: 1423 root 5732 S /usr/local/kaffe/jre/bin/kaffe-bin -vmdebug AWT -Dkaffe.awt.nativelib=nanoxawt -Xbootclasspath/p: 1424 root 5732 S /usr/local/kaffe/jre/bin/kaffe-bin -vmdebug AWT -Dkaffe.awt.nativelib=nanoxawt -Xbootclasspath/p: 1425 root 5732 S /usr/local/kaffe/jre/bin/kaffe-bin -vmdebug AWT -Dkaffe.awt.nativelib=nanoxawt -Xbootclasspath/p: 1429 root 5732 S /usr/local/kaffe/jre/bin/kaffe-bin -vmdebug AWT -Dkaffe.awt.nativelib=nanoxawt -Xbootclasspath/p: 1430 root 5732 S /usr/local/kaffe/jre/bin/kaffe-bin -vmdebug AWT -Dkaffe.awt.nativelib=nanoxawt -Xbootclasspath/p: -- Gianluca Moro Visit http://ilpinguino.altervista.org/ [EMAIL PROTECTED] MyBlog http://blog.libero.it/giangiammy/ __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] multiple kaffe instantiation
On Wed, Sep 28, 2005 at 03:15:19AM -0700, Gianluca Moro wrote: Hi all, runnin a hello world AWT demo, I see many kaffe-bin tasks: is it correct (in my PC, running the same program, I see just 1 kaffe-bin) Could it be a race condition between all this task which prevent my application so be shown correctly on the LCD? thanks again giammy 127 root272 S nanowm 1395 root 5732 S /usr/local/kaffe/jre/bin/kaffe-bin -vmdebug AWT -Dkaffe.awt.nativelib=nanoxawt -Xbootclasspath/p: 1423 root 5732 S /usr/local/kaffe/jre/bin/kaffe-bin -vmdebug AWT -Dkaffe.awt.nativelib=nanoxawt -Xbootclasspath/p: 1424 root 5732 S /usr/local/kaffe/jre/bin/kaffe-bin -vmdebug AWT -Dkaffe.awt.nativelib=nanoxawt -Xbootclasspath/p: 1425 root 5732 S /usr/local/kaffe/jre/bin/kaffe-bin -vmdebug AWT -Dkaffe.awt.nativelib=nanoxawt -Xbootclasspath/p: 1429 root 5732 S /usr/local/kaffe/jre/bin/kaffe-bin -vmdebug AWT -Dkaffe.awt.nativelib=nanoxawt -Xbootclasspath/p: 1430 root 5732 S /usr/local/kaffe/jre/bin/kaffe-bin -vmdebug AWT -Dkaffe.awt.nativelib=nanoxawt -Xbootclasspath/p: Thats normal. Kaffe uses threads and each of these entries is just on thread. If you have a problem starting up it may be related to threads but normally it isnt. Please tell us more about your problem to let us help you. Cheers, Michael -- Escape the Java Trap with GNU Classpath! http://www.gnu.org/philosophy/java-trap.html Join the community at http://planet.classpath.org/ ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] Kaffe compilation with Nano-X awt interface
Gianluca Moro wrote: hi all, I'm testing kaffe 1.1.5 with the AWT backend for Nano-X on a MIPS machine. (I'm updating the situation from my last email with the results of the ongoing test...) I'm getting a very weird behaviour: if I start a demo (just open a window and set a green background) it starts with no errors, and stay there: 1 time in (about) 30 the windows appear on the LCD: the other times I do not see nothing!!! Same behaviour with another program: both programs on PC works perfectly. Does anyone have an idea of what can cause such a behaviour: why the program starts correctly just sometimes? Could be some race condition in the VM? that sounds like a race condition somewhere :( You may want to check what happens during a successful startup vs a fialing startup and try to add 'synchronized' keyword in the class library for awt backend for nanox where it turns out be appropriate :( cheers, dalibor topic ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
Re: [kaffe] lookupClassMethod: Assertion `cls != ((void *)0)' failed
Robert Derochette wrote: Hi ! I was trying (for the sake of testing) a small spreadsheet app I had to write for uni two years ago with kaffe. Compile is ok but execution fails, displaying : kaffe-bin: /build/buildd/kaffe-1.1.6/build-tree/kaffe-1.1.6/kaffe/kaffevm/support.c:351: lookupClassMethod: Assertion `cls != ((void *)0)' failed. Aborted I'm using Debian SID and the latest kaffe from SID (1.1.6). Salut Robert, that's a bug in Kaffe. Apparently, something bad happens during class ini lookup, and a value ends up being NULL where it should not :) I'll give your code a spin with valgrind. cheers, dalibor topic ___ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe