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

MaxListenersExceededWarning: Possible EventEmitter memory leak detected #141

Closed
1 of 5 tasks
thescientist13 opened this issue Aug 6, 2019 · 2 comments · Fixed by #145 or #1046
Closed
1 of 5 tasks

MaxListenersExceededWarning: Possible EventEmitter memory leak detected #141

thescientist13 opened this issue Aug 6, 2019 · 2 comments · Fixed by #145 or #1046
Assignees
Labels
bug Something isn't working P0 Critical issue that should get addressed ASAP v0.3.0
Milestone

Comments

@thescientist13
Copy link
Member

Type of Change

  • New Feature Request
  • Documentation / Website
  • Improvement / Suggestion
  • Bug
  • Other (please clarify below)

Summary

As part of working on #122 this warning started showing

(node:46265) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 exit listeners added. Use emitter.setMaxListeners() to increase limit
(node:46265) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 SIGINT listeners added. Use emitter.setMaxListeners() to increase limit
(node:46265) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 SIGTERM listeners added. Use emitter.setMaxListeners() to increase limit
(node:46265) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 SIGHUP listeners added. Use emitter.setMaxListeners() to increase limit

Details

Some initial Googling suggested that it could be related to us not closing browser?
puppeteer/puppeteer#594

One quick option is to set process.setMaxListeners(0);

@thescientist13 thescientist13 added the chore unit testing, maintenance, etc label Aug 6, 2019
@thescientist13
Copy link
Member Author

Given our proposal in #16 , then it might make sense to approach this using the "quick" solution of setting process.setMaxListeners(0);

@thescientist13 thescientist13 added this to the POC milestone Aug 8, 2019
@thescientist13 thescientist13 modified the milestones: POC, MVP Aug 8, 2019
@thescientist13
Copy link
Member Author

It is ugly looking output though. :/

I suppose if we do go with the "quick" approach, then we should promote #16 for the next sprint so we don't run into unintended consequences for larger projects (if indeed the issue is not closing browser)

@thescientist13 thescientist13 moved this from TODO to IN PROGRESS in 2 - POC + Website (0.3.0) Aug 8, 2019
@thescientist13 thescientist13 added bug Something isn't working P0 Critical issue that should get addressed ASAP and removed chore unit testing, maintenance, etc labels Aug 8, 2019
@thescientist13 thescientist13 moved this from IN PROGRESS to IN REVIEW in 2 - POC + Website (0.3.0) Aug 8, 2019
@thescientist13 thescientist13 self-assigned this Aug 12, 2019
@thescientist13 thescientist13 moved this from IN REVIEW to DONE in 2 - POC + Website (0.3.0) Aug 12, 2019
@thescientist13 thescientist13 linked a pull request Jan 18, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P0 Critical issue that should get addressed ASAP v0.3.0
Projects
No open projects
1 participant