-
-
Notifications
You must be signed in to change notification settings - Fork 318
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
WebP: OOM for test file #730
Comments
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). |
Unless more detail is provided, like the file you are trying to decode, and the code you use, unfortunately, this isn't something I can use to fix the issue. Note that the file size is not what matters, it's the decoded file and how it is compressed. Using 20 threads will use 20x the memory, that's expected. |
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:
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
The text was updated successfully, but these errors were encountered: