TypeScript LSP crashes with Bun segmentation fault on Windows 11 #4430

Open
opened 2026-02-16 17:43:45 -05:00 by yindo · 2 comments
Owner

Originally created by @rucnyz on GitHub (Jan 8, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

OpenCode crashes immediately when TypeScript LSP is activated. This happens consistently in any TypeScript project when using web or TUI mode.

Environment

  • OpenCode version: 1.1.6
  • Bun version: 1.3.5
  • OS: Windows 11 x64
  • CPU features: SSE4.2, AVX, AVX2, AVX512

Error Log

[Request interrupted by user]
Bun v1.3.5 (1e86cebd) Windows x64 (baseline)
Windows v.win11_dt
CPU: sse42 avx avx2 avx512
Args: "C:\Usersuser>bun\install\global\node_modules\opencode-windows-x64\bin\opencode.exe" "--user-agent=opencode/1.1.6" "--use-system-ca " "--" "web"
Features: Bun.stderr(3) Bun.stdin(2) Bun.stdout(2) abort_signal(3) fetch(40) http_server jsc shell(26) spawn(25) standalone_executable transpiler_cache(4) tsconfig napi_module_register process_dlopen
Builtins: "bun:ffi" "bun:main" "node:assert" "node:async_hooks" "node:buffer" "node:child_process" "node:console" "node:constants" "node:crypto" "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:readline/promises" "node:stream" "node:string_decoder" "node:timers" "node:timers/promises" "node:tls" "node:tty" "node:url" "node:util" "undici" "node-fetch" "node:v8" "node:dgram"
Elapsed: 40438ms | User: 1187ms | Sys: 500ms
RSS: 0.51GB | Peak: 0.54GB | Commit: 0.66GB | Faults: 174082 | Machine: 66.20GB

panic(main thread): Segmentation fault at address 0x3979E6E0180
oh no: Bun has crashed. This indicates a bug in Bun, not your code.

Bun crash report link: https://bun.report/1.3.5/ea11e86cebmjGz+339/D_+wlwekhlwe4/i3nBgjr4uBwov6uBk13pvB2/0pvB860ovBi1ipvBy+zovB67mzvB2wyiwBko1pvBy53nvBuwzznB+lryU48j7Qsi/yMiv8mHA2u5Bho/nyhD

Plugins

oh-my-opencode, opencode-antigravity-auth@1.2.8

OpenCode version

1.1.6

Steps to reproduce

  1. Open any TypeScript project
  2. Run opencode
  3. Ask the agent "Please test if you can use typescript's lsp"
  4. Wait for TypeScript LSP to initialize
  5. Crash occurs

Screenshot and/or share link

https://opncd.ai/share/6isLOi04

Operating System

Windows 11

Terminal

Windows Terminal

Originally created by @rucnyz on GitHub (Jan 8, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description OpenCode crashes immediately when TypeScript LSP is activated. This happens consistently in any TypeScript project when using web or TUI mode. ## Environment - **OpenCode version**: 1.1.6 - **Bun version**: 1.3.5 - **OS**: Windows 11 x64 - **CPU features**: SSE4.2, AVX, AVX2, AVX512 ## Error Log [Request interrupted by user] Bun v1.3.5 (1e86cebd) Windows x64 (baseline) Windows v.win11_dt CPU: sse42 avx avx2 avx512 Args: "C:\Usersuser>bun\install\global\node_modules\opencode-windows-x64\bin\opencode.exe" "--user-agent=opencode/1.1.6" "--use-system-ca " "--" "web" Features: Bun.stderr(3) Bun.stdin(2) Bun.stdout(2) abort_signal(3) fetch(40) http_server jsc shell(26) spawn(25) standalone_executable transpiler_cache(4) tsconfig napi_module_register process_dlopen Builtins: "bun:ffi" "bun:main" "node:assert" "node:async_hooks" "node:buffer" "node:child_process" "node:console" "node:constants" "node:crypto" "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:readline/promises" "node:stream" "node:string_decoder" "node:timers" "node:timers/promises" "node:tls" "node:tty" "node:url" "node:util" "undici" "node-fetch" "node:v8" "node:dgram" Elapsed: 40438ms | User: 1187ms | Sys: 500ms RSS: 0.51GB | Peak: 0.54GB | Commit: 0.66GB | Faults: 174082 | Machine: 66.20GB panic(main thread): Segmentation fault at address 0x3979E6E0180 oh no: Bun has crashed. This indicates a bug in Bun, not your code. Bun crash report link: https://bun.report/1.3.5/ea11e86cebmjGz+339/D_+wlwekhlwe4/i3nBgjr4uBwov6uBk13pvB2/0pvB860ovBi1ipvBy+zovB67mzvB2wyiwBko1pvBy53nvBuwzznB+lryU48j7Qsi/yMiv8mHA2u5Bho/nyhD ### Plugins oh-my-opencode, opencode-antigravity-auth@1.2.8 ### OpenCode version 1.1.6 ### Steps to reproduce 1. Open any TypeScript project 2. Run `opencode` 3. Ask the agent "Please test if you can use typescript's lsp" 4. Wait for TypeScript LSP to initialize 5. Crash occurs ### Screenshot and/or share link https://opncd.ai/share/6isLOi04 ### Operating System Windows 11 ### Terminal Windows Terminal
yindo added the windowsbugperf labels 2026-02-16 17:43:45 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 8, 2026):

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

  • #3267: Bun segmentation fault on Windows with auto-update - reports similar Bun crashes on Windows 11
  • #6694: Bun crashes when OpenCode subagent tries to invoke subagent - similar Bun exception behavior on Windows
  • #7270: jdtls lsp server does not work properly in Windows environment - another LSP initialization issue on Windows

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 8, 2026): This issue might be a duplicate of existing issues. Please check: - #3267: Bun segmentation fault on Windows with auto-update - reports similar Bun crashes on Windows 11 - #6694: Bun crashes when OpenCode subagent tries to invoke subagent - similar Bun exception behavior on Windows - #7270: jdtls lsp server does not work properly in Windows environment - another LSP initialization issue on Windows Feel free to ignore if none of these address your specific case.
Author
Owner

@dhpancor commented on GitHub (Jan 15, 2026):

Happening to me too! Using opencode v1.1.21 and TypeScript LSP.

@dhpancor commented on GitHub (Jan 15, 2026): Happening to me too! Using opencode v1.1.21 and TypeScript LSP.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4430