Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8233675

Blank window of JavaFX application on Mac OS 10.13 on VirtualBox

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P4
    • None
    • jfx11
    • javafx
    • x86
    • os_x

    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


      Attachments

        Issue Links

          Activity

            People

              kcr Kevin Rushforth
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: