Skip to content

Crash instead of reporting to user that he/she might be just dumb :) #19147

@JayFish

Description

@JayFish

How can we reproduce the crash?

With initialized with bun project try to add:

"bun add chakra-ui/system chakra-ui/react chakra-ui/icons motion/react motion/styled"

This, written very bad, set of modules will crash the Bun Add.

Relevant log output

bun add v1.2.6 (8ebd5d53)
============================================================
Bun v1.2.6 (8ebd5d53) Windows x64
Windows v.win10_cu
CPU: sse42 avx avx2
Args: "C:\ProgramData\chocolatey\lib\bun\tools\bun-windows-x64\bun.exe" "add" "chakra-ui/system" "chakra-ui/react"
Features: bunfig
Elapsed: 15ms | User: 0ms | Sys: 15ms
RSS: 43.83MB | Peak: 43.83MB | Commit: 92.94MB | Faults: 10882

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:

Stack Trace (bun.report)

Bun v1.2.6 (8ebd5d5) on windows x86_64 [AddCommand]

panic: Internal assertion failure

Sentry Issue: BUN-D2W

Metadata

Metadata

Assignees

No one assigned

    Labels

    bun installSomething that relates to the npm-compatible clientcrashAn issue that could cause a crashwindowsAn issue that is known to occur on Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions