I have a Swing application in which I need to display internally generated HTML/CSS. In order to do this, I have adapted the code from this StackOverflow question.
The control works fine. However, when the application ends, I receive the error
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f9622171ae8, pid=5782, tid=140283095549696
For what it's worth, the sample code directly from Oracle (quoted in the StackOverflow post) has the same problem.
I have tried explicitly calling Platform.exit()
when the window closes, but the error remains. So, how does one shut down JavaFX correctly, when it is embedded in a Swing application?