-
Notifications
You must be signed in to change notification settings - Fork 29
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
The dreaded NullPointerException in sun.awt.FontConfiguration #25
Comments
Hi, Please try adding the following lines into your Dockerfile:
|
When adding native Alpine Linux packages using apk it's important to keep in mind that Liberica JDK within this image is glibc-based. Thus it's required to run /usr/glibc/sbin/ldconfig manually after adding any system packages. This includes adding apk packages in Dockerfile directly. For example:
|
after add RUN apk add --no-cache fontconfig ttf-dejavu && /usr/glibc/sbin/ldconfig. `[error occurred during error reporting ((null)), id 0xb, SIGSEGV (0xb) at pc=0x00007f162879acf4] [error occurred during error reporting (printing fatal error message), id 0xb, SIGSEGV (0xb) at pc=0x00007f162879acf4] [error occurred during error reporting (printing type of error), id 0xb, SIGSEGV (0xb) at pc=0x00007f162879acf4] [error occurred during error reporting (printing exception/signal name), id 0xb, SIGSEGV (0xb) at pc=0x00007f162879acf4] [error occurred during error reporting (printing current thread and pid), id 0xb, SIGSEGV (0xb) at pc=0x00007f162879acf4] [error occurred during error reporting (printing error message), id 0xb, SIGSEGV (0xb) at pc=0x00007f162879acf4] [error occurred during error reporting (printing Java version string), id 0xb, SIGSEGV (0xb) at pc=0x00007f162879acf4] [error occurred during error reporting (printing problematic frame), id 0xb, SIGSEGV (0xb) at pc=0x00007f162879acf4] [error occurred during error reporting (printing core file information), id 0xb, SIGSEGV (0xb) at pc=0x00007f162879acf4] [error occurred during error reporting (printing bug submit message), id 0xb, SIGSEGV (0xb) at pc=0x00007f162879acf4] [error occurred during error reporting (printing summary), id 0xb, SIGSEGV (0xb) at pc=0x00007f162879acf4] [error occurred during error reporting (printing VM option summary), id 0xb, SIGSEGV (0xb) at pc=0x00007f162879acf4] [error occurred during error reporting (printing summary machine and OS info), id 0xb, SIGSEGV (0xb) at pc=0x00007f162879acf4] [error occurred during error reporting (printing date and time), id 0xb, SIGSEGV (0xb) at pc=0x00007f162879acf4] [error occurred during error reporting (printing thread), id 0xb, SIGSEGV (0xb) at pc=0x00007f162879acf4] [error occurred during error reporting (printing current thread), id 0xb, SIGSEGV (0xb) at pc=0x00007f162879acf4] [error occurred during error reporting (printing current compile task), id 0xb, SIGSEGV (0xb) at pc=0x00007f162879acf4] [error occurred during error reporting (printing stack bounds), id 0xb, SIGSEGV (0xb) at pc=0x00007f162879acf4] [error occurred during error reporting (printing native stack), id 0xb, SIGSEGV (0xb) at pc=0x00007f162879acf4] [error occurred during error reporting (printing Java stack), id 0xb, SIGSEGV (0xb) at pc=0x00007f162879acf4] [error occurred during error reporting (printing target Java thread stack), id 0xb, SIGSEGV (0xb) at pc=0x00007f162879acf4] [error occurred during error reporting (printing siginfo), id 0xb, SIGSEGV (0xb) at pc=0x00007f162879acf4] [error occurred during error reporting (CDS archive access warning), id 0xb, SIGSEGV (0xb) at pc=0x00007f162879acf4] [error occurred during error reporting (printing register info), id 0xb, SIGSEGV (0xb) at pc=0x00007f162879acf4] [error occurred during error reporting (printing registers, top of stack, instructions near pc), id 0xb, SIGSEGV (0xb) at pc=0x00007f162879acf4] [error occurred during error reporting (inspecting top of stack), id 0xb, SIGSEGV (0xb) at pc=0x00007f162879acf4] [error occurred during error reporting (printing code blob if possible), id 0xb, SIGSEGV (0xb) at pc=0x00007f162879acf4] [error occurred during error reporting (printing VM operation), id 0xb, SIGSEGV (0xb) at pc=0x00007f162879acf4] [error occurred during error reporting (printing process), id 0xb, SIGSEGV (0xb) at pc=0x00007f162879acf4] [error occurred during error reporting (printing user info), id 0xb, SIGSEGV (0xb) at pc=0x00007f162879acf4] [error occurred during error reporting (printing all threads), id 0xb, SIGSEGV (0xb) at pc=0x00007f162879acf4] [Too many errors, abort] ` my dockerfile Work only after change base image: FROM bellsoft/liberica-openjdk-debian:11.0.13-8 |
@kpy3no hi! have you found how to fix it with alpine image? |
@den1ska could you please help? what is the reason of |
Docker images based on Alpine seem to have this problem often:
When i switched to bellsoft/liberica-openjdk-debian, the problem was gone. However I tried the workarounds mentioned in the links above and none of them worked. So I think there must be one slight difference between the alpine-based and the debian-based image that triggers certain fringe cases. I include the stacktrace below. It happens for example when one builds and runs project https://github.com/elbosso/generator-microservices with bellsoft/liberica-openjdk-alpine and then tries to execute
against it.
Stacktrace:
The text was updated successfully, but these errors were encountered: