Neil
DIAdiscord.js - Imagine an app
•Created by Neil on 9/9/2024 in #djs-questions
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
3 replies