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

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
Codefile.io
Untitled file — Codefile
Create collaborative code files online for your technical interviews, pair programming, teaching, etc.
2 Replies
d.js toolkit
d.js toolkit3mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - 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
Neil
NeilOP3mo ago
discord.js 14.15.3
Want results from more Discord servers?
Add your server