Windows x64 repeated crash: Bun 1.3.11 panic: invalid enum value (fixed in oven-sh/bun#28721)

Resolved 💬 3 comments Opened Apr 5, 2026 by coolncool-dev Closed May 22, 2026

Summary

Claude Code 2.1.92 (native install) crashes repeatedly on Windows 11 x64 with panic: invalid enum value in bundled Bun 1.3.11. The root cause has already been fixed in Bun upstream (oven-sh/bun#28721), but Claude Code still bundles the affected Bun version.

Environment

  • Claude Code: 2.1.92 (native)
  • Bun: 1.3.11 (6f0a17c3) — bundled with Claude Code
  • OS: Windows 11 x64 (baseline)
  • CPU: SSE4.2, AVX, AVX2
  • RAM: 68.41GB machine, ~0.6GB RSS at crash

Reproduction

Crashes occur during normal usage — no specific trigger. Crash timing varies:

  • 1st crash: ~22 seconds (Elapsed: 21973ms)
  • 2nd crash: ~65 seconds (Elapsed: 64786ms)
  • 3rd crash: ~7 seconds (Elapsed: 7401ms)

All crashes produce identical output:

panic(thread XXXXX): invalid enum value
oh no: Bun has crashed. This indicates a bug in Bun, not your code.

Crash report: https://bun.report/1.3.11/e_16f0a17cmgggEuhogCkpt8QywzmNgrnkH0tvzQg9k6TCYKERNEL32.DLLut0LCSntdll.dll4gijBA0eNrLzCtLzMlMUUjNK81VKEvMKU0FAEK2Bvo

Stack trace modules

  • KERNEL32.DLL
  • ntdll.dll

Related Bun issues

  • oven-sh/bun#28721panic: invalid enum value in openDirAtWindowsNtPath (standalone executable, Windows x64 baseline) — closed/fixed
  • oven-sh/bun#26496 — same symptoms, still open

Request

Please update the bundled Bun runtime to a version that includes the fix from oven-sh/bun#28721.

View original on GitHub ↗

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