sejda-pdf / webp-imageio

Java ImageIO WebP support
Apache License 2.0
198 stars 74 forks source link

Library crashes JVM when running on Synology DS1621 #19

Open mcpierce opened 2 years ago

mcpierce commented 2 years ago

Describe The Bug My project uses imageio-webp to process archives containing WebP images. A user reported to me that, when processing a file containing WebP image while running our app in a Docker container on a Synology DS1621 (1520+ CPU: 2 GHz Intel Celeron J4125 Quad-Core & 8 GB DDR4 1621+ CPU: 2.2 GHz AMD R-Series Ryzen V1500B Quad-Core & base 4 GB EEC DDR4) imageio-webp consistently crashes the JVM.

The same code processes other image types (JPEG, PNG) without a problem.

To Reproduce The Bug Steps to reproduce the behavior. Please be as complete as possible and describe the exact steps and values used to cause the error:

  1. Launch ComiXed in the Docker container on the Synology platform.
  2. Attempt to import a file containing a WebP image.
  3. The imageio-webp library crashes and brings down the JVM.

Expected Behavior

  1. The library should process the image without crashing.

Additional Context The WebP code works correctly when run on other platforms, such as MacOS with Intel CPU, Windows and Linux boxes. The problem seems to be an issue on the specified platform.

PoloDePoli commented 2 years ago

I have tested the application ComiXed on both a Synology DS1520+ with an Intel Celeron J4125 as well as on a Synology DS1621+ with a AMD Ryzen. The docker crashed as described in the main bug description on both machines. Both machines were running docker-compose v1.29.2 (docker v20.10.3).

mcpierce commented 2 years ago

Following up on this, has there been any investigation or idea of when a fix would be available?