opus-tools_win32-build icon indicating copy to clipboard operation
opus-tools_win32-build copied to clipboard

Crash

Open sergeevabc opened this issue 1 year ago • 6 comments

Windows 7 x64, OpusTools 2024.04.15

Source: any WAV file of any sample rate and any bit depth

$ opusenc in.wav out.opus
opusenc in.wav out.opus
Encoding using libopus 1.5.2 (audio)
-----------------------------------------------------
   Input: WAV, 44.1 kHz, 2 channels, stereo
  Output: Opus, 2 channels (2 coupled), stereo
          20ms packets, 96 kbit/s VBR
 Preskip: 312

[|]  0% 00:00:00.00    0x realtime,     0 kbit/s

2024-0426-0505 opus 20240415 chocobo

However, if I use builds from here, they work fine.

sergeevabc avatar Apr 26 '24 02:04 sergeevabc

Are you able to run more tests?

  • 2024.04.15 x86
  • 2024.03.19 x64
  • 2023.04.20 x64
  • The one from here: https://github.com/Chocobo1/opus-tools_win32-build/actions/runs/8817750167 This is the same as 2024.04.15 but a different build environment.

For the record 2024.04.15 (both x86, x64) works for me and I'm on Windows 10.

Chocobo1 avatar Apr 26 '24 05:04 Chocobo1

Version Crash
2024.04.15 x64 +
2024.04.15 x86 +
2024.03.19 x64 -
2023.04.20 x64 -
The one from here -

sergeevabc avatar Apr 26 '24 09:04 sergeevabc

Does your CPU have AVX2 instruction set?

Opus has landed some fixes related to AVX2 between 2024.03.19 and 2024.04.15, not sure it is stable enough. The one from here has newer MSVC and NASM versions and I'm not sure if it contributes to fixing the crash.

Chocobo1 avatar Apr 26 '24 10:04 Chocobo1

AVX? No.

sergeevabc avatar Apr 26 '24 14:04 sergeevabc

Accidentally bumped into this and might be related:

  • https://hydrogenaud.io/index.php/topic,125795.0.html
  • https://developercommunity.visualstudio.com/t/Cannot-disable-AVX-and-AVX2-in-VS-2022/10497078?space=21&scope=follow&sort=newest&viewtype=all

It doesn't explain why 2024.04.15 x86 will crash for you.

Chocobo1 avatar May 02 '24 16:05 Chocobo1

Err… What if we just remove the requirement to have AVX and SSE4+?

sergeevabc avatar May 05 '24 12:05 sergeevabc