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

CI tests: MaxListenersExceededWarning: Possible EventEmitter memory leak detected. #4106

Closed
juergba opened this issue Nov 25, 2019 · 3 comments
Labels
type: bug a defect, confirmed by a maintainer

Comments

@juergba
Copy link
Member

juergba commented Nov 25, 2019

In the log files of our CI tests, following warnings can be found:

MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 uncaughtException listeners added to [process].

Please investigate, explain and evtl. fix those warnings.

@juergba juergba added unconfirmed-bug status: accepting prs Mocha can use your help with this one! labels Nov 25, 2019
@adam-edison
Copy link

Confirmed I've been seeing this bug for the last 3 weeks. Running on node 10, using mocha version 6.2.2. This outputs to the console while tests are running using either mocha or mocha --watch.

(node:13167) MaxListenersExceededWarning: 
Possible EventEmitter memory leak detected. 
11 uncaughtException listeners added to [process]. 
Use emitter.setMaxListeners() to increase limit

Suggested cause:

  • listeners are not being removed after they have been used and no longer needed

Many other libraries have faced this issue. See winston:

@jehy
Copy link

jehy commented Jan 28, 2020

I described this bug in details here: #4171

@juergba juergba added type: bug a defect, confirmed by a maintainer and removed status: accepting prs Mocha can use your help with this one! unconfirmed-bug labels Jan 30, 2020
@juergba
Copy link
Member Author

juergba commented Jan 30, 2020

fixed by #4147.

Our CI tests still log a few warnings, but they are test specific and will be improved later.

@juergba juergba closed this as completed Jan 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug a defect, confirmed by a maintainer
Projects
None yet
Development

No branches or pull requests

3 participants