JDK-8116226 : Mac: applications frequently hang after closing them
  • Type: Bug
  • Component: javafx
  • Sub-Component: window-toolkit
  • Affected Version: fx2.1
  • Priority: P2
  • Status: Resolved
  • Resolution: Duplicate
  • Submitted: 2012-01-19
  • Updated: 2015-06-17
  • Resolved: 2012-01-26
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
fx2.1Resolved
Related Reports
Blocks :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Description
Run HelloRectangle or HelloControls or pretty much any other app as follows (setting javafx.keepalive=true defeats the workaround as described in RT-17777):

    java -Djavafx.keepalive=true helloworld.HelloRectangle

Exit by pressing the window close button in the decoration

Most of the time the app will hang until another window (or the desktop) gets focus. I have attached a thread stack dump that I generated from a remote login shell (since clicking in a window on screen will allow the app to exit).

Note that we must remove the System.exit workaround in order to ship JavaFX on Mac for 2.1.
Comments
Duplicate of RT-15032
26-01-2012

Raise priority to critical to match that of RT-17777.
19-01-2012

NOTE: sometimes the app will crash instead of hang. That behavior is tracked with RT-19030
19-01-2012

Attached thread stack dump
19-01-2012