Open BigMichi1 opened 1 year ago
Thanks for reporting!
While your WebP file is rather large (8000 x 6000 x 3 ~= 140 MB in memory), I have to agree that the memory requirements for decoding seem a bit unreasonable...
I didn't write this code myself, so I don't know it with enough detail to say much about why the requirements are this high, or what can be done to optimize the memory usage. Any insights or suggestions at optimizations are very welcome!
I'm having a similar issue with running things on a Raspberry Pi box. My project's unit tests fail, but they pass on other platforms (MacOS, Windows, Linux).
Describe the bug we have a sample webp file which causes an OOM and we want to understand if this is something we need to expect (reading webp files need a lot of memory) or if there is something not correct in the image reader.
Version information
The version of the TwelveMonkeys ImageIO library in use. 3.9.4
The exact output of
java --version
(orjava -version
for older Java releases). For example:Extra information about OS version, server version, standalone program or web application packaging, executable wrapper, etc. Please state exact version numbers where applicable.
To Reproduce Steps to reproduce the behavior:
Expected behavior should work with Xmx lower than 1280m
Example code
Less is more. Don't add your entire project, only the code required to reproduce the problem. 😀
Sample file(s) sample-webp-file-for-testing.zip
Stak trace