Bug 29491 - java.lang.InternalError: Pango: pango_color_parse: assertion `spec != NULL' failed
Summary: java.lang.InternalError: Pango: pango_color_parse: assertion `spec != NULL' f...
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: libgcj (show other bugs)
Version: 4.2.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
: 29492 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-10-17 16:54 UTC by Dale Ranta
Modified: 2006-10-18 19:03 UTC (History)
2 users (show)

See Also:
Host: powerpc-apple-darwin8.6.0
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dale Ranta 2006-10-17 16:54:06 UTC
I finally got java to build with gtk support, but every program that I try to run fails like this simple example from a java book (pango is finding a null pointer) -

[dranta:java/CHAPCODE/Ch12] dir% gcj -bind_at_load --main=Application -o Application Application.java
[dranta:java/CHAPCODE/Ch12] dir% Application

(.:18349): Pango-CRITICAL **: pango_color_parse: assertion `spec != NULL' failed
java.lang.InternalError: Pango: pango_color_parse: assertion `spec != NULL' failed
   <<No stacktrace available>>
-:2: Invalid color constant '(null)'
-:2: error: invalid string constant "#eee1b3", expected valid string constant

Gtk-ERROR **: file gtkcontainer.c: line 2000 (_gtk_container_focus_sort): should not be reached
aborting...
java.lang.InternalError: Gtk: file gtkcontainer.c: line 2000 (_gtk_container_focus_sort): should not be reached
   <<No stacktrace available>>
Abort
[dranta:java/CHAPCODE/Ch12] dir% cat Application.java
import java.awt.Frame;
import java.awt.Color;
import java.awt.event.WindowEvent;
import java.awt.event.WindowAdapter;
public class Application {
  public static void main (String args[]) {
    Frame myWindow = new Frame ("Window !");
    myWindow.setBackground(Color.blue);
    myWindow.setSize(300,300);
    myWindow.setVisible(true);
    myWindow.addWindowListener (new WindowAdapter() {
      public void windowClosing (WindowEvent e) {
        System.exit(0);
      }
    });
  }
}
[dranta:java/CHAPCODE/Ch12] dir% gcj --v
Using built-in specs.
Reading specs from /usr/local/java/lib/gcc/powerpc-apple-darwin8.7.0/4.2.0/../../../libgcj.spec
rename spec startfile to startfileorig
rename spec lib to liborig
Target: powerpc-apple-darwin8.7.0
Configured with: ../gcc/configure --prefix=/usr/local/java --enable-languages=c,c++,java --enable-java-awt=gtk --enable-gtk-cairo --disable-multilib --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib
Thread model: posix
gcc version 4.2.0 20061016 (experimental)
Comment 1 Tom Tromey 2006-10-18 06:24:51 UTC
*** Bug 29492 has been marked as a duplicate of this bug. ***
Comment 2 Dale Ranta 2006-10-18 14:37:50 UTC
This turned out to be a gtk bug - a rebuild of glib-2.12.4 followed by a rebuild of gtk+-2.10.6 fixed the problem.
Comment 3 Andrew Pinski 2006-10-18 19:03:25 UTC
Closing as invalid then.