kraemer-lab / GRAPEVNE

Graphical Analytical Pipeline Development Evironment
MIT License
7 stars 3 forks source link

Terminal listener memory leak #332

Closed jsbrittain closed 3 months ago

jsbrittain commented 3 months ago

Since the terminal was refactored the react state reinitialised each time the page was loaded, leading to the number of active listeners to increase unbounded. This is evident in the error logs as:

(node:19608) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 terminal/receive-data listeners added to [IpcRenderer]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
(Use `GRAPEVNE Helper (Renderer) --trace-warnings ...` to show where the warning was created)