Uh oh!
There was an error while loading. Please reload this page.
Fix issue when writing lossy webp with alpha data - #2173
Conversation
brianpopow
commented
Jul 13, 2022
There are new failing tests with .Net7.0, this time on macos only. 222 are failing: |
JimBobSquarePants
commented
Jul 13, 2022
That’s concerning. @tannergooding sorry to page but are there changes coming to .NET 7 we should know about? |
tannergooding
commented
Jul 13, 2022
Do you have a simple repro? I don't immediately see any changes to the .NET 7 version or to any code newly using |
brianpopow
commented
Jul 13, 2022
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. |
tannergooding
commented
Jul 13, 2022
This might be an issue specifically around a machine with |
JimBobSquarePants
commented
Jul 14, 2022
Thanks @tannergooding I've been unable to reproduce this on my old 2.7 GHz Dual-Core Intel Core i5 |
JimBobSquarePants
commented
Jul 14, 2022
I got some environmental info via #2175 I'm at a loss to explain the cause. |
brianpopow
commented
Jul 14, 2022
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 |
JimBobSquarePants
commented
Jul 15, 2022
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. |
JimBobSquarePants
commented
Jul 15, 2022
AWESOME! |
antonfirsov
commented
Jul 15, 2022
Yeah, makes sense. |
tannergooding
commented
Aug 2, 2022
@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. |
JimBobSquarePants
commented
Aug 3, 2022
@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.