kartik-venugopal / aural-player

An audio player for macOS, inspired by Winamp.
MIT License
732 stars 43 forks source link

Memory leaks #53

Closed lijuncode closed 1 year ago

lijuncode commented 1 year ago

Playing songs by FFmpegScheduler can cause memory leaks, and the memory usage will continue to grow. 截屏2023-03-17 21 30 57

lijuncode commented 1 year ago

截屏2023-03-17 21 41 29

kartik-venugopal commented 1 year ago

Hi @lijuncode , thank you !

Yes, I am already aware of this issue 😄 I actually spent a lot of time trying to fix it, but was not able to figure out where exactly the leak is happening. I tried many different solutions, but just didn't have any luck.

But, from what I remember, the leak is relatively minor in terms of the amount of memory leaked ... after loading several tracks into FFmpegScheduler, only a few MB (less than 10, I think) were leaked. And given that most Macs today have a minimum of 8 GB memory and often more than that, I gave up on trying to fix it.

Of course, I do acknowledge that this is a genuine issue. I just haven't been able to fix it and the consequences to the user seem minor enough to not be a significant issue.

If you can figure out a fix, I'd be happy to accept your pull request 😄

Cheers, Kartik

kartik-venugopal commented 1 year ago

Released in v3.15.0.