<AWT Dev> Bug 6913179, FileDialog uses native GTK under Linux: first patch

Costantino Cerbo c.cerbo at gmail.com
Wed Feb 10 10:35:36 PST 2010

Hallo Peter,

2010/2/10 Peter Zhelezniakov <Peter.Zhelezniakov at sun.com>:
> It worked for me today - i just added minimal code to start a new thread,
> and added wrapping to Java_sun_awt_X11_GtkFileDialogPeer_run(). File dialog
> was shown, and EDT was not blocked. Makes me think i'm missing something.
It works correctly, but only if we don't use the GTK L&F.
I didn't realise it and this is a very useful clue: it means that we
do something wrong with the initialization of GTK.

With the GTK L&F, I get these errors:
  Xlib: sequence lost (0x11fae > 0x2233) in reply type 0x1c!

  *** glibc detected ***
/home/c.cerbo/openjdk-awt/jdk/build/linux-i586/bin/java: double free
or corruption (fasttop): 0x912db9d0 ***
  *** glibc detected ***
/home/c.cerbo/openjdk-awt/jdk/build/linux-i586/bin/java: double free
or corruption (out): 0x912d2d10 ***


More information about the awt-dev mailing list