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

Errors, when destroying a pool #43

Closed
sheremet-va opened this issue Jan 11, 2023 · 1 comment · Fixed by #44
Closed

Errors, when destroying a pool #43

sheremet-va opened this issue Jan 11, 2023 · 1 comment · Fixed by #44

Comments

@sheremet-va
Copy link
Member

Reproduction: https://github.com/sheremet-va/vitest/tree/bug/pool-destroy

Steps to reproduce:

Run pnpm run build to build Vitest
Run pnpm run test to start tests
When you see "Vitest" label, hit Ctrl+C
See errors:

Exception in PromiseRejectCallback:
node:internal/process/task_queues:104
function nextTick(callback) {
                 ^

RangeError: Maximum call stack size exceeded
Exception in PromiseRejectCallback:
file:///Users/sheremet.mac/Projects/vitest/node_modules/.pnpm/[email protected]/node_modules/tinypool/dist/esm/index.js:636
        reject(err);
        ^

RangeError: Maximum call stack size exceeded
Exception in PromiseRejectCallback:
node:internal/worker:366
    return new Promise((resolve) => {
           ^

RangeError: Maximum call stack size exceeded
Exception in PromiseRejectCallback:
file:///Users/sheremet.mac/Projects/vitest/node_modules/.pnpm/[email protected]/node_modules/tinypool/dist/esm/index.js:636
        reject(err);
        ^

RangeError: Maximum call stack size exceeded
(node:42681) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 exit listeners added to [Worker]. Use emitter.setMaxListeners() to increase limit
(Use `node --trace-warnings ...` to show where the warning was created)
error during close RangeError: Maximum call stack size exceeded
    at Worker.terminate (node:internal/worker:345:12)
    at WorkerInfo.destroy (file:///Users/sheremet.mac/Projects/vitest/node_modules/.pnpm/[email protected]/node_modules/tinypool/dist/esm/index.js:371:17)
    at ThreadPool._removeWorker (file:///Users/sheremet.mac/Projects/vitest/node_modules/.pnpm/[email protected]/node_modules/tinypool/dist/esm/index.js:589:16)
    at file:///Users/sheremet.mac/Projects/vitest/node_modules/.pnpm/[email protected]/node_modules/tinypool/dist/esm/index.js:641:14
    at TaskInfo.runInAsyncScope (node:async_hooks:203:9)
    at TaskInfo.done (file:///Users/sheremet.mac/Projects/vitest/node_modules/.pnpm/[email protected]/node_modules/tinypool/dist/esm/index.js:251:10)
    at WorkerInfo.destroy (file:///Users/sheremet.mac/Projects/vitest/node_modules/.pnpm/[email protected]/node_modules/tinypool/dist/esm/index.js:376:16)
    at ThreadPool._removeWorker (file:///Users/sheremet.mac/Projects/vitest/node_modules/.pnpm/[email protected]/node_modules/tinypool/dist/esm/index.js:589:16)
    at file:///Users/sheremet.mac/Projects/vitest/node_modules/.pnpm/[email protected]/node_modules/tinypool/dist/esm/index.js:641:14
    at TaskInfo.runInAsyncScope (node:async_hooks:203:9)
@sheremet-va sheremet-va changed the title Errors, when closing pool Errors, when destroying pool Jan 11, 2023
@Aslemammad
Copy link
Member

Thank you so much, I'll put some time on this and the other issue this weekend.

@sheremet-va sheremet-va changed the title Errors, when destroying pool Errors, when destroying a pool Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants