-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[GR-60440] [Native Image] Build hangs and reports a deadlock on JDK 23, compose multiplatform #10258
Comments
Hi @0ffz, Thank you for reaching out to us.
Any idea on what could be wrong here? |
I did more testing recently on Windows, I got a null pointer exception that went away after recreating all the reflect, resources, etc... configs from META-INF. Just deleting them should be enough to get it to build if I recall correctly. I was able to recreate the hanging issue there too, though the exact error you have is unfamiliar to me. If it persists after this, I can try setting up GitHub workflows that produce the error in a more consistent environment. |
Thank you for the hint! I was able to reproduce the issue on my end. We will take a closer look into this issue and I'll make sure to keep you updated. |
Describe the Issue
Native image hangs and reports a deadlock on step 1 (Initializing) when running on JDK 23, but builds successfully on JDK 21 in a compose multiplatform project. I've also not had issues building other projects without compose-multiplatform using the same GraalVM release.
Using the latest version of GraalVM can resolve many issues.
GraalVM Version
Operating System and Version
Linux offz 6.11.10-300.fc41.x86_64 #1 SMP PREEMPT_DYNAMIC Sat Nov 23 00:51:20 UTC 2024 x86_64 GNU/Linux
Build Command
Building via Gradle, see sample project linked above. On my system the process it ends up running shows up as:
Expected Behavior
Build succeeds as in JDK 21.
Actual Behavior
Build hangs, gets killed after ~10min, native image process memory stop growing at ~3.7GB, cpu is being used until the process gets killed.
Steps to Reproduce
export JAVA_HOME=path/to/graalvm
./gradlew nativeCompile --no-daemon
(to ensure you're usingJAVA_HOME
)Additional Context
Running Kotlin 2.1.0 which now has support for JDK 23 out of the box, compose-multiplatform 1.7.1, the application itself starts on JVM without problems (
./gradlew run --no-daemon
similar to above steps)Build Log Output and Error Messages
Full error log:
The text was updated successfully, but these errors were encountered: