Yikai-Liao / symusic

A cross platform note level midi decoding library with lightening speed, based on minimidi.
https://yikai-liao.github.io/symusic/
MIT License
108 stars 8 forks source link

Suppression of Nanobind leak messages #43

Open JLenzy opened 1 month ago

JLenzy commented 1 month ago

In the past week, I've been getting a huge increase in the number of nanobind leak messages. When trying to train a model (which is utilizing symusic via Miditok) it will finish with >1,000 leak messages from nanobind.

It makes troubleshooting rather difficult, as it occupies so much of the terminal's recent history that I need to go through logs just to see what are the actual errors in my python code.

From this documentation I see there is an option to suppress the messages on the C++ side. Any chance this could be done for the public releases?

Yikai-Liao commented 1 month ago

What version of Python are you using? I've only seen this problem with Python 3.12. I've been trying to find what's causing these warnings, but haven't been able to pinpoint the exact problem. I agree that disabling these warnings would be a good idea first.

JLenzy commented 4 weeks ago

Currently on python 3.9

Yikai-Liao commented 3 weeks ago

Could you try the version on the main branch? I havn't find the memory leak info of this new version.

Yikai-Liao commented 3 weeks ago

And it would be better if you could find the minimum reproduction code. I'll add them to the tests