Skip to content

Windows doesn't automatically fall back to the baseline binary on CPUs without AVX2 #822

Description

@MaelllDev

Environment

  • OS: Windows 11
  • CPU: Intel Core i5-3570 (AVX, no AVX2)
  • freebuff: 0.0.115
  • Node: v24.16.0

Problem

Running:

freebuff

downloads the win32-x64 binary and immediately crashes with:

Download complete! Starting Freebuff...
============================================================
Bun v1.3.14
CPU: sse42 avx
Features: no_avx2

panic: Illegal instruction

The metadata confirms that the downloaded target is:

{
  "version": "0.0.115",
  "target": "win32-x64"
}

Expected behavior

The launcher should automatically detect the Illegal instruction crash and download the win32-x64-baseline binary, since the source code already contains a fallback mechanism for this scenario.

Workaround

Forcing the baseline binary manually fixes the issue:

set FREEBUFF_BINARY_TARGET=win32-x64-baseline
del "%USERPROFILE%\.config\manicode\freebuff.exe"
del "%USERPROFILE%\.config\manicode\freebuff-metadata.json"
freebuff

After doing this, Freebuff downloads the baseline binary and runs correctly.

Notes

It looks like the automatic fallback to win32-x64-baseline is not being triggered on Windows, even though the code appears to support it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions