-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Open
Labels
Description
How can we reproduce the crash?
Run bun index.html
https://github.com/Pyrolistical/bun-hmr-seedrandom-crash
Env
Only repos on windows. works fine on macOS
> ver
Microsoft Windows [Version 10.0.26100.7840]
Workaround
If you manually use Bun.serve without hmr, bun doesn't crash.
dev.ts
Usage: bun run dev.ts
import app from "./index.html";
const server = Bun.serve({
routes: {
"/": app,
},
development: {
hmr: false, // doesn't crash
},
});
console.log(`Listening on ${server.port}`);
Stack Trace (bun.report)
Bun v1.3.9 (cf6cdbb) on windows x86_64 [AutoCommand]
panic: Internal assertion failure
filter_run.zig:529:runScriptsWithFilterlexer.zig:1038:decodeEscapeSequencesproperties_generated.zig:8928:withPrefixmargin_padding.zig:622:flushHelperprefixes.zig:737:prefixesForcomptime_string_map.zig:100:getWithLengthstring.zig:750:toUTF8unicode.zig:876:toUTF8AllocZigGeneratedClasses.cpp:53243:WebCore::JSRequestConstructor::callimmutable.zig:472:indexOfTwindows.zig:2425:sliceToPrefixedFileWoutput.zig:608:flushbasic.zig:84:alignedAlloccli.zig:14:startbun.zig:2131:initArgv?loadStrings@TZGNCore@icu_73@@AEAAXAEBVUnicodeString@2@@Z
Features: tsconfig, Bun.stdin, http_server, jsc, dev_server
Reactions are currently unavailable