You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
FATAL ERROR: v8::FromJust Maybe value is Nothing #43304
Here's a small reproducible code sample. This crashes with the error 1/5 times for me. If I keep running this over and over I consistently get the crash.
import{createApplication,Request}from'@nbit/bun';import{expect,test}from'vitest';consthome=()=>({hello: 'world'});const{ defineRoutes, createRequestHandler }=createApplication();constroutes=defineRoutes(app=>[app.get('/',home),]);constrequestHandler=createRequestHandler(routes);test('should return the home page',async()=>{constrequest=newRequest('http://localhost/');constresponse=awaitrequestHandler(request);expect(response.status).toBe(200);});
I believe vitest is part of the issue. Running this in node or bun with node or bun's built-in testing framework for example doesn't produce this error.
@ImLunaHey does disabling multi threading (vitest run --coverage --no-threads) fix the issue? And does removing --coverage fix it? Both of those hacks worked for me, wondering if there's an issue with multithreading and coverage in vitest
This issue has been marked as stale due to 210 days of inactivity.
It will be automatically closed in 30 days if no further activity occurs. If this is still relevant, please leave a comment or update it to keep it open.
This issue has been automatically closed after 30 days of inactivity following its stale status (no activity for a total of 120 days).
If this is still relevant, feel free to reopen it or leave a comment with additional details so we can continue the discussion.
Activity
airtable-keyhanvakil commentedon Jun 4, 2022
Possibly already fixed in #42874.
ashishchandr70 commentedon Jul 6, 2022
Do you know @airtable-keyhanvakil where this landed i.e. which version was it applied to and whether it covers Node.js 14.x?
airtable-keyhanvakil commentedon Jul 6, 2022
@ashishchandr70 It looks to be in v18.2.0. I asked about how to get it backported to earlier branches in that PR.
Radinax commentedon Aug 27, 2022
I had this issue with vitest, I just updated it to the latest version
"vitest": "^0.22.1"and it works nowOmgImAlexis commentedon Sep 7, 2022
Similar issue yet again in
vitest@0.23.1onnode@v18.3.0.This happened after hitting
RangeError: Maximum call stack size exceededin one of my tests.Original comment: #6899 (comment)
targos commentedon Sep 7, 2022
It would be useful if someone could provide a simple way to reproduce the crash.
[INTERNAL] Azure: Disable AVA worker threads
[INTERNAL] Azure: Disable AVA worker threads
ImLunaHey commentedon Aug 5, 2023
Here's a small reproducible code sample. This crashes with the error 1/5 times for me. If I keep running this over and over I consistently get the crash.
bnoordhuis commentedon Aug 6, 2023
@ImLunaHey can you try with the latest v18.x? v18.3.0 is pretty old by now.
A test case without third-party dependencies would help too.
import "vitest"probably pulls in the world and then some.ImLunaHey commentedon Aug 10, 2023
I believe
vitestis part of the issue. Running this in node or bun with node or bun's built-in testing framework for example doesn't produce this error.madeleineostoja commentedon Nov 7, 2023
@ImLunaHey does disabling multi threading (
vitest run --coverage --no-threads) fix the issue? And does removing--coveragefix it? Both of those hacks worked for me, wondering if there's an issue with multithreading and coverage in vitestintellild commentedon Oct 8, 2024
I join the problem with 20.15.1
[ui5-builder][INTERNAL] Azure: Disable AVA worker threads
[builder][INTERNAL] Azure: Disable AVA worker threads
github-actions commentedon Jun 25, 2026
This issue has been marked as stale due to 210 days of inactivity.
It will be automatically closed in 30 days if no further activity occurs. If this is still relevant, please leave a comment or update it to keep it open.
github-actions commentedon Jul 27, 2026
This issue has been automatically closed after 30 days of inactivity following its stale status (no activity for a total of 120 days).
If this is still relevant, feel free to reopen it or leave a comment with additional details so we can continue the discussion.