JDK-8091247 : Quantum toolkit doesn't become alive after shutdown
  • Type: Enhancement
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: fx2.0
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • Submitted: 2011-06-07
  • Updated: 2021-08-27
  • Resolved: 2021-08-27
Related Reports
Blocks :  
Blocks :  
Duplicate :  
Relates :  
Description
Here's the scenario to reproduce the issue (Test.java attached):

1. "Tool" frame is a Swing frame and there are two Swing buttons inside the frame: the "show" button (to show FX stage) and the "hide" button (to hide FX stage).

2. Let's show and hide FX stage. First time it works fine (and the Quantum toolkit is terminated when "last" FX stage is hidden).

3. Let's show and hide FX stage again. Nothing happens and it doesn't work expectedlty (the Quantim toolkit isn't restarted after shutdown).

Attached runtime.patch include some preliminary changes (the diffs can be useful to resolve this issue). With the changes, the scenario starts working for me with default settings. Though I'm not sure that the changes are correct and complete.

For convenience, webrev - http://spbweb.russia.sun.com/~dc158259/RT-12981/webrev-2/index.html
Comments
We do not plan to implement this. Applications can keep the JavaFX Runtime active by calling: Platform.setImplicitExit(false);
27-08-2021

Not a bug, but a Tweak. Unplanned for Lombard.
05-12-2012

With the addition of Platform.setImplicitExit(false) in RT-15011 this is no longer as important an issue. Also, The changes to the Application life-cycle that would require this feature are currently unplanned for 3.0.
27-07-2012

SQE - ok to defer
26-08-2011

As restarting FX is not yet in the application lifecycle, recommend that this bug be deferred until restart in all of our application modes can be addressed.
25-08-2011

This is likely too risky for Presidio, given the issues that were recently resolved in the app lifecycle area to ensure an orderly shutdown of the the app.
23-08-2011

Note that we need to make sure that whatever is done to fix this issue also works well with the app lifecycle model in standalone FX application and FX applet modes.
07-06-2011