-
-
Notifications
You must be signed in to change notification settings - Fork 887
Fix issue when writing lossy webp with alpha data #2173
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
Conversation
|
There are new failing tests with .Net7.0, this time on macos only. 222 are failing: |
|
That’s concerning. @tannergooding sorry to page but are there changes coming to .NET 7 we should know about? |
|
Do you have a simple repro? I don't immediately see any changes to the .NET 7 version or to any code newly using |
Hi @tannergooding. I am not 100% sure if this will be enough, but from the error messages in this CI run I would assume just calling: on a Mac should be enough to trigger this. Since I do not have a Mac, I cannot verify that. |
|
This might be an issue specifically around a machine with |
|
Thanks @tannergooding I've been unable to reproduce this on my old 2.7 GHz Dual-Core Intel Core i5 |
|
I got some environmental info via #2175 I'm at a loss to explain the cause. |
I think Tanner is on the right track with his guess that it's maybe related to a machine with AVX but not AVX2. Intel Xeon CPU E5-1650 only has AVX from what I can tell. |
|
Edit: Missed your update @brianpopow 😄
Seems correct, E5-1650 v2 is Ivy Bridge. Maybe we can workaround these issues to get back clean CI until there is an upstream fix? We can disable Avx path on .NET7 when ImageSharp/src/ImageSharp/Formats/Jpeg/Components/FastFloatingPointDCT.cs Lines 113 to 116 in e54219a
|
You mean for this instance? I think we're just hitting this one cos it comes first. We use |
|
Ok, I can reproduce the issue and will work on getting a fix up on the dotnet/runtime side. |
|
AWESOME! |
Yeah, makes sense. |
|
@JimBobSquarePants, the issue discussed above should be fixed as of dotnet/runtime#72522 and will land in .NET 7 RC1. -- Also, sorry for the ping after this has been closed for two weeks; wasn't sure of a better place to relay this small note. |
|
@tannergooding That's fantastic news, thanks for letting me know. That's a very interesting conversation regarding AVX/AVX2 issues. I wonder if any of that is causing our NaN handling issues in #2117 . I've struggled to find the specs for Intel Xeon Platinum 8272CL |
Prerequisites
Description
Fix for issue #2171: The alpha chunk data was written completely (the size of the image in pixels) and not only the compressed data when writing a lossy webp image.