Skip to content
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

Bun crashes when generating coverage report. #10395

Closed
Azoraqua opened this issue Apr 20, 2024 · 6 comments · Fixed by #11131
Closed

Bun crashes when generating coverage report. #10395

Azoraqua opened this issue Apr 20, 2024 · 6 comments · Fixed by #11131
Labels
bug Something isn't working crash An issue that could cause a crash jest Something related to the `bun test` runner

Comments

@Azoraqua
Copy link

Azoraqua commented Apr 20, 2024

How can we reproduce the crash?

Just run bun test --coverage

Relevant log output

bun test v1.1.4 (accfff02)

src\lib\filter.test.ts:

src\lib\map.test.ts:

src\lib\reduce.test.ts:

src\lib\sort.test.ts:
------------------------|---------|---------|-------------------
File                    | % Funcs | % Lines | Uncovered Line #s
------------------------|---------|---------|-------------------

============================================================
Bun v1.1.4 (accfff02) Windows x64
Args: "C:\Users\Azoraqua\.bun\bin\bun.exe", "test", "--coverage"
Features: tsconfig(2)
Elapsed: 26ms | User: 15ms | Sys: 15ms
RSS: 111.84MB | Peak: 111.84MB | Commit: 0.16GB | Faults: 27527

panic(main thread): attempt to cast negative value to unsigned integer
oh no: Bun has crashed. This indicates a bug in Bun, not your code.

Stack Trace (bun.report)

https://bun.report/1.1.4/waccfff01gtrqIgp17H+08isCk//6Eovm8E+lqsF69Korqo1CCa\KERNEL32.DLL63yECU\ntdll.dllwk1WA0eNoVyMEJACAMA8BVslrRUApaRaPzi/c8k9inoIFiW0i6KS5xrR3+PrnDkxWRonM95EETDA

@Azoraqua Azoraqua added bug Something isn't working crash An issue that could cause a crash labels Apr 20, 2024
@zapteryx
Copy link

+1, experiencing this crash as well

@Electroid Electroid added the jest Something related to the `bun test` runner label Apr 22, 2024
@sebastianbuechler
Copy link

+1 for windows setup

@dylan-conway
Copy link
Collaborator

minimum repro

// test.test.js
async function foo() {}

@Azoraqua
Copy link
Author

minimum repro

// test.test.js
async function foo() {}

If that's all to cause the error, something seems terribly wrong with the coverage feature. Hope it gets fixed quickly, seems like an useful feature.

@Jarred-Sumner
Copy link
Collaborator

Duplicate of #10836

@Jarred-Sumner Jarred-Sumner marked this as a duplicate of #10836 May 16, 2024
@Jarred-Sumner
Copy link
Collaborator

We will fix this, but please follow along in #10836 to track this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working crash An issue that could cause a crash jest Something related to the `bun test` runner
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants