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

Failures in startup do not shutdown a JFX application.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • fx2.0
    • fx2.0
    • javafx


      when the quantum toolkit fails to create a pipeline, it does not exit and or report this fatal condition to the application. Normally if an application fails to initialize the connection to the graphical device (in our case the graphics pipeline) then some error is reported so the app can catch and or exit. Think "cannot connect to X Display" kind of thing.

      I suggested a System.exit() after the error message:
             final Runnable pipelineRunnable = new Runnable() {
                  @Override public void run() {
                      if (GraphicsPipeline.createPipeline() == null) {
                          System.err.println("Error initializing prism toolkit: no suitable pipeline found");
       + System.exit(0);

      Morris suggested a throwing a RuntimeException("Error initializing prism toolkit: no suitable pipeline found");

            kcr Kevin Rushforth
            ddhill David Hill (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: