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

JavaFX does not start on Mac

    XMLWordPrintable

    Details

      Description

      Trying to build a JavaFX RCP, I fire up the JavaFX Runtime during the startup process. I can see the following debugging ouput:
      Prism pipeline init order: es2 j2d
      Using openpisces for shapes, t2k for text rasterization
      Not using dirty region optimizations
      Prism pipeline name = com.sun.prism.es2.ES2Pipeline
      (X) Got class = class com.sun.prism.es2.ES2Pipeline
      GL_ARB_fragment_program detected (max instruction count is 16384)
      Initialized prism pipeline: com.sun.prism.es2.ES2Pipeline
      ES2Pipeline.isSupported factory.createGLPbuffer() took 27 ms [0.027 sec]
      ES2Pipeline.isSupported pbuffer.getContext() took 0 ms [0.0 sec]
      ES2Pipeline.isSupported context.makeCurrent() took 62 ms [0.062 sec]
      ES2Pipeline.isSupported context.getGL().getGL2ES2() took 0 ms [0.0 sec]
      JavaFX: using com.sun.javafx.tk.quantum.QuantumToolkit

      this is the last ouput line. Looking at the stack in the debugger it seems to be stuck at

       MacApplication._runLoop
       MacApplication.runLoop: 73

      I am calling the following code:

          System.out.println("Launch Java FX");
          long ms = System.currentTimeMillis();

          Application.launch(JavaFXRunLevel.class, new String[0]); // Get the JavaFX Application thread running...

          System.out.println("Launched Java FX in " + (System.currentTimeMillis() - ms) + "ms");


      The exact same code works for me with the latest Windows builds (b38) without any problems.

      Will try to supply an example project showing the problem if needed.

        Attachments

        1. platform.zip
          165 kB
        2. RT-15698.zip
          165 kB
        3. stack.txt
          8 kB

          Activity

            People

            Assignee:
            gziemski Gerard Ziemski
            Reporter:
            sreimersjfx Sven Reimers (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: