[BUG] Bun v1.3.5 crashes with 'cast causes pointer to be null' on Windows in specific project folder

Resolved 💬 8 comments Opened Feb 2, 2026 by IOT-IOT Closed Mar 3, 2026

Description

Claude Code crashes immediately on startup in a specific project folder on Windows. The crash is a Bun runtime panic with "cast causes pointer to be null" error. Claude works fine in all other folders on the same system.

Environment

  • Claude Code version: 2.1.29
  • Bun version: 1.3.5 (1e86cebd) Windows x64 (baseline)
  • OS: Windows Server 2022 (win10_cu)
  • CPU: sse42 avx avx2 avx512

Steps to Reproduce

  1. Navigate to the affected project folder
  2. Run claude (no flags needed)
  3. Bun crashes immediately

Error Output

Bun v1.3.5 (1e86cebd) Windows x64 (baseline)
Windows v.win10_cu
CPU: sse42 avx avx2 avx512
Args: "C:\Users\Administrator\.local\bin\claude.exe" "--dangerously-skip-permissions"
Features: Bun.stderr(2) Bun.stdin(2) Bun.stdout(2) fetch(7) jsc spawn(11) standalone_executable process_dlopen
Builtins: "bun:main" "node:assert" "node:async_hooks" ...
Elapsed: 3024ms | User: 1218ms | Sys: 1843ms
RSS: 0.64GB | Peak: 0.64GB | Commit: 0.68GB | Faults: 160715 | Machine: 34.36GB

panic(thread 18380): cast causes pointer to be null
oh no: Bun has crashed. This indicates a bug in Bun, not your code.

Additional Context

  • The sessions-index.json file exists but has empty entries: []
  • There are 5 .jsonl session files in the project folder
  • The crash happens before any UI appears
  • Claude works correctly in all other project folders

Crash Report Link

https://bun.report/1.3.5/e_11e86cebmgEugogCgxrtLs/zoJg+yoJgqpmMCYKERNEL32.DLLgrmFCSntdll.dll282fA0eNpLTiwuUUhOLC1OLVYoyM/MK0ktUijJV0hKVcgrzckBAK96CzY

Expected Behavior

Claude Code should start normally in the project folder.

Workaround

Currently none - the folder is unusable with Claude Code.

View original on GitHub ↗

This issue has 8 comments on GitHub. Read the full discussion on GitHub ↗