Repository navigation
Opencode Fails to Launch After Upgrade - Bun Canary Crash (ThreadLock Assertion Failure) #14992
Description
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:
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).
Plugins
No response
OpenCode version
No response
Steps to reproduce
No response
Screenshot and/or share link
Operating System
No response
Terminal
No response
Activity
github-actions commentedon Feb 25, 2026
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.
Hona commentedon Feb 26, 2026
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 :)
JSFiend commentedon Feb 27, 2026
并不行, 还是会奔溃。。 我先 opencode uninstall 了, 再安装的