#Using napi-rs canvas library and failing to troubleshoot consistent memory leak on a file

3 messages · Page 1 of 1 (latest)

cold coral
#

The handleBoosterInfo function is holding onto memory consistently and not letting go. I have tried manually putting in garbage collectors, using pools, weak refs. nothing seems to be working. This library (napi rs canvas) is surely not the problem. Everything else on my bot is perfectly fine. It's just this one command that, when run, consistently pushes memory up and up
https://codefile.io/f/83QSMuj0QN

stiff vergeBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • Not a discord.js issue? Check out #1081585952654360687.
  • Consider reading #how-to-get-help to improve your question!
  • Explain what exactly your issue is.
  • Post the full error stack trace, not just the top part!
  • Show your code!
  • Issue solved? Press the button!
  • Marked as resolved by staff
cold coral
#

discord.js 14.15.3