Closed KissKonradUni closed 2 months ago
Have an HTTP webserver. Have a repsonse that uses Bun.file() inside a promise Change the file while the app is running. Refresh the page.
Bun v1.1.17 (bb66bba1) Windows x64 Args: "C:\ProgramData\chocolatey\lib\bun\tools\bun-windows-x64\bun.exe" "index.ts" Features: jsc abort_signal dotenv http_server tsconfig Builtins: "bun:main" Elapsed: 168220ms | User: 109ms | Sys: 15ms RSS: 0.14GB | Peak: 0.20GB | Commit: 0.21GB | Faults: 101931 panic(main thread): Internal assertion failure oh no: Bun has crashed. This indicates a bug in Bun, not your code.
Bun v1.1.17 (bb66bba) on windows x86_64 [RunCommand]
bb66bba
panic: Internal assertion failure
debug.zig:443
panicExtra
bun.zig:3252
assertionFailure
blob.zig:1706
sharedView
ReadFile.zig:756
queueRead
??
fs__open
uv_run
uws.zig:2819
tickWithoutIdle
JSC__JSValue__fastGet_
shimmer.zig:186
cppFn
Fixed on https://github.com/oven-sh/bun/pull/12441
How can we reproduce the crash?
Have an HTTP webserver. Have a repsonse that uses Bun.file() inside a promise Change the file while the app is running. Refresh the page.
Relevant log output
Stack Trace (bun.report)
Bun v1.1.17 (
bb66bba
) on windows x86_64 [RunCommand]panic: Internal assertion failure
debug.zig:443
:panicExtra
bun.zig:3252
:assertionFailure
blob.zig:1706
:sharedView
ReadFile.zig:756
:queueRead
??
fs__open
uv_run
uws.zig:2819
:tickWithoutIdle
JSC__JSValue__fastGet_
shimmer.zig:186
:cppFn