Open manuelwallrapp opened 11 months ago
Hi @manuelwallrapp, could you please share with me your OS version and your processor's architecture? Also, could you include a concise reproducer for this issue?
Hi @selhagani
I have following data: Processor Architecture is: Apple M1 Max OS: 14.1.2 (23B92) Memory: 64 Gb
I also tried to build with and get the same issue: java 17.0.9 2023-10-17 LTS Java(TM) SE Runtime Environment Oracle GraalVM 17.0.9+11.1 (build 17.0.9+11-LTS-jvmci-23.0-b21) Java HotSpot(TM) 64-Bit Server VM Oracle GraalVM 17.0.9+11.1 (build 17.0.9+11-LTS-jvmci-23.0-b21, mixed mode, sharing)
We have this issue since we updated the Quarkus Version from 3.5.3 to 3.6.0. Most probably a simple Quarkus Project will build, but our project has some lines of code which might be an Issue I can imagine.
Is there an option I give you the sourcecode privately?
You don't have to share with me the whole source code of your project. All we need is a simple and concise reproducer that will allow us to reproduce the error on our end.
I could reproduce it with this little project.
Apache Maven 3.9.2 (c9616018c7a021c1c39be70fb2843d6f5f9b8a1c) Maven home: /Users/manuel/.sdkman/candidates/maven/current Java version: 21, vendor: Oracle Corporation, runtime: /Users/manuel/.sdkman/candidates/java/21-graal Default locale: en_CH, platform encoding: UTF-8 OS name: "mac os x", version: "14.1.2", arch: "aarch64", family: "mac"
I build it with this command: mvn clean install -Pnative -Dnet.bytebuddy.experimental -DskipTests
I hope you can reproduce this error on your machine. On my machine the same error comes with the sample project.
I'm afraid I can't test your project if you send it to me in a zip format since it's against our policy. Could you please provide a link to the repository of the sample project on Github? Thanks.
Does this work for you?
I tried to reproduce the issue on my end using the project you provided, but I'm getting a different error.
[ERROR] Failed to execute goal on project quarkus-graal-test: Could not resolve dependencies for project org.acme:quarkus-graal-test:jar:1.0.0-SNAPSHOT: Could not find artifact ch.sbb.esta.quarkus.tektonclient:esta-quarkus-tekton-client:jar:3.6.0 in central (https://repo.maven.apache.org/maven2)
Ok, I removed the internal dependency. Need to pull and try again.
I managed to reproduce the issue on my end. I shared this with our dev team. Thanks for sharing this bug with us.
Any update on this? When can we expect a release with a fix for this issue?
No updates just yet. I will share an update with you as soon as I have one. Thanks for your patience.
No updates just yet. I will share an update with you as soon as I have one. Thanks for your patience.
Thank you! Hopefully it won't be much longer…
With the new GraalVM 21.0.2 Community Edition I bring the build through. With the GraalVM 21.0.2 Oracle not. Kinda weird. Maybe you can test as well @metacosm ?
So I tested the build two times with each GraalVM which I select with sdkman.io. There I have two identifiers: 21.0.2-graalce (Community Edition) works with this one. 21.0.2-graal (Oracle)
The Community Edition builds faster, with less memory and without failure. With the Oracle version I have still the error above and it runs into a outofmemory error while the Community Edition doesn't when I tighten the memory settings.
21.0.2-graalce seems to work for my use case. Oracle fails with the same error. Weird.
We landed a fix that addresses this partially a while ago (master: https://github.com/oracle/graal/commit/925e13883488d3e9e2bd8c7409e9bf2d3e18f5c3 and 22.3: https://github.com/oracle/graal/commit/35328305fa4d7c309ea4a39d13709d5d0ea0ce15). So could you try a newer GraalVM release, at least 22.3? The reproducer at https://github.com/manuelwallrapp/quarkus-graal-test.git works locally for me with a recent snapshot release.
That said, there is still room for improvement to handle this situation better. We have a ticket internally for that (GR-46421).
If I build my Quarkus App with GraalVM 21.01. There exists a similar bug
java --version output: java 21.0.1 2023-10-17 Java(TM) SE Runtime Environment Oracle GraalVM 21.0.1+12.1 (build 21.0.1+12-jvmci-23.1-b19) Java HotSpot(TM) 64-Bit Server VM Oracle GraalVM 21.0.1+12.1 (build 21.0.1+12-jvmci-23.1-b19, mixed mode, sharing)
There existed a similar Issue: https://github.com/oracle/graal/issues/7367