Closed rgambelli closed 7 months ago
Please check if [1] helps.
I'l like to note that the images you use are Alpine with glibc planted inside it, and Liberica there is a glibc variant. This can cause crashes as pointed out in the issue. Because of that, please consider other images, such as liberica-runtime-container. It's based on Alpaquita Linux, we created this Linux distribution specifically to address this kind of issues, it has two variants: one based on musl and another based on glibc. Hence you can choose one based on you application dependencies.
[1] https://github.com/bell-sw/Liberica/issues/25 [2] https://hub.docker.com/r/bellsoft/liberica-runtime-container
If this does not help, please provide a log with -Dsun.java2d.debugfonts=true
Thanks @voitylov, we have just found that using bellsoft/liberica-openjdk-alpine-musl:17.0.10 resolved our problem, looking carefully what I used before, it was musl too, so for me it's better remain in musl (consider that I don't really know which are the differences between glibc and musl, can you explain in short?)
I would like to point you that at the end of this https://hub.docker.com/r/bellsoft/liberica-openjdk-alpine there is a section talking about Font issues but the hint suggested doesn't work
Thanks
musl [1] and glibc [2] are two different implementations of the C standard library. Liberica provides binaries for both implementations. From a practical, java developer standpoint what is important is that binary compatibility between the two standard libraries is very limited, rendering it nearly impossible to load an .so compiled for, say, glibc on musl system.
If you were running on musl-based system, you should either use liberica-openjdk-alpine-musl (which has Alpine as the base OS) or liberica-runtime-container with tag musl (which has Alpaquita as the base OS). Both are a good choice.
[1] https://musl.libc.org/ [2] https://www.gnu.org/software/libc/
Hi all,
we are converting our microservices application to use liberica-openjdk-alpine:17.0.10 in place of eclipse-temurin:17-jdk-alpine, our dockerfile generally is simple like this:
we have just found an issue that we haven't with eclipse-temurin image, it seems a font issue or something related to Graphics2D, here follows the stacktrace:
Fontconfig is installed:
Could you help us find a solution? Thanks