[kaffe] port kaffe on xscale----with-kaffe-x-awt

huangtonglang huangtonglang at 126.com
Wed May 11 20:29:21 PDT 2005


Hi all,
I hava tried AWT application(with-kaffe-x-awt) on my xscale, but it could only work out simplist test.If the application was more complicated,it would crash. 
I tried MyButton.class,it crashed.But if I deleled the sentence 6 fr.add(temp1),it will ran successfully.
///////////////////////////////
1   import java.awt.*;
2   public class MyButton extends Frame{
3   public static void main(String args[ ]){
4   MyButton fr = new MyButton("Hello Out There!");
5   Button temp1 = new Button("MyButton ");
6   fr.add(temp1);
7   fr.setSize(200,200);
8   fr.setVisible(true);
9  }
10  public MyButtonadd(String str){
11  super(str);}
12  }
//////////////////////////////////

When it crashed,The information showed me as follow:
//////////////////////
[root at Xhyper255-nie bin]$./kaffe -Xkaffe-xlib-awt -vmdebug AWT MyButtonadd
malloc: 128 -> 0x5b6b08
synchronize X
calloc: 47,12 -> 0x5b89d0
locale of XOM: C
needed charset[0]: ISO8859-1
look up font: -adobe-helvetica-bold-r-*-*-*-100-75-75-*-*-*-*
look up font: -adobe-helvetica-bold-r-*-*-*-100-75-75-*-*-*-*
look up font: -adobe-helvetica-bold-r-*-*-*-100-75-75-*-*-*-*
look up font: -adobe-courier-medium-r-*-*-*-120-75-75-*-*-*-*
look up font: -adobe-helvetica-bold-r-*-*-*-100-75-75-*-*-*-*
look up font: -adobe-helvetica-bold-r-*-*-*-100-75-75-*-*-*-*
look up font: -adobe-helvetica-medium-r-*-*-*-100-75-75-*-*-*-*
look up font: -adobe-helvetica-bold-r-*-*-*-100-75-75-*-*-*-*
pc : [<003ce8e0>]    lr : [<4007e2fc>]    Not tainted
sp : bffff044  ip : 000fe000  fp : bffff0b8
r10: 000fe000  r9 : 00000001  r8 : 00000001
r7 : 00000001  r6 : 000dab68  r5 : 00000000  r4 : 00000001
r3 : 00000001  r2 : 0000000d  r1 : 000fe000  r0 : 00000001
Flags: nzcv  IRQs on  FIQs on  Mode USER_32  Segment user
Control: 397F  Table: A3D00000  DAC: 00000015
java.lang.NullPointerException
   at java.awt.FontMetrics.<init> (FontMetrics.java:48)
   at MyButtonadd.<init> (MyButtonadd.java:12)
   at MyButtonadd.main (MyButtonadd.java:4)

///////////////////////////////

Have anybody ran the AWT application successfully?  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://kaffe.org/pipermail/kaffe/attachments/20050512/56ad8fee/attachment-0005.htm 


More information about the kaffe mailing list