Windows: native installer (bundled Bun) causes frequent pas panic crashes

Resolved 💬 3 comments Opened Apr 3, 2026 by WaterTian Closed Apr 6, 2026

Bug Report

On Windows 11, Claude Code installed via the native installer frequently crashes with pas panic: deallocation did fail. This is caused by Bun's memory allocator bug (oven-sh/bun#25082).

The crash is especially frequent when using statusline plugins, which are invoked on every tick and amplify memory pressure.

Steps to Reproduce

  1. Install Claude Code via native installer on Windows 11
  2. Configure a statusline plugin (e.g. claude-hud)
  3. Use Claude Code for a few minutes under normal load
  4. Crash occurs with pas panic

Error

pas panic: deallocation did fail

Workaround

Uninstall native installer and switch to npm:

npm i -g @anthropic-ai/claude-code

This uses system Node.js instead of bundled Bun, completely avoiding the crash.

For the statusline, I built cc-hud — a lightweight, pure Node.js alternative designed to minimize runtime overhead (zero dependencies, stateless, ~60ms per call).

Environment

  • Windows 11 Pro
  • Claude Code (native installer)
  • Node.js >= 18

Suggestion

Consider offering a Node.js-based installer option for Windows, or documenting the npm install path as the recommended method for Windows users until the upstream Bun issue is resolved.

View original on GitHub ↗

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