Jalle19 / node-ffmpeg-mpegts-proxy

Simple proxy for leveraging ffmpeg to convert any source URL into MPEG-TS over HTTP
GNU General Public License v2.0
167 stars 52 forks source link

MaxListenersExceededWarning: Possible EventEmitter memory leak detected #54

Open xiongkang2000 opened 4 years ago

xiongkang2000 commented 4 years ago

(node:29078) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 unpipe listeners added. Use emitter.setMaxListeners() to increase limit

Jalle19 commented 4 years ago

What did you do to make this happen?

xiongkang2000 commented 4 years ago

when source url expired,this problem happened!

DanielQuirogaDev commented 4 years ago

I am having exactly the same problem for the first time since using this project:

(node:11900) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 finish listeners added. Use emitter.setMaxListeners() to increase limit 2020-09-02T21:30:28.442Z - error: avconv exited with code 1 2020-09-02T21:30:28.719Z - error: avconv exited with code 1 (node:11900) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 finish listeners added. Use emitter.setMaxListeners() to increase limit 2020-09-02T21:30:28.976Z - error: avconv exited with code 1 2020-09-02T21:30:29.226Z - error: avconv exited with code 1 (node:11900) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 unpipe listeners added. Use emitter.setMaxListeners() to increase limit (node:11900) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 drain listeners added. Use emitter.setMaxListeners() to increase limit (node:11900) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit (node:11900) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 close listeners added. Use emitter.setMaxListeners() to increase limit 2020-09-02T21:30:29.525Z - error: avconv exited with code 1 2020-09-02T21:30:29.800Z - error: avconv exited with code 1 (node:11900) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 unpipe listeners added. Use emitter.setMaxListeners() to increase limit (node:11900) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 drain listeners added. Use emitter.setMaxListeners() to increase limit (node:11900) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit (node:11900) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 close listeners added. Use emitter.setMaxListeners() to increase limit 2020-09-02T21:30:30.078Z - error: avconv exited with code 1 2020-09-02T21:30:30.329Z - error: avconv exited with code 1

Signal starts jumping...

Jalle19 commented 4 years ago

https://github.com/Jalle19/node-ffmpeg-mpegts-proxy/issues/46 someone else reported it too

Jalle19 commented 4 years ago

How many sources do you have? Does the error go away if you reduce the amount of sources configured?

DanielQuirogaDev commented 4 years ago

I am testing just that, 2 sources, everything is okay. Seems to be more of a problem with HLS sources?? More info in a while. Will add 20 sources.

DanielQuirogaDev commented 4 years ago

got 29 channels running and it is working with no issue, with TS Inputs.

DanielQuirogaDev commented 4 years ago

after 1 hour, i am getting again:

(node:110284) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 unpipe listeners added. Use emitter.setMaxListeners() to increase limit (node:110284) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 drain listeners added. Use emitter.setMaxListeners() to increase limit (node:110284) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit (node:110284) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 close listeners added. Use emitter.setMaxListeners() to increase limit

DanielQuirogaDev commented 4 years ago

OK, i found that some of my sources were giving 404 and that was causing the jumps.

DanielQuirogaDev commented 4 years ago

To debug enable -v on the proxy and see what error msg is ffmpeg yelling.

Jalle19 commented 4 years ago

Is this still an issue?