-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
vitest crashes silently with long async test on windows #2045
Comments
When I run in Git Bash I often see this being issued upon abort in the same place where the abort happens in PowerShell:
|
Have kinda same issue. Tests were developed on Mac and running fine, but on Windows server 2022 I get 'Segmentation fault'
|
might be related #2415 |
Same issue happening to me - Any updates? |
Since this is appeared at the top of the Google search, I'm leaving the two things that were causing issues on my side:
|
The worker threads incompatibilities might cause this. Vitest 2.0 switches to using |
Describe the bug
vitest crashes silently with long async test. Such a test looks like the one provided below. The test run includes this test plus others. It is only with the inclusion of this test that the crash happens. The test run aborts without reporting an error nor any other kind of result. The crash is intermittent and does not always happen at the same place during the run.
The
testTimeout
config setting should be set high enough to easily allow the "simple example" test given below to run without timing out.Reproduction
On Windows PowerShell (I haven't tried elsewhere):
npm ci
npm run test
If it doesn't reproduce the first time, try a few more times. It is intermittent, maybe 50-50. When it fails it will stop without reporting the final summary results of the run.
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: