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

FATAL ERROR: v8::FromJust Maybe value is Nothing. #2175

Closed
6 tasks done
OmgImAlexis opened this issue Oct 20, 2022 · 9 comments
Closed
6 tasks done

FATAL ERROR: v8::FromJust Maybe value is Nothing. #2175

OmgImAlexis opened this issue Oct 20, 2022 · 9 comments

Comments

@OmgImAlexis
Copy link

OmgImAlexis commented Oct 20, 2022

Describe the bug

Similar issue as #1191

When hitting this I'm redirected to that issue but yet can't add a comment as it's "This conversation has been locked as resolved and limited to collaborators.".

FATAL ERROR: v8::FromJust Maybe value is Nothing.
 1: 0xb652e0 node::Abort() [node]
 2: 0xa761b5 node::FatalError(char const*, char const*) [node]
 3: 0xd5595a v8::Utils::ReportApiFailure(char const*, char const*) [node]
 4: 0xb6974d node::fs::FileHandle::CloseReq::Resolve() [node]
 5: 0xb698d0  [node]
 6: 0x16552fd  [node]
 7: 0x1659ad6  [node]
 8: 0x166c214  [node]
 9: 0x165a428 uv_run [node]
10: 0xaa1e45 node::SpinEventLoop(node::Environment*) [node]
11: 0xc33d32 node::worker::Worker::Run() [node]
12: 0xc342f8  [node]
13: 0x7f5d64a16ea7  [/lib/x86_64-linux-gnu/libpthread.so.0]
14: 0x7f5d64946def clone [/lib/x86_64-linux-gnu/libc.so.6]

While hitting this I also noticed sometimes my tests just stop without a crash. There's no summary, error, etc. they just stop.

root@eae0f519711d:/app# npm run test

> @unraid/[email protected] test
> vitest run --segfault-retry=3


 RUN  v0.23.4 /app

 ✓ src/__test__/test_name_here.test.ts (17) 593ms
 ✓ src/__test__/another_test_name_here.test.ts (1) 5036ms

Reproduction

I've yet to find what's causing this, it seems to happen randomly in my tests. If someone could point me to how to debug this I'm happy to try and get a repro going.

System Info

System:
    OS: Linux 5.10 Debian GNU/Linux 11 (bullseye) 11 (bullseye)
    CPU: (12) x64 Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz
    Memory: 6.41 GB / 7.72 GB
    Container: Yes
    Shell: 5.1.4 - /bin/bash
  Binaries:
    Node: 18.5.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 8.12.1 - /usr/local/bin/npm
  npmPackages:
    vitest: ^0.24.3 => 0.24.3

Used Package Manager

npm

Validations

@sheremet-va
Copy link
Member

  1. Stacktrace here is different than it is in the mention issue, so new issue is preferable here.
  2. Have you tried updating your Node version to the latest?
  3. Cannot help you without reproduction or at least a project to debug, if it's open source.

@ivands
Copy link

ivands commented Dec 27, 2022

I'm getting this error as well, using Node: v18.3.0

@sheremet-va
Copy link
Member

I'm getting this error as well, using Node: v18.3.0

Node 18.3 is not the latest Node 18

@Priestch
Copy link

@OmgImAlexis I got a similar error in a test file, it uses the fs module to sync read, and write to some files.

My OS is Ubuntu 22.04, after upgrading vitetest from v0.27.1 to v0.28.3, the error just disappeared, hope this helps.

@revers3ntropy
Copy link

I got this on v0.33.0 and downgrading to v0.32.4 fixed it...

@VKeyPEDIdea
Copy link

I got this on v0.33.0 and downgrading to v0.32.4 fixed it...

I got this issue on v0.34.1 and v0.34.4. So I downgraded this to v0.32.4. After it I can't get the error.

@pezillionaire
Copy link

pezillionaire commented Dec 4, 2023

Similar Issues, v0.32.4 has no issues but anything higher nets the same error.
I noticed that removing junit from my reporters seems to resolve this on v1.0.1 (perhaps over versions as well, but I've not tested)

@liangskyli
Copy link

Same issue, version: [email protected]

@AriPerkkio
Copy link
Member

Fixed by #3925 and #4172.

Vitest 1.0.0 has now --pool=forks which uses multiple node:child_process in parallel. The previous --no-threads was using a single node:child_process.

If the code you are testing is incompatible with node:worker_threads, switch to --pool=forks. If you run into same error with that pool, feel free to open new issue with minimal reproduction.

@github-actions github-actions bot locked and limited conversation to collaborators Apr 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants