Open
Description
How can we reproduce the crash?
I just have a basic index.html with
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
Hello world
<script type="module" src="./index.ts"></script>
</body>
</html>
and an index.ts with
import { sql, serve } from "bun";
import homepage from "./index.html";
const server = Bun.serve({
routes: {
// ** HTML imports **
// Bundle & route index.html to "/". This uses HTMLRewriter to scan the HTML for `<script>` and `<link>` tags, run's Bun's JavaScript & CSS bundler on them, transpiles any TypeScript, JSX, and TSX, downlevels CSS with Bun's CSS parser and serves the result.
"/": homepage,
},
port: 3000,
fetch(req) {
return new Response("Bun!");
},
// Enable development mode for:
// - Detailed error messages
// - Hot reloading (Bun v1.2.3+ required)
development: true,
});
console.log(Listening on ${server.url}
);
Running on Bun v1.2.4.. trying to just follow the "Fullstack Dev Server" example (https://bun.sh/docs/bundler/fullstack).. The weird thing is that I get this both on my Windows 10, and macOS.. I'm not very proficient with the CLI so yeah, I just don't know what to do:)
Running bun install
gives this output:
bun install v1.2.4 (fd9a5ea6)
Checked 6 installs across 7 packages (no changes) [11.00ms]
Relevant log output
Bun v1.2.4 (fd9a5ea6) Windows x64
Windows v.win10_cu
CPU: sse42 avx avx2
Args: "C:\Users\theof\.bun\bin\bun.exe" "run" "index.ts"
Features: http_server jsc dev_server tsconfig
Builtins: "bun:main"
Elapsed: 5913ms | User: 31ms | Sys: 31ms
RSS: 0.24GB | Peak: 0.24GB | Commit: 0.23GB | Faults: 58467
panic(main thread): Internal assertion failure
oh no: Bun has crashed. This indicates a bug in Bun, not your code.
To send a redacted crash report to Bun's team,
please file a GitHub issue using the link below:
https://bun.report/1.2.4/wr1fd9a5eaEggg0B+y3jG+xZmi6+Vqw0qUoqm1S25stO4phuJ4vg6G2g38nBqnq2FA0eNrzzCtJLcpLzFFILC5OLSrJzM9TSEvMzCktSgUAiSkKPg
Stack Trace (bun.report)
Bun v1.2.4 (fd9a5ea
) on windows x86_64 [RunCommand]
panic: Internal assertion failure
DevServer.zig:2693
:isFileCached
bundle_v2.zig:3123
:runResolutionForParseTask
bundle_v2.zig:3273
:onParseTaskComplete
memory_allocator.zig:31
:mimalloc_free
event_loop.zig:1377
:tickConcurrent
javascript.zig:1329
:eventLoop
bindings.cpp:5248
:JSC__VM__holdAPILock
shimmer.zig:197
:cppFn
Features: tsconfig, http_server, jsc, dev_server
Sentry Issue: BUN-CKE