Skip to content

Windows: opencode-cli crashes with illegal instruction (0xC000001D) on AMD FX-8350 starting in v1.1.52 #12642

Closed

Description

@mattu08

Description

Describe the bug

On Windows, OpenCode Desktop versions 1.1.52 and newer fail to start with:

"Failed to spawn OpenCode Server"

This happens because opencode-cli.exe crashes immediately on launch with an illegal instruction exception.

Versions up to 1.1.51 work correctly on the same machine.


Reproduction steps

  1. Install OpenCode Desktop v1.1.52 or newer on Windows
  2. Launch OpenCode
  3. App fails immediately with “Failed to spawn OpenCode Server”
  4. Running opencode-cli.exe manually also exits instantly with no output

Expected behavior

OpenCode Desktop should start the local server and open normally, as it does in v1.1.51 and earlier.


Actual behavior

The local server never starts. No logs are written by OpenCode.

Windows Event Viewer shows opencode-cli.exe crashing immediately.


Diagnostic details

Last working version

  • ✅ v1.1.51

First broken version

  • ❌ v1.1.52

CPU

  • AMD FX-8350 Eight-Core Processor (Piledriver)

OS

  • Windows 11 (64-bit)

Exception (Event Viewer → Application Error)
Faulting application name: opencode-cli.exe
Exception code: 0xC000001D (Illegal instruction)
Faulting module name: opencode-cli.exe

Additional notes

  • Antivirus fully disabled → no change
  • Clean reinstall and cache removal → no change
  • opencode-cli.exe exits silently even with --help or --version
  • Older versions work consistently on the same system

Suspected cause

It looks like opencode-cli.exe (or a bundled runtime such as Bun) was rebuilt in v1.1.52 with CPU instructions not supported on older AMD CPUs (e.g. FX/Piledriver).

A legacy/compat build or adjusted compiler flags (e.g. targeting baseline x86-64) would likely resolve this.


Impact

Users on older but still common CPUs cannot run OpenCode Desktop beyond v1.1.51 on Windows.

Plugins

None.

OpenCode version

v1.1.52 or newer*

Steps to reproduce

  1. Install OpenCode Desktop v1.1.52 or newer on Windows
  2. Launch OpenCode
  3. App fails immediately with “Failed to spawn OpenCode Server”
  4. Running opencode-cli.exe manually also exits instantly with no output

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

PowerShell

Activity

  1. github-actions commented on Feb 7, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    All of these appear to be related to the same underlying issue: the binary was rebuilt in v1.1.52-1.1.53 with CPU instructions (likely AVX2) not supported on older processors. The root cause and potential solutions discussed in #12553 may apply to your AMD FX-8350 as well.

    Feel free to ignore if your specific case differs.

  2. github-actions commented on Apr 9, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwebRelates to opencode on web / desktopwindows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions