-
-
Notifications
You must be signed in to change notification settings - Fork 427
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 Crash: partition 0 overflow (> 512K) with method 0/1 on 60MP JPG in Release Mode #1799
Comments
I will update the issue template to make this more clear but you can zip it in multiple files with a size limit per zip file. But it also looks like I need 216 files to reproduce this? I would advise you to create a repository on GitHub that demonstrates the issue. I don't have enough information to reproduce your issue. |
I moved the image(s) causing the issues to a separate folder and got these errors. Because of parallelism, different threads may hit different images, so two different images have caused issues. I've broken them down into 10mb zip files. ImageMagickTest001.zip "0" ImageMagick.MagickCorruptImageErrorException "1" ImageMagick.MagickCorruptImageErrorException |
Can you also reproduce this with the latest release that was published today? |
Yes. I shall test that today. BTW, ImageMagick is really fast at "2". I converted 5244 files totaling 42GB of JPG space to 16GB of webP space in 5 minutes. At "6", it took 22 minutes resulting in 15GB of webP space. |
Same error using 14.5.0. ImageMagick.MagickCorruptImageErrorException |
It looks like you are running into a limitation of the webp format (https://developers.google.com/speed/webp/docs/cwebp)
I suspect you will need to go through these docs to find the best options for your situation. |
Thank you for that information.. It is good to know that the root cause is an inherent limitation of the webP format and those limitations can be avoided by setting the parameters appropriately. |
Magick.NET version
14.4.0 Magick.NET-Q16-AnyCPU
Environment (Operating system, version and so on)
Windows 11, Visual Studio 2022, 64-bit,
Description
Converting a 60MP JPG (9504x6336px, 34MB) to WebP with
MagickFormat.Webp
,"method", "0"
or"1"
, crashes in release mode but works in debug."method", "2"
+ are stable.Debugging in Release mode gave this error:
HResult=0x80131500
Message=One or more errors occurred.
Source=
StackTrace:
This exception was originally thrown at this call stack:
[External Code]
Inner Exception 1:
MagickCorruptImageErrorException: partition 0 overflow (> 512K) `D:\2024\April\PJD09269.webp' @ error/webp.c/WriteSingleWEBPImage/893
Steps to Reproduce
Steps to Reproduce:
MagickImage
.image.Settings.SetDefine(MagickFormat.Webp, "method", "0")
, quality 80.Error:
Sorry, File won't upload. I can email it.
Images
The text was updated successfully, but these errors were encountered: