js-libp2p: Possible EventTarget Memory Leak Detected
Version: 0.30.10
Platform: Linux pop-os 5.8.0-7642-generic # 47~ 1612288990 ~20.10 ~b8113e7-Ubuntu x86_64 GNU/Linux, Node v15.8.0.
Subsystem: Dialer (src/dialer/dial-request.js)
Type: Possible EventTarget memory leak detected.
Severity: Medium
Description:
(node:52434) MaxListenersExceededWarning: Possible EventTarget memory leak detected. 11 abort listeners added to [AbortSignal]. Use events.setMaxListeners() to increase limit at EventTarget.[kNewListener] (node:internal/event_target:256:17) at EventTarget.addEventListener (node:internal/event_target:335:23) at anySignal (node_modules/any-signal/index.js:27:12) at node_modules/libp2p/src/dialer/dial-request.js:70:85 at runMicrotasks (<anonymous>) at processTicksAndRejections (node:internal/process/task_queues:94:5)
Steps to reproduce the error:
Import ipfs-core into a Node project, initialize, let it run for ~30 minutes.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 17 (17 by maintainers)
Commits related to this issue
- fix: increase maxlisteners on event target Sometimes you encounter peers with lots of addresses. When this happens you can attach more than 10x event listeners to the abort signal we use to abort all... — committed to libp2p/js-libp2p by achingbrain 5 years ago
- fix: increase maxlisteners on event target (#1050) Sometimes you encounter peers with lots of addresses. When this happens you can attach more than 10x event listeners to the abort signal we use to... — committed to libp2p/js-libp2p by achingbrain 5 years ago
OSX Mojave 10.14.6, Node v15.11.0, no issues. Will try on Windows next. Test repo.