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 encountered #1

Closed
jaydenseric opened this issue Jul 19, 2018 · 2 comments
Closed

MaxListenersExceededWarning encountered #1

jaydenseric opened this issue Jul 19, 2018 · 2 comments

Comments

@jaydenseric
Copy link
Collaborator

When fs-capacity is used frequently in the same process, it can trigger MaxListenersExceededWarning (best debugged with the --trace-warnings Node.js flag):

(node:72923) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 exit listeners added. Use emitter.setMaxListeners() to increase limit
    at _addListener (events.js:243:17)
    at process.addListener (events.js:259:10)
    at _fs.default.open (/Users/jaydenseric/Sites/apollo-upload-server/node_modules/fs-capacitor/lib/index.js:140:17)
    at FSReqWrap.oncomplete (fs.js:145:20)
(node:72923) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 SIGINT listeners added. Use emitter.setMaxListeners() to increase limit
    at _addListener (events.js:243:17)
    at process.addListener (events.js:259:10)
    at _fs.default.open (/Users/jaydenseric/Sites/apollo-upload-server/node_modules/fs-capacitor/lib/index.js:141:17)
    at FSReqWrap.oncomplete (fs.js:145:20)

See https://travis-ci.org/jaydenseric/apollo-upload-server/jobs/405666803#L2191.

Here is where the relevant listeners are attached: https://github.com/mike-marcacci/fs-capacitor/blob/v0.0.3/src/index.mjs#L142

jaydenseric added a commit to jaydenseric/graphql-upload that referenced this issue Jul 19, 2018
mike-marcacci added a commit to jaydenseric/graphql-upload that referenced this issue Jul 23, 2018
@mike-marcacci
Copy link
Owner

mike-marcacci commented Jul 23, 2018

This should now be fixed on master and in v1.0.0-beta.*: https://travis-ci.org/jaydenseric/apollo-upload-server/jobs/406965783#L2203

I'm going to leave this issue open until I publish v1.0.0.

@mike-marcacci
Copy link
Owner

Fixed in v1.0.0

krasivyy3954 added a commit to krasivyy3954/react-graphql-upload that referenced this issue Jan 6, 2023
krasivyy3954 added a commit to krasivyy3954/react-graphql-upload that referenced this issue Jan 6, 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

No branches or pull requests

2 participants