Skip to content
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

Fatal error: com.oracle.svm.core.util.VMError$HostedError: guarantee failed #494

Open
Raghunath-SK opened this issue Jul 19, 2024 · 0 comments

Comments

@Raghunath-SK
Copy link

Raghunath-SK commented Jul 19, 2024

Hi, I'm trying to use the paketo-buildpacks for my spring native project. I'm trying paketo as a POC. This is building good, if I have not enabled the datadog agent. Soon after I enabled the datadog agent (BP_DATADOG_ENABLED = true) , Im getting the "Fatal error: com.oracle.svm.core.util.VMError$HostedError: guarantee failed" Im Using graalvm 17 and using the paketo latest (tried old versions aswell) , Ran in windows and also in github actions runner.

Expected Behavior

Should be able to build the native image with the datadog agent enabled.

Current Behavior

Im getting the "Fatal error: com.oracle.svm.core.util.VMError$HostedError: guarantee failed"

Possible Solution

Steps to Reproduce

  1. Create a new spring boot gradle kotlin project (enabled with spring jpa , spring native ).
    Enable the paketo buildpacks and enable the datadog agent.

Motivations

I'm trying to use the paketo-buildpacks for my spring native project. I'm trying paketo as a POC.
Below is the complete error:

[2/8] Performing analysis... [] (76.7s @ 2.22GB) [creator] 30,109 (86.88%) of 34,655 types reachable [creator] 48,519 (63.34%) of 76,601 fields reachable [creator] 127,551 (56.10%) of 227,370 methods reachable [creator] 9,200 types, 801 fields, and 7,282 methods registered for reflection [creator] [creator] Fatal error: com.oracle.svm.core.util.VMError$HostedError: guarantee failed [creator] at org.graalvm.nativeimage.builder/com.oracle.svm.core.util.VMError.shouldNotReachHere(VMError.java:72) [creator] at org.graalvm.nativeimage.builder/com.oracle.svm.core.util.VMError.guarantee(VMError.java:86) [creator] at org.graalvm.nativeimage.builder/com.oracle.svm.core.hub.ClassForNameSupport.registerClass(ClassForNameSupport.java:63) [creator] at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.reflect.ReflectionDataBuilder.registerTypesForGenericSignature(ReflectionDataBuilder.java:726) [creator] at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.reflect.ReflectionDataBuilder.registerTypesForGenericSignature(ReflectionDataBuilder.java:683) [creator] at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.reflect.ReflectionDataBuilder.registerTypesForGenericSignature(ReflectionDataBuilder.java:677) [creator] at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.reflect.ReflectionDataBuilder.registerTypesForClass(ReflectionDataBuilder.java:564) [creator] at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.reflect.ReflectionDataBuilder.registerHeapDynamicHub(ReflectionDataBuilder.java:966) [creator] at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.heap.SVMImageHeapScanner.onObjectReachable(SVMImageHeapScanner.java:155) [creator] at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.heap.ImageHeapScanner.lambda$createImageHeapObject$5(ImageHeapScanner.java:396) [creator] at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.heap.ImageHeapScanner.lambda$postTask$14(ImageHeapScanner.java:759) [creator] at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.util.CompletionExecutor.executeCommand(CompletionExecutor.java:187) [creator] at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.util.CompletionExecutor.lambda$executeService$0(CompletionExecutor.java:171) [creator] at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1395) [creator] at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) [creator] at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) [creator] at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) [creator] at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) [creator] at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) [creator] -------------------------------------------------------------------------------- [creator] 15.9s (16.6% of total time) in 87 GCs | Peak RSS: 4.37GB | CPU load: 9.77 [creator] ================================================================================ [creator] Finished generating 'com.emisinsights.medassistant.batch.BatchApplicationKt' in 1m 33s. [creator] unable to invoke layer creator [creator] unable to contribute native-image layer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant