Skip to content

WebP Crash: partition 0 overflow (> 512K) with method 0/1 on 60MP JPG in Release Mode #1799

Description

@PatJDooley

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:

  1. Load 9504x6336px JPG (34MB) with MagickImage.
  2. Set image.Settings.SetDefine(MagickFormat.Webp, "method", "0"), quality 80.
  3. Write to WebP in release build (VS Community, .NET 6/8).
  4. Crashes after processing around 216 similar JPG files. .

Error:

Sorry, File won't upload. I can email it.

Images

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions