Community
Participate
Working Groups
SWT_AWT bridge is loading gtk2 libraries also. and when you run the snippet135, the application(snippet135) is hanging. OS details: Ubuntu 13.10 GTK 3.8.6 and GTK 2.24.20 Link for the snippet http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet135.java
This is also a problem for JavaFX that uses GTK2 as well.
(In reply to Sravan Kumar Lakkimsetti from comment #0) > SWT_AWT bridge is loading gtk2 libraries also. and when you run the > snippet135, the application(snippet135) is hanging. Just for the sake of clarity, GTK+ 2 is loaded because AWT depends on the same and not by the SWT_AWT bridge itself. The GTK+ website [1] does mention the problems caused when GTK+ 2 and GTK+ 3 libraries are loaded by the same process. [1] https://developer.gnome.org/gtk3/stable/ch24s02.html#id-1.6.3.4.18
AWT is supposed to load GTK only if Gnome L'n'F is set as default IIRC. Can someone please verify whether the bridge is crashing with another L'n'F ? My testing shows this worsk. Plain awt snippets should work too. Regarding JavaFX I have no idea how/why it loads gtk.
I have tested with the following JREs on Ubuntu 13.10 64 bit 1. OpenJDK Runtime Environment (IcedTea 2.4.4) (7u51-2.4.4) This fails in all Look and Feel modes 2. IBM JRE build pxa6470_27_20131115_04 This works in all modes except GTK Look and feel 3. Oracle JRE 7 build 1.7.0_51-b13 This works in all modes except GTK Look and feel 4. Oracle JRE 8 build 1.8.0-b132 This works in all modes except GTK Look and feel By the way in Ubuntu the default JRE is OpenJDK Runtime Environment. This fails
I can confirm that I do not have the problem too using IBM/Oracle JREs. It seems to be a OpenJDK/JRE only problem.
It seems to be OpenJDK on Ubuntu problem. On RHEL 7 with OpenJDK 1.7 I can run the snippet just fine with default and Nimbus LaF just fine and it crashes with Gtk LaF as all other JREs.
I submitted a bug report to OpenJDK. The bug report id is JI-9011514
I submitted a new bug with iced tea http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1736
(In reply to Sravan Kumar Lakkimsetti from comment #8) > I submitted a new bug with iced tea > http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1736 Thanks! Closing this one.
*** Bug 434560 has been marked as a duplicate of this bug. ***
FYI, this was resolved in the 2.5.0 release of IcedTea: http://bitly.com/1l7n3Qq