-
Bug
-
Resolution: Fixed
-
P3
-
8u172, 10, jfx23
This is related to
As noted in test bug
* FX toolkit is started first, and thus JavaFX owns the NSApplication: The crash reported in
* AWT toolkit is started first, and thus AWT owns the NSApplication: This crash is also the result of shutting down the FX toolkit and then creating a Swing Dialog; based on the stack trace, it looks like this crash happens when the AWT dialog tries to create the underlying Window as a child window of the FX window, but the FX parent window pointer is invalid.
This bug tracks the second of these two crashes.
NOTE: It is possible that other platforms (e.g., Windows) could have the same problem, although that will need to be tested.
Steps to reproduce:
1. Comment out the `@Disabled` statement in SwingNodePlatformExitCrashTest
2. Run the following:
gradle sdk shims
gradle --continue --info -PTEST_ONLY=true -PFULL_TEST=true -PUSE_ROBOT=true :systemTests:test --tests SwingNodePlatformExitCrashTest
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x000000019d821c34, pid=79001, tid=78087
#
# JRE version: Java(TM) SE Runtime Environment (22.0.2+9) (build 22.0.2+9-70)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (22.0.2+9-70, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-aarch64)
# Problematic frame:
# C [libobjc.A.dylib+0x9c34] objc_msgSend+0x34
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /Users/kcr/dev/javafx/jfx-clean/jfx/rt/tests/system/hs_err_pid79001.log
[3.933s][warning][os] Loading hsdis library failed
#
# If you would like to submit a bug report, please visit:
# https://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
- blocks
-
JDK-8340442 Enable SwingNodePlatformExitCrashTest after JDK-8340849 is fixed
- Resolved
- relates to
-
JDK-8185634 Java Fx-Swing dialogs appearing behind main stage
- Resolved
-
JDK-8187803 JDK part of JavaFX-Swing dialogs appearing behind main stage
- Resolved
-
JDK-8340850 Wrong bug ID listed as reason for skipping SwingNodePlatformExitCrashTest
- Resolved
-
JDK-8185634 Java Fx-Swing dialogs appearing behind main stage
- Resolved
-
JDK-8190329 [macos] Swing InterOp Platform.exit() crash
- Resolved
-
JDK-8339178 [macos] Swing InterOp Platform.exit() crash
- Resolved
- links to
-
Commit(master) openjdk/jfx/501f761c
-
Review(master) openjdk/jfx/1614