JavaFX Runtime for Plugins Crash when Plugin activation on IDEA CE2020.2
Answered
When I use latest IDEA CE2020.2, because javafx has removed, so install JavaFX Runtime for Plugins
But when plugin activation (show jfxpanel) , IDE crash quit !!!
Logs:
InteropFactory: cannot load com.sun.javafx.embed.swing.newimpl.InteropFactoryN
Please sign in to leave a comment.
I'm sorry to say, but we no longer support JavaFX and provide its SDK as is in the plugin. If the plugin does not work with your code, please migrate the code to JCEF.
https://blog.jetbrains.com/platform/2020/07/javafx-and-jcef-in-the-intellij-platform
https://plugins.jetbrains.com/docs/intellij/jcef.html?from=jetbrains.org
But when plugin activation (show jfxpanel) , IDE crash quit !!!
Simon, can you please explain again, how to reproduce this issue?
We use JavaFx load web login page, when trigger login dialog, IDE crash quit.
1. idea.log
InteropFactory: cannot load com.sun.javafx.embed.swing.newimpl.InteropFactoryN
2. java_error_in_idea_94698.log (on user directory), show some part:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x0000000102f8f19f, pid=94698, tid=140647
#
# JRE version: OpenJDK Runtime Environment (11.0.7+10) (build 11.0.7+10-b944.20)
# Java VM: OpenJDK 64-Bit Server VM (11.0.7+10-b944.20, mixed mode, tiered, compressed oops, concurrent mark sweep gc, bsd-amd64)
# Problematic frame:
# V [libjvm.dylib+0x3e119f] jni_CallStaticBooleanMethodV+0xdf
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
Similar bug https://bugs.openjdk.java.net/browse/JDK-8210759
crash code: WebView().engine.load("https://xxx")https://bugs.openjdk.java.net/browse/JDK-8213806
Simon,
Please try this JBR built with jdk.unsupported.desktop module, as suggested in JDK-8210759, and write here about the results. It's for testing purpose only.
https://drive.google.com/file/d/1csMjUPPRbk9T_3HpPIx4YL4kThxqs67e/view?usp=sharing
For switching to the new JBR, please follow: https://intellij-support.jetbrains.com/hc/en-us/articles/206544879-Selecting-the-JDK-version-the-IDE-will-run-under
Note that the downloaded JBR should be unpacked before using it in the IDE.
I've reliably reproduced the same problem with InteliJ Ultimate 2020.2.2, using a free trial of the https://plugins.jetbrains.com/plugin/13538-code-review-for-bitbucket plugin. I can create an inline comment but, when I save it and then click the "comment bubble" to view the rendered comment, the IDE quits shortly after. I see the same log message given by the original poster, associated with the "STDERR" logger. (Sometimes the plugin shows the rendered view, sometimes just a blank panel, sometimes it quits without showing any UI.) I set up the IDE to use the above "for testing" downloaded runtime but that didn't help -- same result.
In case it matters I'm using plugin version 2020.7.202.
Any updates on this problem? I'm having the same issue.