Skip to content

hmr crash with seedrandom module #27356

@Pyrolistical

Description

@Pyrolistical

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)

https://bun.report/1.3.9/wa1cf6cdbbAkggoG+tkoG+qvB06g0V+7h+T+/g3R05/sN6x43HwryzG2ozypBq+13Fkvp4F26/3F4iuhGuwbyjMwlhzvDCYKERNEL32.DLLut0LCSntdll.dll4gijBA0eNrzzCtJLcpLzFFILC5OLSrJzM9TSEvMzCktSgUAiSkKPg

Bun v1.3.9 (cf6cdbb) on windows x86_64 [AutoCommand]

panic: Internal assertion failure

Features: tsconfig, Bun.stdin, http_server, jsc, dev_server

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions