-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Segmentation fault (core dumped) #317
Comments
Not sure if I can debug Segmentation fault, help wanted 😅 |
@benmccann can you test with |
Tried it locally - it still segfaults. It is not an Node error like #319 but an actual segfault. |
I messed around with this for a bit and can see that the tests are specifically failing when we call I don't know much about node internals, but it looks like something about the work being delegated causes the segfault. As far as vitest is concerned, the segfault happens once createWorkerPool is invoked. I hope this helps :/ |
I'm having the same issue of the #319 starting with the following error
It's always happening locally when running Vitest with I said locally because it seems the first time in which I login to my mac it's working while after the first time it fails most of the time. Furthermore
Notes
|
BTW, I'm stress testing it and one time failed with
And this is the log file In the stress test, I discovered that for a suite of files this issue is not appearing at all, and so I assume that it's a suite that sometimes it's generating an internal error that is not caught properly. |
Does anyone have a line on this? @benmccann does it seem that Vitest cannot solve these segfault issues until Node addresses the VM issue on their side? |
I'm also running into this issue, would be nice to have a fix or a workaround! |
I'm running into this issue as well 😞 Hope this gets fixed. |
We made a change in the latest version that should help with that, can you check? |
Prior to Vitest 0.12.3, the only way I can reliably run the tests is to set Since updating to 0.12.3, I have had the issue once (the first time), but since then have had
From the experience I had with older releases of Vitest, once the error occurs, it does tend to keep occuring. I'm not sure at what point it starts working again, but it will do at some point! For now I am more than happy with my workaround of using |
I'm further testing it but with Vitest 0.12.3, v8 FATAL ERROR is not occurring anymore. This is the project I'm working on:
|
Upgrading to the latest did not help me, but rebasing against That's good enough for me, so I'll close this issue. If other people are still encountering this I'd recommend filing a new issue with a repository that reproduces your error |
Hrm using
|
bumping as I am facing similar issue as @mikemaccana. If I disable threads, then tests run ok |
I'm running into the same issue as well. |
Facing this issue as well - Re-opening an issue because this one's closed for some reason |
I'm having this same issue - it occurs in some of our ci/cd tests, but not when I run the same suite of tests locally. Originally running version v0.26.2, bumped to v0.30.1 with the same issue. |
Dealing with the same issue here too! |
i have the same issue, anyone tested how to fix this? |
If you have segmentation errors, disable threads. With config: export default {
test: {
threads: false,
}
} With CLI:
|
Describe the bug
I'm trying Vitest out for the first time by trying to switch
vite-imagetools
to use it. I ran vitest and got:Reproduction
System Info
command doesn't work because this project uses yarn. I'm hoping to send a PR to switch to pnpm, but that's sort of blocked on this issue
anyway, I'm using:
Used Package Manager
yarn
Logs
Validations
The text was updated successfully, but these errors were encountered: