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

tsx doesn't stop spawning threads with node 20 #232

Closed
1 task
samuelgozi opened this issue May 1, 2023 · 2 comments
Closed
1 task

tsx doesn't stop spawning threads with node 20 #232

samuelgozi opened this issue May 1, 2023 · 2 comments
Labels
bug Something isn't working outdated pending triage

Comments

@samuelgozi
Copy link

Bug description

Whether I run tsx ./main.ts or node --loader tsx main.ts, the code runs, but threads don't stop spawning until OS kills the process.

It doesn't matter which code I run as long as it stays up.
This doesn't seem to happen with node 19.

Reproduction

setInterval(() => {
  process.stderr.write(`\r${performance.now()}`);
}, 1000);

Environment

System:
    OS: macOS 13.3
    CPU: (8) arm64 Apple M1 Pro
    Memory: 3.12 GB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.0.0 - /opt/homebrew/bin/node
    npm: 9.6.4 - /opt/homebrew/bin/npm
  npmPackages:
    tsx: ^3.8.0 => 3.12.3

Can you work on a fix?

  • I’m interested in opening a pull request to address this issue.
@samuelgozi samuelgozi added bug Something isn't working pending triage labels May 1, 2023
@LangLangBart
Copy link

@privatenumber
Copy link
Owner

Yes, seems like it.

Also:

Closing as it's a Node.js bug.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working outdated pending triage
Projects
None yet
Development

No branches or pull requests

3 participants