Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

grpc sample fails with GraalVM 22.1 #1543

Closed
mhalbritter opened this issue Mar 28, 2022 · 1 comment
Closed

grpc sample fails with GraalVM 22.1 #1543

mhalbritter opened this issue Mar 28, 2022 · 1 comment
Labels
type: compatibility Native image compatibility issue
Milestone

Comments

@mhalbritter
Copy link
Contributor

grpc sample build fails with Java 17 22.1.0-dev:

[7/7] Creating image...                                                                                  (0.0s @ 3.25GB)
Fatal error: com.oracle.svm.core.util.VMError$HostedError: com.oracle.svm.core.util.UserError$UserException: Image heap writing found a class not seen during static analysis. Did a static field or an object referenced from a static field change during native image generation? For example, a lazily initialized cache could have been initialized during image generation, in which case you need to force eager initialization of the cache before static analysis or reset the cache using a field value recomputation.
    class: org.springframework.context.annotation.AnnotationScopeMetadataResolver
  reachable through:
    object: [Ljava.lang.Class;@588e060c  of class: java.lang.Class[]
    object: com.oracle.svm.core.code.ImageCodeInfo@df61967  of class: com.oracle.svm.core.code.ImageCodeInfo
    root: com.oracle.svm.core.graal.snippets.CEntryPointSnippets.createIsolate(CEntryPointCreateIsolateParameters, int)

	at com.oracle.svm.core.util.VMError.shouldNotReachHere(VMError.java:72)
	at com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:677)
	at com.oracle.svm.hosted.NativeImageGenerator.run(NativeImageGenerator.java:514)
	at com.oracle.svm.hosted.NativeImageGeneratorRunner.buildImage(NativeImageGeneratorRunner.java:413)
	at com.oracle.svm.hosted.NativeImageGeneratorRunner.build(NativeImageGeneratorRunner.java:591)
	at com.oracle.svm.hosted.NativeImageGeneratorRunner.main(NativeImageGeneratorRunner.java:129)
	at com.oracle.svm.hosted.NativeImageGeneratorRunner$JDK9Plus.main(NativeImageGeneratorRunner.java:621)
@mhalbritter mhalbritter added the type: compatibility Native image compatibility issue label Mar 28, 2022
@mhalbritter mhalbritter added this to the 0.11.4 milestone Mar 28, 2022
@mhalbritter
Copy link
Contributor Author

I got a build from Graal team which is based on oracle/graal#4414, which fixes this issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: compatibility Native image compatibility issue
Development

No branches or pull requests

1 participant