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

jdk23 alpine - tools/jpackage/share/RuntimeImageTest.java failed #5892

Open
sophia-guo opened this issue Jan 22, 2025 · 0 comments
Open

jdk23 alpine - tools/jpackage/share/RuntimeImageTest.java failed #5892

sophia-guo opened this issue Jan 22, 2025 · 0 comments

Comments

@sophia-guo
Copy link
Contributor

jdk23 alpine both x64 and aarch64 - tools/jpackage/share/RuntimeImageTest.java failed with OutOfMemoryError: Java heap space:

18:11:24  WARNING: Using incubator modules: jdk.incubator.vector
18:11:24  Error: Java heap space
18:11:24  java.lang.OutOfMemoryError: Java heap space
18:11:24  	at java.base/java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:71)
18:11:24  	at java.base/java.nio.ByteBuffer.allocate(ByteBuffer.java:394)
18:11:24  	at java.base/jdk.internal.jimage.ImageStream.ensure(ImageStream.java:93)
18:11:24  	at java.base/jdk.internal.jimage.ImageStream.put(ImageStream.java:147)
18:11:24  	at jdk.jlink/jdk.tools.jlink.internal.ImageStringsWriter.addString(ImageStringsWriter.java:61)
18:11:24  	at jdk.jlink/jdk.tools.jlink.internal.ImageStringsWriter.add(ImageStringsWriter.java:72)
18:11:24  	at jdk.jlink/jdk.tools.jlink.internal.BasicImageWriter.addString(BasicImageWriter.java:71)
18:11:24  	at jdk.jlink/jdk.tools.jlink.internal.ImageFileCreator$1.addString(ImageFileCreator.java:259)
18:11:24  	at jdk.jlink/jdk.tools.jlink.internal.plugins.StringSharingPlugin$CompactCPHelper.optimize(StringSharingPlugin.java:237)
18:11:24  	at jdk.jlink/jdk.tools.jlink.internal.plugins.StringSharingPlugin$CompactCPHelper.transform(StringSharingPlugin.java:198)
18:11:24  	at jdk.jlink/jdk.tools.jlink.internal.plugins.StringSharingPlugin.lambda$transform$1(StringSharingPlugin.java:310)
18:11:24  	at jdk.jlink/jdk.tools.jlink.internal.plugins.StringSharingPlugin$$Lambda/0x0000003c0128b878.apply(Unknown Source)
18:11:24  	at jdk.jlink/jdk.tools.jlink.plugin.ResourcePool.lambda$transformAndCopy$0(ResourcePool.java:112)
18:11:24  	at jdk.jlink/jdk.tools.jlink.plugin.ResourcePool$$Lambda/0x0000003c01086478.accept(Unknown Source)
18:11:24  	at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
18:11:24  	at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1939)
18:11:24  	at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:807)
18:11:24  	at jdk.jlink/jdk.tools.jlink.plugin.ResourcePool.transformAndCopy(ResourcePool.java:111)
18:11:24  	at jdk.jlink/jdk.tools.jlink.internal.plugins.StringSharingPlugin.transform(StringSharingPlugin.java:305)
18:11:24  	at jdk.jlink/jdk.tools.jlink.internal.plugins.DefaultCompressPlugin.transform(DefaultCompressPlugin.java:62)
18:11:24  	at jdk.jlink/jdk.tools.jlink.internal.ImagePluginStack.visitResources(ImagePluginStack.java:262)
18:11:24  	at jdk.jlink/jdk.tools.jlink.internal.ImageFileCreator.generateJImage(ImageFileCreator.java:184)
18:11:24  	at jdk.jlink/jdk.tools.jlink.internal.ImageFileCreator.writeImage(ImageFileCreator.java:163)
18:11:24  	at jdk.jlink/jdk.tools.jlink.internal.ImageFileCreator.create(ImageFileCreator.java:100)
18:11:24  	at jdk.jlink/jdk.tools.jlink.internal.JlinkTask$ImageHelper.retrieve(JlinkTask.java:935)
18:11:24  	at jdk.jlink/jdk.tools.jlink.internal.ImagePluginStack.operate(ImagePluginStack.java:194)
18:11:24  	at jdk.jlink/jdk.tools.jlink.internal.JlinkTask.createImage(JlinkTask.java:424)
18:11:24  	at jdk.jlink/jdk.tools.jlink.internal.JlinkTask.run(JlinkTask.java:285)
18:11:24  	at jdk.jlink/jdk.tools.jlink.internal.Main.run(Main.java:56)
18:11:24  	at jdk.jlink/jdk.tools.jlink.internal.Main$JlinkToolProvider.run(Main.java:73)
18:11:24  	at java.base/java.util.spi.ToolProvider.run(ToolProvider.java:162)
18:11:24  	at jdk.jpackage.test.Executor.runToolProvider(Executor.java:396)
18:11:24  [23:10:49.890] TRACE: exec: Done. Exit code: 4
18:11:24  [23:10:49.891] ERROR: Expected [0]. Actual [4]: Check command tool provider [jlink --output ./test.dc38e535/runtime/data/temp.runtime --compress=1 --

https://ci.adoptium.net/view/Test_grinder/job/Grinder/12413/console
https://ci.adoptium.net/view/Test_grinder/job/Grinder/12412/console

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

No branches or pull requests

1 participant