JDK-8115676 : Mac: applications sometime crash on exit
  • Type: Bug
  • Component: javafx
  • Sub-Component: window-toolkit
  • Affected Version: fx2.1
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2012-01-19
  • Updated: 2015-06-17
  • Resolved: 2012-01-30
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.1Fixed
Related Reports
Blocks :  
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


Often the app will crash in glass native code as it is exiting with the following error:

Invalid memory access of location 0x50 rip=0x10564769a
Segmentation fault: 11

I have attached the crash dump.

Note that we must remove the System.exit workaround in order to ship JavaFX on Mac for 2.1.
Comments
verified in promotion build 17
21-03-2012

2 problems. We were calling dealloc form one thread, but: - dealloc used it's own thread's env to release its runnable - we were detaching calling thread and leaving the timer's thread still attached The fix is to: - release runnable from the JNI Timer.stop thread - detach Timer's thread just before exiting that thread
24-01-2012

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

NOTE: many times the app will hang until another window gets focus. That behavior is tracked with RT-19030
19-01-2012