KevinnZou / compose-webview-multiplatform

WebView for JetBrains Compose Multiplatform
https://kevinnzou.github.io/compose-webview-multiplatform/
Apache License 2.0
305 stars 39 forks source link

Crash when opening the application from fleet with jdk 17 in desktop #134

Open mibaldi opened 1 month ago

mibaldi commented 1 month ago

When I run the app with the library and launch the basicWebView I get the following error:

Debug: (ComposeWebView) wv.handleNavigationEvents()

 A fatal error has been detected by the Java Runtime Environment:

 EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ff82bb93d96, pid=1149440, tid=1147412
JRE version: Java(TM) SE Runtime Environment (17.0.10+11) (build 17.0.10+11-LTS-240)
 Java VM: Java HotSpot(TM) 64-Bit Server VM (17.0.10+11-LTS-240, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)
 Problematic frame:
 V  [jvm.dll+0x1c3d96]

 No core dump will be written. Minidumps are not enabled by default on client versions of Windows

 An error report file with more information is saved as:
 E:\DESCARGAS\KotlinProjectPrinter\KotlinProjectPrinter\composeApp\hs_err_pid1149440.log

I am running it with the Fleet IDE from a Windows 11 I have jdk 17

I attach the logs: hs_err_pid1149440.log

KevinnZou commented 1 month ago

@mibaldi Try to add release("jbr-release-17.0.10b1087.23") to KCEF.init block as this issue did.

You could refer to this issue for details.

mibaldi commented 3 weeks ago

@KevinnZou Thanks with that line I have not had any problems with windows.

now I have installed it on a raspberry and it gives me the following problem:

 A fatal error has been detected by the Java Runtime Environment:

  SIGSEGV (0xb) at pc=0x0000000000000000, pid=2187, tid=2210

 JRE version: OpenJDK Runtime Environment Microsoft-9388408 (17.0.11+9) (build 17.0.11+9-LTS)
 Java VM: OpenJDK 64-Bit Server VM Microsoft-9388408 (17.0.11+9-LTS, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
 Problematic frame:
 C  [libskiko-linux-arm64.so+0x743b10]  GrGLBuffer::onUpdateData(void const*, unsigned long, unsigned long, bool)+0xc8

 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:
 /home/mibaldi/Desktop/hs_err_pid2187.log

 If you would like to submit a bug report, please visit:
   https://github.com/microsoft/openjdk/issues
 The crash happened outside the Java Virtual Machine in native code.
 See problematic frame for where to report the bug.

I attach the logs: hs_err_pid2187.log

I found this thread that discusses the error. https://github.com/JetBrains/skiko/issues/838