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 crash running integration tests #17736

Open
wayfarer3130 opened this issue Feb 26, 2025 · 5 comments
Open

BUN crash running integration tests #17736

wayfarer3130 opened this issue Feb 26, 2025 · 5 comments
Labels
crash An issue that could cause a crash windows An issue that is known to occur on Windows

Comments

@wayfarer3130
Copy link

How can we reproduce the crash?

No idea unfortunately

Relevant log output

Stack Trace (bun.report)

Bun v1.2.2 (c1708ea) on windows x86_64 [TestCommand]

Segmentation fault at address 0x7FFBE6E6CF48

Features: tsconfig_paths, process_dlopen, Bun.stderr, Bun.stdout, jsc, tsconfig, tsconfig

Sentry Issue: BUN-9CA

@wayfarer3130 wayfarer3130 added the crash An issue that could cause a crash label Feb 26, 2025
@github-actions github-actions bot added the windows An issue that is known to occur on Windows label Feb 26, 2025
Copy link
Contributor

@wayfarer3130, the latest version of Bun is v1.2.3, but this crash was reported on Bun v1.2.2.

Are you able to reproduce this crash on the latest version of Bun?

bun upgrade

@wayfarer3130
Copy link
Author

The crash report for bun 1.2.4 is below.
The project is cornerstonejs https://github.com/cornerstonejs/cornerstone3D.git
git checkout feat/key-image-adapter-point
bun install
bun build:update-api
bun test

Bun v1.2.4 (fd9a5ea) on windows x86_64 [TestCommand]

Segmentation fault at address 0x7FFBE672CF48

Features: transpiler_cache, tsconfig, tsconfig_paths, process_dlopen, Bun.stderr, Bun.stdout, jsc

Sentry Issue: BUN-CZX

@DonIsaac
Copy link
Contributor

It looks like this package uses karma + playwright to run tests. Running bun test throws a bunch of ABI compatibility errors when importing canvas. What exact command(s) did you run?

@Jarred-Sumner
Copy link
Collaborator

It's a crash while exiting. Likely in a cleanup function somewhere

@wayfarer3130
Copy link
Author

It did seem to be about time to exit - given that it doesn't run the karma/playwright/canvas compatibility issues right now, it isn't a critical issue for me, rather I thought it was worth reporting so it could get cleaned up. I would like to be able to run with importing canvas, as we use canvas heavily for rendering, but I suspect a canvas implementation that works against the bun ABI is still a chunk of work. Thank you for looking at it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crash An issue that could cause a crash windows An issue that is known to occur on Windows
Projects
None yet
Development

No branches or pull requests

3 participants