JDK-8161672 : Javafx window is black on Ubuntu 16.04
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: 9
  • Priority: P3
  • Status: Closed
  • Resolution: Incomplete
  • OS: linux_ubuntu
  • CPU: generic
  • Submitted: 2016-07-19
  • Updated: 2016-09-08
  • Resolved: 2016-09-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9Resolved
Related Reports
Relates :  
Relates :  
Description
GDK_SCALE=1 java -cp apps/toys/Hello/src/main/java hello.HelloRectangle produces scale1.png

GDK_SCALE=2 java -cp apps/toys/Hello/src/main/java hello.HelloRectangle produces scale2.png

same on Ubuntu 15.10 but Ubuntu 14.04 is o.k.
Maybe that is because my Ubuntu 15.10/16.04 are VMs, while 14.04 is a normal OS (Intel CPU integrated Haswell video)

Comments
Waiting to hear back from the submitter if this is still reproducible. Please reopen it if it is, or comment that it was fixed by an earlier bug fix if it is now working...
08-09-2016

This could potentially be a dup of JDK-8159892, but the window was not black in those examples. Still the fix for JDK-8159892 could have had an impact on this issue as well. Can you run it with the fix for JDK-8159892? The fix is in the open jfx 9 repos, but it hasn't appeared in a 9-preview build yet unless you build your own copy of JFX. We'll update JDK-8159892 when we know what public build the fix appears in...
15-08-2016

Thank you. So this is likely a GTK 3 related bug in glass.
21-07-2016

Loading GTK libraries version 2 trying GTK library set libgtk-x11-2.0.so.0, libgdk-x11-2.0.so.0, libgdk_pixbuf-2.0.so failed to load libgdk_pixbuf-2.0.so trying GTK library set libgtk-x11-2.0.so, libgdk-x11-2.0.so, libgdk_pixbuf-2.0.so failed to load libgtk-x11-2.0.so trying GTK library set libgtk-3.so.0, libgdk-3.so.0, libgdk_pixbuf-2.0.so.0 using GTK library set libgtk-3.so.0, libgdk-3.so.0, libgdk_pixbuf-2.0.so.0
21-07-2016

[~ssadetsky] Can you run with "-Djdk.gtk.verbose=true" so we can see whether it is using GTK2 or GTK3?
20-07-2016