Skip to content

Opencode Fails to Launch After Upgrade - Bun Canary Crash (ThreadLock Assertion Failure) #14992

Closed

Description

@xgc-dev

Description

After upgrading opencode, the executable fails to start and crashes with a Bun Canary internal assertion error related to ThreadLock. Below is the full crash log and environment details:

`Bun Canary v1.3.10-canary.100 (6b1d6c76) Windows x64 (baseline)
Windows v.win10_cu
CPU: sse42 avx avx2
Args: "C:\Users\ADMINI1\CONFIG1\herd\bin\nvm\v25.4.0\node_modules\opencode-ai\node_modules\opencode-windows-x64\bin\opencode.exe" "--user-agent=opencode/1.2.11" "--use-system-ca" "--"
Features: Bun.stderr(2) Bun.stdin(2) Bun.stdout(2) fetch(2) jsc standalone_executable workers_spawned
Builtins: "bun:ffi" "bun:main" "bun:sqlite" "node:assert" "node:async_hooks" "node:buffer" "node:child_process" "node:console" "node:crypto" "node:dns" "node:events" "node:fs" "node:fs/promises" "node:http" "node:https" "node:module" "node:net" "node:os" "node:path" "node:process" "node:querystring" "node:readline" "node:stream" "node:stream/promises" "node:string_decoder" "node:timers" "node:timers/promises" "node:tls" "node:tty" "node:url" "node:util" "undici" "node:v8" "node:http2" "node:diagnostics_channel" "node:dgram"
Elapsed: 690ms | User: 671ms | Sys: 125ms
RSS: 0.52GB | Peak: 0.52GB | Commit: 0.89GB | Faults: 134196 | Machine: 17.01GB

panic(thread 9136): Internal assertion failure: ThreadLock is locked by thread 9880, not thread 9136
oh no: Bun has crashed. This indicates a bug in Bun, not your code.

To send a redacted crash report to Bun's team,
please file a GitHub issue using the link below:

https://bun.report/1.3.10/ea26b1d6c7kQugogC+iwgN+xxuK4t2wM6q5M42mNkxvNm9mQwwn0eCYKERNEL32.DLLog7FCSntdll.dlliqzUA0eNrzzCtJLcpLzFFILC5OLSrJzM9TSEvMzCktSrVSSAjJKEpNTPHJT85OUMgsVsjJT85OTVFIqlQoAUsoWFpYGOgo5OWXwAQsDY3NAOOcHHs `

Environment Details:
OS: Windows 10 (win10_cu) x64
Bun Version: Canary v1.3.10-canary.100 (6b1d6c76)
Node Version: v25.4.0 (via NVM)
Opencode Version: 1.2.11 (user-agent)
CPU: Supports sse42, avx, avx2
Steps to Reproduce:
Upgrade opencode to the latest version
Attempt to launch opencode.exe via the command line/automated process
Crash occurs immediately with the above ThreadLock assertion error
Expected Behavior:
Opencode should launch normally without Bun crashing due to internal thread locking issues.
Actual Behavior:
Opencode fails to start, Bun crashes with an internal assertion failure for ThreadLock (locked by thread 9880 instead of 9136).

Image

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

Image

Operating System

No response

Terminal

No response

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Feb 25, 2026
  2. github-actions commented on Feb 25, 2026

    @github-actions
    Contributor

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

    Please review these issues to see if your problem is already tracked there. If your issue is distinct (e.g., specific to Bun Canary / ThreadLock assertion on startup), feel free to keep this open with that clarification.

  3. Hona commented on Feb 26, 2026

    @Hona
    Member

    please upgrade to latest OpenCode v1.2.15 - and try again.

    There should be no more segfaults/crashes.

    Can you confirm it works fine after the version is >v1.2.15 :)

  4. JSFiend commented on Feb 27, 2026

    @JSFiend

    please upgrade to latest OpenCode v1.2.15 - and try again.请升级到最新版的 OpenCode v1.2.15,然后再试一次。

    There should be no more segfaults/crashes.不应再出现段错误/崩溃的情况。

    Can you confirm it works fine after the version is >v1.2.15 :)您能否确认在版本大于 v1.2.15 之后它运行良好呢 :)

    并不行, 还是会奔溃。。 我先 opencode uninstall 了, 再安装的

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 workingcoreAnything pertaining to core functionality of the application (opencode server stuff)windows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions