Skip to content

OpenCode 1.17.10 crashes on startup with Bun segmentation fault (Windows) #33779

Closed as duplicate

Description

@Radit-lab

Description

Environment
OS: Windows 11 (10.0.26200.8655)
OpenCode: 1.17.10
Bun: 1.3.11
Bun Path: C:\Users\User.bun\bin\bun.exe
Description

OpenCode crashes immediately on startup with a Bun segmentation fault.

The crash occurs even in a completely empty directory and is not related to any specific project.

Steps to Reproduce
Open Command Prompt.

Create an empty directory:

mkdir C:\empty-test
cd C:\empty-test

Run:

opencode
OpenCode crashes with a Bun segmentation fault.
Expected Behavior

OpenCode should start normally.

Actual Behavior

Startup crashes with:

panic(main thread): Segmentation fault

oh no: Bun has crashed. This indicates a bug in Bun, not your code.
Additional Information
bun repl works correctly.
opencode --help works correctly.
Crash occurs in both project folders and empty folders.
Issue started after upgrading to OpenCode 1.17.10.
Previous version (1.17.9) worked correctly on the same machine.
Diagnostic Results
bun --version
1.3.11

opencode --version
1.17.10

where bun
C:\Users\User.bun\bin\bun.exe
Notes

This appears to be a startup/runtime regression introduced in 1.17.10 on Windows, since:

Bun itself is functional (bun repl works).
OpenCode CLI commands such as --help work.
Only starting the TUI causes the crash.

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. github-actions commented on Jun 25, 2026

    @github-actions
    Contributor

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

  2. c0dehvb commented on Jun 25, 2026

    @c0dehvb

    +1

  3. Chaser-X commented on Jun 25, 2026

    @Chaser-X

    +1

  4. zidanindratama commented on Jun 25, 2026

    @zidanindratama

    +1 please fix this asap.

  5. 1107186916 commented on Jun 25, 2026

    @1107186916

    +1

  6. 503203440 commented on Jun 25, 2026

    @503203440

    +1

  7. LOYINuts commented on Jun 25, 2026

    @LOYINuts

    same

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions