JDK-8213149 : OpenJFX: segmentation fault in JavaThread "GtkNativeMainLoopThread"
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: openjfx11
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86
  • Submitted: 2018-10-29
  • Updated: 2018-11-02
  • Resolved: 2018-10-31
Related Reports
Duplicate :  
Description
ADDITIONAL SYSTEM INFORMATION :
OpenJDK 11 64bit, Debian GNU/Linux, OpenJFX 11

A DESCRIPTION OF THE PROBLEM :
PDFsam, a JavaFX application, crashes with a segmentation fault in "GtkNativeMainLoopThread" . This issue can be observed when passing -Djdk.gtk.version=3. It can be worked around by using -Djdk.gtk.version=2. This happens on an up-to-date Debian/GNU Linux system running Debian unstable with OpenJDK 11 and OpenJFX 11. 

REGRESSION : Last worked in version 8u192

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
To reproduce install pdfsam from Debian unstable and update /usr/bin/pdfsam to use the -Djdk.gtk.version=3 option. This issue is also reproducible with Oracle JDK 10 and the OpenJFX 11 Maven artifacts from Maven Central. 

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
PDFsam works with -Djdk.gtk.version=3 like in previous versions with OpenJFX 8.
ACTUAL -
Segmentation fault and core dump.

---------- BEGIN SOURCE ----------
apt install pdfsam or apt source pdfsam for sources. https://tracker.debian.org/pdfsam
---------- END SOURCE ----------

CUSTOMER SUBMITTED WORKAROUND :
Use -Djdk.gtk.version=2

FREQUENCY : always



Comments
PFA received crash log by Submitter. Also Submitter confirmed he is using Wayland system, so closing this as duplicate of JDK-8210411.
02-11-2018

Marking as incomplete pending more information.
30-10-2018

[~pmangal] Can you ask the submitter what Window system they were running? If they are running the X/Wayland window system, then this might be a duplicate of JDK-8210411. Also, please ask them to provide a crash log (the hs_err* file).
30-10-2018

Could not reproduce the issue in Ubuntu 18.04.1 LTS using JavaFX 11 Linux jmods. Steps i followed: - Created a custom JDK image with Open JDK 10.0.2 as follows: jlink --output myjdk --bind-services --module-path PATH-TO-JMODS/javafx-jmods-11 --add-modules javafx.web,javafx.swing,javafx.media,javafx.fxml,java.se - set JAVA_HOME in /etc/environment with above custom JDK. - Installed 'pdfsam' from https://github.com/torakiki/pdfsam/releases/download/v3.3.7/pdfsam_3.3.7-1_all.deb - Although GTK3 is default in JavaFX 11, but still added option "-Djdk.gtk.version=3" in /usr/bin/pdfsam as mentioned by Submitter. - Ran pdfsam app on terminal and it opened successfully : >pdfsam
30-10-2018