arso-project / sonar

A p2p content database and search engine
https://sonar.arso.xyz/
GNU General Public License v3.0
121 stars 6 forks source link

memory leak in EventEmitter detected #5

Closed sidasmo closed 4 years ago

sidasmo commented 4 years ago

I received this error message when I tried to import messages with sonar_telegram. I do not know exactly where and why these errors occur, but maybe because the listener did not close properly?!.

 (node:23370) MaxListenersExceededWarning: 
Possible EventEmitter memory leak detected. 257 error listeners added to
Hypercore(
@arso-project/sonar-server:   key: efbxxxxxx....a3
@arso-project/sonar-server:   discoveryKey: 58xxxx.....f0
@arso-project/sonar-server:   opened: true
@arso-project/sonar-server:   sparse: true
@arso-project/sonar-server:   writable: true
@arso-project/sonar-server:   length: 13915
@arso-project/sonar-server:   byteLength: 3055921
@arso-project/sonar-server:   peers: 0
@arso-project/sonar-server: ). Use emitter.setMaxListeners() to increase limit
Frando commented 4 years ago

Is this still happening @osuiowq? I'd guess that it's fixed with the move to kappa-record-db.