Skip to content

Access Violation Exception from UnpackToRgbPlanesAvx2Reduce #3104

@SunaeK

Description

@SunaeK

Prerequisites

  • I have written a descriptive issue title
  • I have verified that I am running the latest version of ImageSharp
  • I have verified if the problem exist in both DEBUG and RELEASE mode
  • I have searched open and closed issues to ensure it has not already been reported

ImageSharp version

3.1.11

Other ImageSharp packages and versions

.

Environment (Operating system, version and so on)

Windows

.NET Framework version

8.0

Description

AVE From UnpackToRgbPlanesAvx2Reduce.txt

When using our tool with SaveAsJpeg in ImageSharp, I got this AVE error (see attached error log) for certain images.
Changing the method to SaveAsPng resolved the issue.

Also for color images with a pixel count not divisible by 8 and less than 3 pixels over, a padded copy is created to avoid JPEG encoding issues as a work-around.

Steps to Reproduce

When I checked individual images with the SaveAsJpeg method using a few commands, this was fine, so at this point I am not sure.

Images

Images to send.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions