-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible to hit "HTML bundle not registered correctly" assertion failure #17956
Comments
thank you for sending. it would help to have a reproduction for this, but just this is enough because it proves that it is possible to hit this panic: notice how this data is being overloaded with source map data. this is fine because HTML does not have a source map. the assertion fails because something is trying to add a source map, probably a blank one, to this file. i have some big fixes i want to do first but this one should be easy to find when i give it the time |
I’m running backend and frontend together—backend on port 80, frontend on 81. Frontend’s a basic single-page app for S3 later, so I use a simple Bun server for the frontend during dev. Looks like this:
```javascript
import { serve } from 'bun';
import index from '../../assets/html/index.html';
const server = serve({
port: 81,
routes: { '/*': index },
development: true,
});
console.log(`Listening on ${server.url}`);
```
Running it with:
```json
"dev-client": "bun --env-file=env/.env ./src/client/client/server.ts",
"dev-server": "bun --env-file=env/.env ./src/server/server/server.ts",
```
Backend server is although just simple proof of concept server based on your documentation.
It crashes when I change frontend HTML or JS. But most of the time it works as expected—browser reloads, console errors and reloads, all good. It’s just sometimes I get this error.
I don’t use a source map anywhere currently it all just works.
Thank you again! I just want to make sure you know this isn’t urgent or a big problem. Would be nice to have it fixed, sure, but it only happens sometimes, and everything from Bun works great otherwise, so it’s not a huge deal.
Enjoy the weekend!
/chris
… On 7 Mar 2025, at 09:53, chloe caruso ***@***.***> wrote:
paperclover
left a comment
(oven-sh/bun#17956)
thank you for sending. it would help to have a reproduction for this, but just this is enough because it proves that it is possible to hit this panic:
***@***.*** (view on web)
notice how this data is being overloaded with source map data. this is fine because HTML does not have a source map. the assertion fails because something is trying to add a source map, probably a blank one, to this file.
i have some big fixes i want to do first but this one should be easy to find when i give it the time
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.
<https://github.com/user-attachments/assets/c33d8ac3-7cd6-4509-bbb4-dd2831231c35> <#17956 (comment)> <https://github.com/notifications/unsubscribe-auth/BCZHKH34B7O336XSYWJS4HT2TEC35AVCNFSM6AAAAABYQEY4JSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMBVGQYDCNZTGI>
paperclover
left a comment
(oven-sh/bun#17956)
<#17956 (comment)>
thank you for sending. it would help to have a reproduction for this, but just this is enough because it proves that it is possible to hit this panic:
***@***.*** (view on web) <https://github.com/user-attachments/assets/c33d8ac3-7cd6-4509-bbb4-dd2831231c35>
notice how this data is being overloaded with source map data. this is fine because HTML does not have a source map. the assertion fails because something is trying to add a source map, probably a blank one, to this file.
i have some big fixes i want to do first but this one should be easy to find when i give it the time
—
Reply to this email directly, view it on GitHub <#17956 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/BCZHKH34B7O336XSYWJS4HT2TEC35AVCNFSM6AAAAABYQEY4JSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMBVGQYDCNZTGI>.
You are receiving this because you authored the thread.
|
sorry, im referring to the internal implementation. source maps are always enabled in development. to be clear, no action is needed from you. enjoy your weekend |
How can we reproduce the crash?
No response
Relevant log output
Stack Trace (bun.report)
Bun v1.2.4 (
fd9a5ea
) on macos x86_64 [AutoCommand]panic: Internal assertion failure: HTML bundle not registered correctly
bake.DevServer.finalizeBundle
bundler.bundle_v2.BundleV2.onAfterDecrementScanCounter
bun.js.event_loop.ManagedTask.New
bun.js.event_loop.EventLoop.tickQueueWithCount__anon_516803
bun.js.event_loop.EventLoop.tick
bun.js.javascript.OpaqueWrap__anon_34405__struct_239833.callback
JSC__VM__holdAPILock
bun_js.Run.boot
cli.run_command.RunCommand._bootAndHandleError
Features: dotenv, http_server, jsc, dev_server
Sentry Issue: BUN-DVC
The text was updated successfully, but these errors were encountered: