JDK-8233675 : Blank window of JavaFX application on Mac OS 10.13 on VirtualBox
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: openjfx11
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: os_x
  • CPU: x86
  • Submitted: 2019-11-05
  • Updated: 2019-11-07
  • Resolved: 2019-11-07
Related Reports
Duplicate :  
Description
ADDITIONAL SYSTEM INFORMATION :
Windows 10 host
Mac OS 10.13 guest
setup like this https://techsviewer.com/install-macos-high-sierra-virtualbox-windows/
VirtualBox 6.0

A DESCRIPTION OF THE PROBLEM :
When I run my JavaFX application on Mac OS 10.13 when its a guest OS on VirtualBox I get w window with is blank - has no UI controls.

You can see the final effect here: https://walczak.it/application/files/6015/7299/2981/javafx-mac-bug.png

Before the window appears I can see the following errors in the console:

2019-11-05 14:34:55.138 java[453:5374] CGLChoosePixelFormat error: 10002
2019-11-05 14:34:55.138 java[453:5374] CGLCreateContext error: 10002

After reading this: https://stackoverflow.com/questions/29653934/are-there-known-incompatibilities-that-prevent-javafx-from-running-in-a-virtuali
i tried adding this to my build.gradle

run {
    jvmArgs '-Dprism.order=sw'
}

and runned my app via

./gradlew run -Dprism.order=sw

but it did not help.

All this seam a a regression of https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8154148

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Setup environment like so https://techsviewer.com/install-macos-high-sierra-virtualbox-windows/
2. Install OpenJDK 11 from https://adoptopenjdk.net/
3. Download sources  of JavaFX app https://bitbucket.org/walczak_it/pdf-decorator/src/master/
4. Run ./gradlew run

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Apps windows to show UI components like the ones you can see here: http://pdf-decorator.walczak.it/
ACTUAL -
Blank windows

---------- BEGIN SOURCE ----------
https://bitbucket.org/walczak_it/pdf-decorator/src/master/
---------- END SOURCE ----------

FREQUENCY : always



Comments
This is not a supported environment. See JDK-8090758. I am closing this as a duplicate.
07-11-2019