bun icon indicating copy to clipboard operation
bun copied to clipboard

Bun consistently crashes during hot reload on Windows

Open martinkri opened this issue 5 months ago • 3 comments
trafficstars

How can we reproduce the crash?

All I did was create a React project with a Shadcn + TailwindCSS template using bun init, and made minor changes to src/App.tsx (e.g. removing logos, changing text). It crashes during every second reload.

Relevant log output

Bun v1.2.15 (df017990) Windows x64
Windows v.win11_dt
CPU: sse42 avx avx2 avx512
Args: "C:\Users\REDACTED\.bun\bin\bun.exe" "--hot" "src/index.tsx"
Features: Bun.stderr(2) Bun.stdout(2) bunfig http_server jsc dev_server tsconfig(9) tsconfig_paths(9) process_dlopen
Builtins: "bun:main" "node:assert" "node:constants" "node:crypto" "node:fs" "node:fs/promises" "node:module" "node:os" "node:path" "node:perf_hooks" "node:process" "node:stream" "node:tty" "node:url" "node:util" "node:vm" "node:v8"
Elapsed: 132776ms | User: 484ms | Sys: 156ms
RSS: 0.37GB | Peak: 0.45GB | Commit: 0.56GB | Faults: 122148

panic(main thread): Assertion failure: null != 7
oh no: Bun has crashed. This indicates a bug in Bun, not your code.

Stack Trace (bun.report)

Bun v1.2.15 (df01799) on windows x86_64 [AutoCommand]

panic: Assertion failure: null != 9

Features: tsconfig, tsconfig_paths, process_dlopen, Bun.stderr, Bun.stdout, bunfig, http_server, jsc, dev_server

Sentry Issue: BUN-H02

martinkri avatar Jun 07 '25 13:06 martinkri