Skip to content

ImageSharp broken on .NET 5 #42912

Closed
Closed

Description

@tannergooding

SixLabors/ImageSharp#1356 was raised as ImageSharp being broken on .NET 5 RC 1.

Although it is still not clear if this is an issue with dotnet/runtime or maybe something wrong with the project (such as incorrect build targets/dependencies), this quantifies as something we would classify as blocking-release if it is indeed an issue coming from the runtime or libraries themselves.

This is being opened as a tracking issue until we can finish root causing the issue and determine what here is broken.

Activity

  1. added
    tracking-external-issue
    on Sep 30, 2020
  2. added
    untriaged
    on Sep 30, 2020
  3. removed
    untriaged
    on Sep 30, 2020
  4. tannergooding commented on Sep 30, 2020

    @tannergooding
    MemberAuthor

    CC. @danmosemsft, @jeffschwMSFT, @richlander

    Going to assign this to myself and will try to work with James to ensure we can resolve the issue.

  5. added this to the 5.0.0 milestone on Sep 30, 2020
  6. AaronRobinsonMSFT commented on Sep 30, 2020

    @AaronRobinsonMSFT
    Member

    @tannergooding Please reach out to me if you need any help investigating this or there is even a small chance it is interop related.

  7. safern commented on Sep 30, 2020

    @safern
    Member

    @tannergooding I would be surprised if this was System.Drawing issue as ImageSharp doesn't use it, right?

  8. tannergooding commented on Sep 30, 2020

    @tannergooding
    MemberAuthor

    Yeah, I don't think this is area-System.Drawing (CC. @jeffhandley).

    I don't think there is a good area we can categorize this as other than just "tracking-external-issue", at least until we can determine if it is actually a runtime issue or not.

    The latest comments indicate (SixLabors/ImageSharp#1356 (comment)):

    Just to re-iterate, I only see the issue when deploying a release configuration to an Azure App Service from Visual Studio 2019 with a self-contained .Net 5 RC-1 runtime being installed. And only when the App Service is rather limited in memory. Is there anyway we can use that exact setup to recreate the issue?

  9. 52 remaining items

  10. echesakov commented on Oct 2, 2020

    @echesakov
    Contributor

    To double check this I will run ImageSharp repro with 5.0.100 RC2

    5.0.0-rc.2.20475.5 works as expected - no image corruption

  11. JulieLeeMSFT commented on Oct 2, 2020

    @JulieLeeMSFT
    Member

    5.0.0-rc.2.20475.5 works as expected - no image corruption

    Great! Did we test on Windows/Linux as well as single proc machine as others observed issues there?

  12. echesakov commented on Oct 2, 2020

    @echesakov
    Contributor

    5.0.0-rc.2.20475.5 works as expected - no image corruption

    Great! Did we test on Windows/Linux as well as single proc machine as others observed issues there?

    I did the test only on the single proc Windows machine that Manish provided me.

  13. tannergooding commented on Oct 2, 2020

    @tannergooding
    MemberAuthor

    git bisect reports the same. b1f107e is good and f6b31c2 is bad.

    The assert goes away as does the image corruption.

    From the PR it isnt very clear why it would be consistent failure only on single proc. Is there an explanation?

    The AVX register is meant to be ECX, bit 28. One of the queries was checking EDX, bit 28 by accident.

    EDX, bit 28 is the bit that indicates Multi-Threading support:
    image

    A value of 0 for HTT indicates there is only a single logical processor in
    the package and software should assume only a single APIC ID is reserved. A value of 1 for HTT indicates the
    value in CPUID.1.EBX[23:16] (the Maximum number of addressable IDs for logical processors in this package) is
    valid for the package.

  14. echesakov commented on Oct 2, 2020

    @echesakov
    Contributor

    @JulieLeeMSFT I am checking Linux x64 runtime now - rc1 vs rc2

  15. mangod9 commented on Oct 2, 2020

    @mangod9
    Member

    EDX, bit 28 is the bit that indicates Multi-Threading support:

    Ah makes sense now.

  16. echesakov commented on Oct 2, 2020

    @echesakov
    Contributor

    Have troubles reproducing this locally on Linux - no matter what I do the cpuid still shows HTT to be set and there is no repro of the issue on both rc1 and rc2.

    @brianpopow as far as I understood from SixLabors/ImageSharp#1356 you managed to repro this on Linux - could you do this only an Azure VM or you also had a local repro?

  17. echesakov commented on Oct 3, 2020

    @echesakov
    Contributor

    I managed to get the repro on Linux. In order to do that I created a Hyper-V VM with one CPU and loaded an Ubuntu Live image.

    I can confirm that the issue there was fixed with RC2. Attached are the result of Manish's repro with .NET 5.0 RC1 and RC2:

    5.0.100-rc.1.20454.5
    garden-rc1
    5.0.100-rc.2.20480.7
    garden-rc2

  18. mangod9 commented on Oct 3, 2020

    @mangod9
    Member

    Thanks @echesakovMSFT and @tannergooding for investigating! @JimBobSquarePants @tocsoft @brianpopow, if you could also please validate we can close this out. .net 5 RC2 should be releasing in two weeks. Thx!

  19. brianpopow commented on Oct 3, 2020

    @brianpopow

    @mangod9 is there a docker image of .net 5 RC2 available? That would be the easiest way for me to reproduce this.

  20. mangod9 commented on Oct 3, 2020

    @mangod9
    Member

    @brianpopow unfortunately docker images are not built for daily builds. You could manually install the sdk from here: https://github.com/dotnet/installer/blob/master/README.md#installers-and-binaries. Another option could be to build the repro app as a self-contained using RC2 for xcopy deployment to the single proc image or VM.

  21. brianpopow commented on Oct 5, 2020

    @brianpopow

    @mangod9: me and @antonfirsov have tested with the current dotnet master branch and can confirm that the issue is fixed.

    Thanks to all for investigating this issue!

  22. mangod9 commented on Oct 5, 2020

    @mangod9
    Member

    great, thanks for confirming. Will close this now :)

  23. ghost locked as resolved and limited conversation to collaborators on Dec 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-VM-coreclrblocking-releasetracking-external-issue

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions