bun
bun copied to clipboard
Bun consistently crashes during hot reload on Windows
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
bun.zig:3100:assert_eqlDevServer.zig:4826:onFileDeletedbundle_v2.zig:1283:enqueueEntryPointsarray_hash_map.zig:659:deinitevent_loop.zig:1450:tickConcurrentbun_js.zig:397:startbindings.cpp:5207:JSC__VM__holdAPILockVM.zig:41:holdAPILockrun_command.zig:1250:_bootAndHandleError
Features: tsconfig, tsconfig_paths, process_dlopen, Bun.stderr, Bun.stdout, bunfig, http_server, jsc, dev_server
Sentry Issue: BUN-H02