Repository navigation
FATAL ERROR: v8::FromJust Maybe value is Nothing #43304
Description
Activity
airtable-keyhanvakil commented
on Jun 4, 2022 ContributorMore actionsPossibly already fixed in #42874.
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 commented
on Jul 6, 2022 ContributorMore actions@ashishchandr70 It looks to be in v18.2.0. I asked about how to get it backported to earlier branches in that PR.
I had this issue with vitest, I just updated it to the latest version
"vitest": "^0.22.1"and it works nowSimilar 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.FATAL ERROR: v8::FromJust Maybe value is Nothing. 1: 00007FF7A83C94EF node_api_throw_syntax_error+174703 2: 00007FF7A83579C6 v8::internal::wasm::WasmCode::safepoint_table_offset+67350 3: 00007FF7A835889D node::OnFatalError+301 4: 00007FF7A8DD5335 v8::api_internal::FromJustIsNothing+53 5: 00007FF7A83F1AE0 node::UVException+912 6: 00007FF7A8341EC9 v8::base::CPU::has_fpu+44745 7: 00007FF7A842B297 uv_timer_stop+1207 8: 00007FF7A842783B uv_async_send+331 9: 00007FF7A8426FCC uv_loop_init+1292 10: 00007FF7A842716A uv_run+202 11: 00007FF7A83F6065 node::SpinEventLoop+309 12: 00007FF7A828D200 v8::internal::wasm::SignatureMap::Freeze+36000 13: 00007FF7A8288918 v8::internal::wasm::SignatureMap::Freeze+17336 14: 00007FF7A841783D uv_poll_stop+557 15: 00007FF7A93D0D70 v8::internal::compiler::ToString+145936 16: 00007FFBAAFD458D BaseThreadInitThunk+29 17: 00007FFBACE57558 RtlUserThreadStart+40Original comment: #6899 (comment)
It would be useful if someone could provide a simple way to reproduce the crash.
Reacted by Luna- addedv8 engineIssues and PRs related to the V8 dependency.Issues and PRs related to the V8 dependency.lib / srcIssues and PRs involving general changes in the lib/ or src/ directories.Issues and PRs involving general changes in the lib/ or src/ directories.and removedv8 engineIssues and PRs related to the V8 dependency.Issues and PRs related to the V8 dependency.
on Sep 7, 2022 - added 2 commits that reference this issue
on Jul 12, 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.
import { createApplication, Request } from '@nbit/bun'; import { expect, test } from 'vitest'; const home = () => ({ hello: 'world' }); const { defineRoutes, createRequestHandler } = createApplication(); const routes = defineRoutes(app => [ app.get('/', home), ]); const requestHandler = createRequestHandler(routes); test('should return the home page', async () => { const request = new Request('http://localhost/'); const response = await requestHandler(request); expect(response.status).toBe(200); });
➜ vote git:(main) ✗ bun run test $ vitest run --coverage RUN v0.34.1 /Users/xo/code/ImLunaHey/vote Coverage enabled with v8 ✓ src/handlers/home.test.ts (1) ✓ should return the home page Test Files 1 passed (1) Tests 1 passed (1) Start at 20:40:20 Duration 754ms (transform 77ms, setup 0ms, collect 77ms, tests 8ms, environment 0ms, prepare 160ms) % Coverage report from v8 -----------------------|---------|----------|---------|---------|------------------- File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s -----------------------|---------|----------|---------|---------|------------------- All files | 0 | 0 | 0 | 0 | src | 0 | 0 | 0 | 0 | application.ts | 0 | 0 | 0 | 0 | 1-9 index.ts | 0 | 0 | 0 | 0 | 1-11 things-to-vote-on.ts | 0 | 0 | 0 | 0 | 1-90 src/handlers | 0 | 0 | 0 | 0 | home.ts | 0 | 0 | 0 | 0 | 1-22 index.ts | 0 | 0 | 0 | 0 | 1-2 vote.tsx | 0 | 0 | 0 | 0 | 1-135 -----------------------|---------|----------|---------|---------|------------------- FATAL ERROR: v8::FromJust Maybe value is Nothing. 1: 0x10e451a95 node::Abort() (.cold.1) [/Users/xo/.nvm/versions/node/v18.3.0/bin/node] 2: 0x10cf19419 node::Abort() [/Users/xo/.nvm/versions/node/v18.3.0/bin/node] 3: 0x10cf1958f node::OnFatalError(char const*, char const*) [/Users/xo/.nvm/versions/node/v18.3.0/bin/node] 4: 0x10d0a2c60 v8::api_internal::FromJustIsNothing() [/Users/xo/.nvm/versions/node/v18.3.0/bin/node] 5: 0x10cf1ca94 node::fs::FileHandle::CloseReq::Resolve() [/Users/xo/.nvm/versions/node/v18.3.0/bin/node] 6: 0x10cf31e4a node::fs::FileHandle::ClosePromise()::$_0::__invoke(uv_fs_s*) [/Users/xo/.nvm/versions/node/v18.3.0/bin/node] 7: 0x10d9cc578 uv__work_done [/Users/xo/.nvm/versions/node/v18.3.0/bin/node] 8: 0x10d9d173b uv__async_io [/Users/xo/.nvm/versions/node/v18.3.0/bin/node] 9: 0x10d9e552b uv__io_poll [/Users/xo/.nvm/versions/node/v18.3.0/bin/node] 10: 0x10d9d1cc1 uv_run [/Users/xo/.nvm/versions/node/v18.3.0/bin/node] 11: 0x10ce49f9f node::SpinEventLoop(node::Environment*) [/Users/xo/.nvm/versions/node/v18.3.0/bin/node] 12: 0x10cfc64d8 node::worker::Worker::Run() [/Users/xo/.nvm/versions/node/v18.3.0/bin/node] 13: 0x10cfc9e22 node::worker::Worker::StartThread(v8::FunctionCallbackInfo<v8::Value> const&)::$_3::__invoke(void*) [/Users/xo/.nvm/versions/node/v18.3.0/bin/node] 14: 0x7ff81004c4e1 _pthread_start [/usr/lib/system/libsystem_pthread.dylib] 15: 0x7ff810047f6b thread_start [/usr/lib/system/libsystem_pthread.dylib] error: script "test" exited with code 6 (SIGABRT)@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.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.@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 vitestI join the problem with 20.15.1
- added 2 commits that reference this issue
on Sep 24, 2025 github-actions commented
on Jun 25, 2026 on Jun 25, 2026 – with GitHub ActionsContributorMore actionsThis 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.- addedstaleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.Issues and PRs marked stale due to inactivity and scheduled for automatic closure.
on Jun 25, 2026 github-actions commented
on Jul 27, 2026 on Jul 27, 2026 – with GitHub ActionsContributorMore actionsThis 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.Reacted by Luna
Version
v16.14.0
Platform
Darwin 21.5.0 Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:37 PDT 2022; root:xnu-8020.121.3~4/RELEASE_ARM64_T6000 arm64
Subsystem
No response
What steps will reproduce the bug?
Running yarn test in debug console in visual studio code
How often does it reproduce? Is there a required condition?
Everytime
What is the expected behavior?
No response
What do you see instead?
Additional information
No response