Details
-
Bug
-
Resolution: Duplicate
-
P2
-
8u20, 9
-
None
Description
Running a simple "HelloFXCanvas" program with swt4.4 on Linux will either hang (on OEL 7) or crash (on Ubuntu 14.04) on startup when libglass.so is loaded and initialized.
To reproduce this crash, compile and run the attached test program as follows:
1. Download the swt-4.4 bundle from:
http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops4/R-4.4-201406061215/swt-4.4-gtk-linux-x86_64.zip
2. Create a 'swt-4.4' directory, and unzip the bundle into that directory.
3. Compile the attached test program as follows:
A) Using a JDK with FX included:
javac -cp .:$JAVA_HOME/jre/lib/jfxswt.jar:$DOWNLOAD_DIR/swt-4.4/swt-debug.jar SimpleFXCanvas.java
-OR-
B) Using your own FX build and a JDK with jfxrt.jar removed:
javac -Xbootclasspath/a:$JAVAFX_HOME/rt/lib/ext/jfxrt.jar -cp .:$JAVAFX_HOME/rt/lib/jfxswt.jar:$DOWNLOAD_DIR/swt-4.4/swt-debug.jar SimpleFXCanvas.java
4. Run the test program as follows:
A) Using a JDK with FX included:
java -cp .:$JAVA_HOME/jre/lib/jfxswt.jar:$DOWNLOAD_DIR/swt-4.4/swt-debug.jar SimpleFXCanvas
-OR-
B) Using your own FX build and a JDK with jfxrt.jar removed:
java -Xbootclasspath/a:$JAVAFX_HOME/rt/lib/ext/jfxrt.jar -cp .:$JAVAFX_HOME/rt/lib/jfxswt.jar:$DOWNLOAD_DIR/swt-4.4/swt-debug.jar SimpleFXCanvas
BUG: The application will either hang or crash when libglass.so is loaded and initialized via System.load("libglass.so").
On Ubuntu 14.04 the JRE will crash. See the attached hs_err log.
On OEL 7 the JRE will hang. See the attached thread stack dump.
To reproduce this crash, compile and run the attached test program as follows:
1. Download the swt-4.4 bundle from:
http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops4/R-4.4-201406061215/swt-4.4-gtk-linux-x86_64.zip
2. Create a 'swt-4.4' directory, and unzip the bundle into that directory.
3. Compile the attached test program as follows:
A) Using a JDK with FX included:
javac -cp .:$JAVA_HOME/jre/lib/jfxswt.jar:$DOWNLOAD_DIR/swt-4.4/swt-debug.jar SimpleFXCanvas.java
-OR-
B) Using your own FX build and a JDK with jfxrt.jar removed:
javac -Xbootclasspath/a:$JAVAFX_HOME/rt/lib/ext/jfxrt.jar -cp .:$JAVAFX_HOME/rt/lib/jfxswt.jar:$DOWNLOAD_DIR/swt-4.4/swt-debug.jar SimpleFXCanvas.java
4. Run the test program as follows:
A) Using a JDK with FX included:
java -cp .:$JAVA_HOME/jre/lib/jfxswt.jar:$DOWNLOAD_DIR/swt-4.4/swt-debug.jar SimpleFXCanvas
-OR-
B) Using your own FX build and a JDK with jfxrt.jar removed:
java -Xbootclasspath/a:$JAVAFX_HOME/rt/lib/ext/jfxrt.jar -cp .:$JAVAFX_HOME/rt/lib/jfxswt.jar:$DOWNLOAD_DIR/swt-4.4/swt-debug.jar SimpleFXCanvas
BUG: The application will either hang or crash when libglass.so is loaded and initialized via System.load("libglass.so").
On Ubuntu 14.04 the JRE will crash. See the attached hs_err log.
On OEL 7 the JRE will hang. See the attached thread stack dump.
Attachments
Issue Links
- duplicates
-
JDK-8088966 [SWT, Linux, GTK3] FxCanvas can't handle gtk3 libs
- Closed
-
JDK-8157002 Toggle gtk version if SWT used via FXCanvas
- Resolved
- is blocked by
-
JDK-8087516 [JavaFX] Conditional support for GTK 3 on Linux
- Resolved
- relates to
-
JDK-8157002 Toggle gtk version if SWT used via FXCanvas
- Resolved
-
JDK-8065658 Modernize the GTK3 Look and Feel implementation
- Closed