Menu

#311 Crash in fftw3f.dll

1.x
closed
None
2025-03-28
2025-02-15
User Tester
No

Updated from version 1.3 to 1.4.1 and now Configuration Editor is crashing on launch after its window is displayed for a split second and my device can't play sound.
Here are the screenshots from event viewer:

Discussion

  • User Tester

    User Tester - 2025-02-15

    Attached screenshots

     
  • User Tester

    User Tester - 2025-02-15

    Tried version 1.4 and it works fine.
    Googled a little and it seems like my CPU (which is quite old) doesn't support AVX instructions (EXCEPTION_ILLEGAL_INSTRUCTION is happening on "vmovups" instruction).

    Seems like compilation options were changed in 1.4.1 and now I can't use the program anymore. Would it be possible to revert back the compilation options on later versions so more old CPUs would be supported?

     
  • Peter Verbeek

    Peter Verbeek - 2025-02-16

    Perhaps Jonas (the developer) can say something about this.

     
  • Jonas Dahlinger

    Jonas Dahlinger - 2025-02-17

    In version 1.4.1, FFTW was upgraded to version 3.3.10. The versions before used old precompiled binaries of FFTW version 3.3.5 but as FFTW had to be built for the ARM64 architecture anyway, I also decided to build it for the existing architectures x64 and x86.

    FFTW 3.3.10 was built with support for SSE2 and AVX instructions, so it should fall back to SSE2 automatically if AVX is not supported (at least that's what I thought). I attached a newly built DLL that has only SSE2 support, so you can try if that works. Just rename the fftw3f.dll in the installation directory and use this one instead. Please tell me if it works.

     
  • User Tester

    User Tester - 2025-02-17

    I read too, that the FFTW should support detection of CPU extensions like AVX at runtime, strange it didn't work in my case.

    Upgraded to 1.4.1, replaced fftw3f.dll with the provided one and it's working fine again.
    Would be nice it next versions would include this DLL.
    Thanks!

     

    Last edit: User Tester 2025-02-17
  • Jonas Dahlinger

    Jonas Dahlinger - 2025-02-21

    Unfortunately, the fftw3f.dll I attached above is clearly slower on a CPU with AVX support than the one shipped with 1.4.1. (~20% slower)
    Please also try the DLL I attach to this post. It has support for AVX but doesn't use the compiler flag /arch:AVX which might be the culprit. It's only 2% slower in my benchmark, so I would prefer to ship this one.

     
    • d_c

      d_c - 2025-03-17

      Thank you! I was having the same crash, on a system with an AMD Phenom II CPU. This latest fftw3f.dll without the complier flag /arch:AVX resolved my crashing of the Editor too.

       

      Last edit: d_c 2025-03-17
  • User Tester

    User Tester - 2025-02-21

    Tried this one, and it also works. Nice, that it's 20 faster than the previous one.
    Thanks!

     
  • Jonas Dahlinger

    Jonas Dahlinger - 2025-03-28
    • status: open --> closed
    • assigned_to: Jonas Dahlinger
     
  • Jonas Dahlinger

    Jonas Dahlinger - 2025-03-28

    This should be fixed with new version 1.4.2, so I'm closing this ticket.

     

Log in to post a comment.

MongoDB Logo MongoDB