Skip to content

Error: [vitest-pool]: Worker forks emitted error. #9762

Closed as not planned
Closed as not planned

Description

@scottysseus

Describe the bug

I am attempting to run vitest with bunx.

bunx vitest

Before the tests even start, however, I get the following error:

bunx vitest

 DEV  v4.0.18 /home/.../...

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Errors ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯

Vitest caught 1 unhandled error during the test run.
This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Error ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Error: [vitest-pool]: Worker forks emitted error.
 ❯ EventEmitter.<anonymous> ../node_modules/vitest/dist/chunks/cli-api.B7PN_QUv.js:8043:22
 ❯ EventEmitter.emit ../node:events:508:28
 ❯ ChildProcess.emitUnexpectedExit ../node_modules/vitest/dist/chunks/cli-api.B7PN_QUv.js:7610:22
 ❯ ChildProcess.emit ../node:events:508:28
 ❯ Process.ChildProcess._handle.onexit ../node:internal/child_process:294:12

Caused by: Error: Worker exited unexpectedly
 ❯ ChildProcess.emitUnexpectedExit ../node_modules/vitest/dist/chunks/cli-api.B7PN_QUv.js:7609:33
 ❯ ChildProcess.emit ../node:events:508:28
 ❯ Process.ChildProcess._handle.onexit ../node:internal/child_process:294:12

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯


 Test Files   (1)
      Tests  no tests
     Errors  1 error
   Start at  18:48:15
   Duration  2.10s (transform 38ms, setup 0ms, import 0ms, tests 0ms, environment 0ms)

I only started seeing this error after installing another app (Antigravity) that seemed to bump my glibc version, but I didn't look too closely at the time. I'm seeing other threads like #6285 that seem to point to tinypool as a possible culprit, but none of the suggested workarounds has resolved this.

I have tried:

  • Pinning my versions of vitest and tinypool
  • The forks and vmForks options

Reproduction

bunx vitest

As can be seen in my output above, this is likely a system issue as no tests actually run.

Vite config:

/// <reference types="vitest/config" />
import { defineConfig } from "vite";
import solid from "vite-plugin-solid";

export default defineConfig({
  root: "client",
  plugins: [solid()],
  // tests are relative to the project root, not the client app root
  test: {
    include: ["../**/*.test.[jt]s"],
    exclude: [
      "../**/node_modules/**",
      "../**/dist/**",
      "../**/cypress/**",
      "../**/.{idea,git,cache,output,temp}/**",
      "../**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build,eslint,prettier}.config.*",
    ],
  },
  resolve: {
    alias: {
      src: "/src",
    },
  },
});

System Info

Output from the command above:

  System:
    OS: Linux 6.17 Ubuntu 24.04.4 LTS 24.04.4 LTS (Noble Numbat)
    CPU: (8) x64 Intel(R) Core(TM) i7-10610U CPU @ 1.80GHz
    Memory: 10.01 GB / 15.25 GB
    Container: Yes
    Shell: 5.2.21 - /bin/bash
  Binaries:
    Node: 24.9.0 - /home/scott/.nvm/versions/node/v24.9.0/bin/node
    npm: 11.6.0 - /home/scott/.nvm/versions/node/v24.9.0/bin/npm
    bun: 1.2.22 - /home/scott/.bun/bin/bun
  Browsers:
    Firefox: 148.0
    Firefox Developer Edition: 148.0
  npmPackages:
    vite: ^6.4.1 => 6.4.1 
    vitest: ^4.0.18 => 4.0.18 

Output of ldd --version:

ldd (Ubuntu GLIBC 2.39-0ubuntu8.7) 2.39
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.

Used Package Manager

bun

Validations

Activity

  1. added theissue type on Mar 1, 2026
  2. github-actions commented on Mar 2, 2026

    @github-actions

    Hello @scottysseus. Please provide a minimal reproduction using a GitHub repository or StackBlitz (you can also use examples). Issues marked with needs reproduction will be closed if they have no activity within 3 days.

  3. locked and limited conversation to collaborators on Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions