Hi,

does anybody of you succesively run jdk118 from IBM. I installed it on
my systems (RH6.1 and SuSe 6.2) and experienced problems with GUI
programs. Somehow `pack' method of Container class gives either null
ptr exc. or SIGSEGV. Eg.:


import java.awt.*;

public class F {
        public static void main(String[] argv) {
                MF f = new MF();
                f.setSize(200, 300);
                f.setVisible(true);
        }
}

class MF extends Frame {
        MF() {
                super("test");

                add(new Button("Button 1"));
                add(new Button("Button 2"));
                add(new Button("Button 3"));

                pack();
        }
}

causes SIGSEGV with a dump, which I attach to this posting. Current thread
leaved exactly in pack:

    ------ Java stack ------        () prio=5 *current thread*
    sun.awt.motif.X11FontMetrics.<init>(X11FontMetrics.java:99)
    sun.awt.motif.X11FontMetrics.getFontMetrics(X11FontMetrics.java:257)
    sun.awt.motif.MComponentPeer.getFontMetrics(MComponentPeer.java:334)
    sun.awt.motif.MButtonPeer.getMinimumSize(MButtonPeer.java:24)
    sun.awt.motif.MComponentPeer.getPreferredSize(MComponentPeer.java:308)
    sun.awt.motif.MComponentPeer.preferredSize(MComponentPeer.java:653)
    java.awt.Component.preferredSize(Component.java:1039)
    java.awt.Component.getPreferredSize(Component.java:1020)
    java.awt.BorderLayout.preferredLayoutSize(BorderLayout.java:333)
    java.awt.Container.preferredSize(Container.java:558)
    java.awt.Container.getPreferredSize(Container.java:541)
    java.awt.Window.pack(Window.java:121)
    MF.<init>(F.java:19)
    F.main(F.java:5)

Do you know any solution/workaround to this problem.

Thanks,
Marek.

javacore2209.txt.gz

Reply via email to