matthiasblaesing commented on issue #9468: URL: https://github.com/apache/netbeans/issues/9468#issuecomment-4950986363
The crasher is caused by JDK 26 removing the module `jdk.jsobject`. I built JFX from source and this is the stack trace I got, which now contains symbol information: ``` Stack: [0x0000776374200000,0x0000776374400000], sp=0x00007763743fc320, free space=2032k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) V [libjvm.so+0xb1de57] get_method_id(JNIEnv_*, _jclass*, char const*, char const*, bool, JavaThread*) [clone .isra.0]+0xc7 V [libjvm.so+0xb1e4e7] jni_GetMethodID+0xa7 C [libjfxwebkit.so+0x17346d7] JSC::Bindings::convertValueToJValue(JSC::JSGlobalObject*, JSC::Bindings::RootObject*, JSC::JSValue, JSC::Bindings::JavaType, char const*)+0xbd7 C [libjfxwebkit.so+0x1727a3e] WebCore::JSValue_to_Java_Object(OpaqueJSValue const*, JNIEnv_*, OpaqueJSContext const*, JSC::Bindings::RootObject*)+0x2e C [libjfxwebkit.so+0x1727bdc] WebCore::executeScript(JNIEnv_*, OpaqueJSValue*, OpaqueJSContext const*, JSC::Bindings::RootObject*, _jstring*)+0x7c C [libjfxwebkit.so+0x864b5c] Java_com_sun_webkit_WebPage_twkExecuteScript+0x12c j com.sun.webkit.WebPage.twkExecuteScript(JLjava/lang/String;)Ljava/lang/Object;+0 j com.sun.webkit.WebPage.executeScript(JLjava/lang/String;)Ljava/lang/Object;+78 j javafx.scene.web.WebEngine.executeScript(Ljava/lang/String;)Ljava/lang/Object;+19 j org.netbeans.html.boot.fx.AbstractFXPresenter.defineJSFn(Ljava/lang/String;[Ljava/lang/String;[Z)Lorg/netbeans/html/boot/fx/AbstractFXPresenter$JSFn;+167 j org.netbeans.html.boot.fx.AbstractFXPresenter.defineFn(Ljava/lang/String;[Ljava/lang/String;[Z)Lorg/netbeans/html/boot/spi/Fn;+4 j org.netbeans.html.boot.spi.Fn.define(Ljava/lang/Class;ZLjava/lang/String;[Ljava/lang/String;)Lorg/netbeans/html/boot/spi/Fn;+74 j org.netbeans.html.ko4j.KOSockets.areWebSocketsSupported()Z+22 ``` This brings us here: https://github.com/openjdk/jfx/blob/7e2c0d435a46cd4df9fa8d215f2a943d21cab7d9/modules/javafx.web/src/main/native/Source/WebCore/bridge/jni/jsc/JNIUtilityPrivate.cpp#L47 https://github.com/openjdk/jfx/blob/7e2c0d435a46cd4df9fa8d215f2a943d21cab7d9/modules/javafx.web/src/main/native/Source/WebCore/bridge/jni/jsc/JNIUtilityPrivate.cpp#L136-L144 https://github.com/openjdk/jfx/blob/7e2c0d435a46cd4df9fa8d215f2a943d21cab7d9/modules/javafx.web/src/main/java/com/sun/webkit/dom/JSObject.java The interesting bit is, that `FindClass` yields a non-null result, but the GetMethodId call then fails. I suspect that an exception is raised, which yield to the class being loaded but not useable. Looking at the documentation of JDK26 this makes sense. The `jdk.jsobject` module was removed and that provided the classes `JSObject.java` uses/extends. The class can thus not be initialized. Readding the missing classes makes it work again and in fact `jdk.jsobject` transfered from the JDK to JFX. #9498 bring JFX to the latest version still "supporting" JDK21 and adds a NB module providing said classes. @mbien can you please check if your problem is fixed For the rest: for me the problem on Linux is fixed by this, please also check. Thank you. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
