This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 431330 - [SWT_AWT][GTK3] SWT_AWT bridge is broken while running with GTK+ 3 using OpenJDK (IcedTea)
Summary: [SWT_AWT][GTK3] SWT_AWT bridge is broken while running with GTK+ 3 using Open...
Status: CLOSED NOT_ECLIPSE
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.4   Edit
Hardware: PC Linux-GTK
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 434560 (view as bug list)
Depends on:
Blocks: 340067
  Show dependency tree
 
Reported: 2014-03-27 06:16 EDT by Sravan Kumar Lakkimsetti CLA
Modified: 2014-09-22 10:33 EDT (History)
9 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sravan Kumar Lakkimsetti CLA 2014-03-27 06:16:28 EDT
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
Comment 1 Steve Northover CLA 2014-04-02 10:19:35 EDT
This is also a problem for JavaFX that uses GTK2 as well.
Comment 2 Arun Thondapu CLA 2014-04-02 10:35:07 EDT
(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
Comment 3 Alexander Kurtakov CLA 2014-04-02 11:19:11 EDT
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.
Comment 4 Sravan Kumar Lakkimsetti CLA 2014-04-03 07:45:39 EDT
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
Comment 5 Arun Thondapu CLA 2014-04-03 08:18:48 EDT
I can confirm that I do not have the problem too using IBM/Oracle JREs. It seems to be a OpenJDK/JRE only problem.
Comment 6 Alexander Kurtakov CLA 2014-04-03 09:02:47 EDT
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.
Comment 7 Sravan Kumar Lakkimsetti CLA 2014-04-04 02:28:33 EDT
I submitted a bug report to OpenJDK. The bug report id is JI-9011514
Comment 8 Sravan Kumar Lakkimsetti CLA 2014-04-16 05:07:23 EDT
I submitted a new bug with iced tea http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1736
Comment 9 Arun Thondapu CLA 2014-04-16 06:42:29 EDT
(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.
Comment 10 Marc-André Laperle CLA 2014-05-14 14:06:35 EDT
*** Bug 434560 has been marked as a duplicate of this bug. ***
Comment 11 Andrew John Hughes CLA 2014-09-22 10:33:35 EDT
FYI, this was resolved in the 2.5.0 release of IcedTea: http://bitly.com/1l7n3Qq