You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug][v3.0.0-beta.15]: Bun crashed when using LSP(lsp_diagnostics) on Windows #1047
changed the title [-][Bug]: Bun crashed when using LSP(lsp_diagnostics) on Windows[/-][+][Bug][v3.0.0-beta.15]: Bun crashed when using LSP(lsp_diagnostics) on Windows[/+]on Jan 24, 2026
This is a known Bun bug on Windows, not an oh-my-opencode issue.
Bun v1.3.5 and earlier have a segmentation fault bug when spawning processes via Bun.spawn(). Since LSP tools spawn language server processes, this triggers the crash.
Evidence
oven-sh/bun#25798 - "Segmentation fault at address 0x0 on Windows x64 in Bun v1.3.5"
oven-sh/bun#21044 - "Opencode in windows crashes with segfault" (similar issue, was closed but regressed)
Fix released in Bun v1.3.6 (January 13, 2026): "Fixed: Rare crash in Bun Shell impacting opencode"
Immediate Solution
Upgrade Bun to v1.3.6 or later:
powershell -c "irm bun.sh/install.ps1|iex"
Workaround
Use WSL instead of native Windows (as you noted, "It's works good in WSL").
Fix PR
I've created a fix that adds a helpful version check instead of letting Bun crash:
Closing as fixed - commit d157940 adds Bun version check before LSP server spawn to prevent segfault crashes on Windows with Bun v1.3.5 and earlier. Please update to the latest version. Thanks for the detailed bug report!
Activity
FurryWolfX commentedon Jan 24, 2026
It's works good in WSL
[-][Bug]: Bun crashed when using LSP(lsp_diagnostics) on Windows[/-][+][Bug][v3.0.0-beta.15]: Bun crashed when using LSP(lsp_diagnostics) on Windows[/+]code-yeongyu commentedon Jan 24, 2026
@sisyphus-dev-ai debug this ulw
fix(lsp): add Bun version check for Windows LSP segfault bug
sisyphus-dev-ai commentedon Jan 24, 2026
Debug Analysis Complete
Root Cause Identified
This is a known Bun bug on Windows, not an oh-my-opencode issue.
Bun v1.3.5 and earlier have a segmentation fault bug when spawning processes via
Bun.spawn(). Since LSP tools spawn language server processes, this triggers the crash.Evidence
Immediate Solution
Upgrade Bun to v1.3.6 or later:
Workaround
Use WSL instead of native Windows (as you noted, "It's works good in WSL").
Fix PR
I've created a fix that adds a helpful version check instead of letting Bun crash:
PR #1053: fix(lsp): add Bun version check for Windows LSP segfault bug
This will give Windows users a clear error message with upgrade instructions instead of a cryptic crash.
@FurryWolfX Can you confirm if upgrading to Bun v1.3.6+ resolves the crash for you?
fix(lsp): add Bun version check for Windows LSP segfault bug
FurryWolfX commentedon Jan 24, 2026
my bun is 1.3.6, but the bun in opencode is 1.3.5
FurryWolfX commentedon Jan 24, 2026
@code-yeongyu I'm running opencode from source code, bun is now 1.3.6, but it still crashes, it seems the cause is not the bun version issue.
FurryWolfX commentedon Jan 24, 2026
LCZcn96 commentedon Jan 24, 2026
Same issue, bun version is also 1.3.6.
litaoliang commentedon Jan 24, 2026
Same issue, bun version is also 1.3.6....
Brisbanehuang commentedon Jan 25, 2026
Same problem, hope it can be fixed
oldjs commentedon Jan 25, 2026
Same issue
Charmnut commentedon Jan 26, 2026
Same issue, bun version is also 1.3.6....
felix-ma commentedon Jan 26, 2026
同样的问题,bun版本也是1.3.6
rapancristian commentedon Jan 27, 2026
same issue. bun 1.3.6
EchoCyan commentedon Jan 27, 2026
same issue
Bluboks commentedon Jan 27, 2026
same here. Should I go with WSL?
code-yeongyu commentedon Jan 27, 2026
Closing as fixed - commit d157940 adds Bun version check before LSP server spawn to prevent segfault crashes on Windows with Bun v1.3.5 and earlier. Please update to the latest version. Thanks for the detailed bug report!
fix(lsp): add Bun version check for Windows LSP segfault bug
fix(lsp): use Node.js child_process on Windows to avoid Bun spawn seg…
WangNingkai commentedon Feb 11, 2026