镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

PNG encoder throws an exception on x64 #1228

Closed

Description

@hishamco

Seems there's a lake on supporting this on 64 bit, for more details, please refer to OrchardCMS/OrchardCore#6414

Activity

  1. antonfirsov commented on Jun 15, 2020

    @antonfirsov
    Member

    @hishamco to make it actionable for us, can you please:

    1. Fill the issue template, making sure you include:
    • The exact type of your CPU
    • .NET Core version
    • OS version
    1. Provide the PNG you are trying to resize. Note: based on stack trace, the issue is in the PNG encoder.
  2. changed the title [-]Image resize throws an exception on x64[/-] [+]PNG encoder throws an exception on x64[/+] on Jun 15, 2020
  3. ArieGato commented on Jun 15, 2020

    @ArieGato

    Steps to Reproduce

    fire the following request to OrchardCore: https://my.domain/media/myimage.png?width=100

    System Configuration

    • ImageSharp version:
      SixLabors.ImageSharp 1.0.0-rc0002

    • Other ImageSharp packages and versions:
      SixLabors.ImageSharp.Web 1.0.0-rc0003

    • Environment (Operating system, version and so on):

    Published the web site in devops

    - task: DotNetCoreCLI@2
      inputs:
        command: 'publish'
        publishWebProjects: false
        projects: '**/CmsWeb.csproj'
        arguments: '-o $(Build.ArtifactStagingDirectory) -r win-x64 --self-contained'
    

    windows server 64 bit.
    .net core 3.1.5

    It fails for all the png files I tested, but here's an example.
    digid

  4. JimBobSquarePants commented on Jun 15, 2020

    @JimBobSquarePants
    Member

    Throwing line is here.

    Vector128<short> mad1 = Ssse3.MultiplyAddAdjacent(bytes1, tap1);

    The fix should be simple. I'm checking for Sse3 not the correct supplementary Ssse3 support.

    Ssse3.MultiplyAddAdjacent.MultiplyAddAdjacent(Vector128<byte> left, Vector128<sbyte> right)
  5. added a commit that references this issue on Jun 15, 2020
    69cd2f3
  6. added this to the 1.0.0 milestone on Jun 15, 2020
  7. sebastienros commented on Jun 15, 2020

    @sebastienros

    Would this happen on any Windows machine or does it depend on the cpu ?

  8. JimBobSquarePants commented on Jun 15, 2020

    @JimBobSquarePants
    Member

    @sebastienros depends on the CPU. Many (most) likely support Ssse3

    https://en.m.wikipedia.org/wiki/SSSE3

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

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions