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

[Bug] Possible EventEmitter memory leak detected #131

Open
unlight opened this issue Apr 30, 2022 · 0 comments
Open

[Bug] Possible EventEmitter memory leak detected #131

unlight opened this issue Apr 30, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@unlight
Copy link

unlight commented Apr 30, 2022

Describe the bug
(node:15272) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 uncaughtException listeners added to [process]. Use emitter.setMaxListeners() to increase limit
(Use node --trace-warnings ... to show where the warning was created)

To Reproduce

# open terminal 1
git clone https://github.com/unlight/mochapack-node-playground
cd mochapack-node-playground
git checkout 7dd0b3aff014a97f2fd38d0fce6b809798cb2918
pnpm i
npm run test:w
# switch to terminal 2
sleep 0.2
touch src/index.ts
sleep 0.2
touch src/index.ts
sleep 0.2
touch src/index.ts
sleep 0.2
touch src/index.ts
sleep 0.2
touch src/index.ts
sleep 0.2
touch src/index.ts
sleep 0.2
touch src/index.ts
sleep 0.2
touch src/index.ts
sleep 0.2
touch src/index.ts
echo "check terminal 1"

Environment if relevant (please complete the following information):

  • OS: Windows 10
  • Node version v16.15.0
  • Mochapack version 2.1.4
  • Webpack version 5.72.0
@unlight unlight added the bug Something isn't working label Apr 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant