HydrogenAudio

Hosted Forums => foobar2000 => Support - (fb2k) => Topic started by: Peter on 2024-04-13 19:15:18

Title: Unintended/accidental AVX requirement of 64-bit version
Post by: Peter on 2024-04-13 19:15:18
Dear userbase,

I just noticed that foobar2000 64-bit crashes when using ReplayGain scanner on old computers without AVX instruction set.
This is completely unintended and caused by a bug in latest Microsoft compiler, which produces AVX opcodes even if configured not to in 64-bit mode.

If you are affected by this problem, please either stick with older foobar2000 or use 32-bit version on your computer.

I'm working on a workaround (it's not my bug...) and will revert to older compiler if necessary.
Title: Re: Unintended/accidental AVX requirement of 64-bit version
Post by: Kraeved on 2024-04-13 19:56:24
Yes, @Peter, I am affected, that's why I still use Foobar2000 2.1 x64 (2023-12-18).

(https://i4.imageban.ru/out/2024/02/25/ef921b2d6df14d10ceb8beb722f16200.png)
Title: Re: Unintended/accidental AVX requirement of 64-bit version
Post by: Peter on 2024-04-15 13:35:56
Fixed version:
https://www.foobar2000.org/downloads/foobar2000-x64_v2.1.4-VS2019.exe

If nothing broke from compiler downgrade, I'll keep using VS2019 for foobar2000 2.1.x series updates.
Title: Re: Unintended/accidental AVX requirement of 64-bit version
Post by: marc2k3 on 2024-04-15 13:58:05
If this is the same thing...

https://developercommunity.visualstudio.com/t/Cannot-disable-AVX-and-AVX2-in-VS-2022/10497078?space=21&scope=follow&sort=newest

... it's supposedly fixed in VS2022 17.10 - currently preview so could be tested.
Title: Re: Unintended/accidental AVX requirement of 64-bit version
Post by: Peter on 2024-04-15 14:00:34
Known.
I'm waiting till VS2022 17.10 before attempting any "fixes" in fb2k 2.2 series, hoping for the problem to fix itself without having to revert C++20 use in new code.

This isn't the first time stuff like this happens, as older versions of VS were known to produce SSE opcodes when configured not to.
Title: Re: Unintended/accidental AVX requirement of 64-bit version
Post by: Wombat on 2024-04-16 14:05:50
Fixed version:
https://www.foobar2000.org/downloads/foobar2000-x64_v2.1.4-VS2019.exe

If nothing broke from compiler downgrade, I'll keep using VS2019 for foobar2000 2.1.x series updates.
Thanks! This version fixes the issue together with my intel j5005.