sejda-pdf / webp-imageio

Java ImageIO WebP support
Apache License 2.0
212 stars 80 forks source link

It crashes in Alpine Linux 3.13 and 3.14 #20

Open DavidPerezIngeniero opened 3 years ago

DavidPerezIngeniero commented 3 years ago

Alpine Linux is very used in Docker containers because it is very lightweight. The result is that it always crashes with Java 11: SIGSEGV (0xb) at pc=0x000000000000b8a6

  com.luciad.imageio.webp.WebP.decode(J[BII[IZ)[I+0
  com.luciad.imageio.webp.WebP.decode(Lcom/luciad/imageio/webp/WebPDecoderOptions;[BII[I)[I+64
  com.luciad.imageio.webp.WebPReader.read(ILjavax/imageio/ImageReadParam;)Ljava/awt/image/BufferedImage;+53
  javax.imageio.ImageIO.read(Ljavax/imageio/stream/ImageInputStream;)Ljava/awt/image/BufferedImage;+55 java.desktop@11.0.13
  javax.imageio.ImageIO.read(Ljava/io/InputStream;)Ljava/awt/image/BufferedImage;+34 java.desktop@11.0.13

Probably it is due to the fact that Alpine uses muslib and the native libray uses glibc. How can I recompile the native library for Alpine?

doublewaters commented 2 years ago

In the docker of openjdk:8-alpine ,i meet this error also,how did you solve this problem image