Page 1 of 1
MM5 memory leak ?
Posted: Sat Apr 10, 2021 4:05 am
by z3huti
Just
playing tracks to DLNA player, over time memory usage grows.
1 hour of playing, almost 500 MB memory usage now
Re: MM5 memory leak ?
Posted: Sat Apr 10, 2021 12:27 pm
by Lowlander
Are you doing other things in MediaMonkey as well? I can't reproduce (with client playing from MM5).
Re: MM5 memory leak ?
Posted: Sat Apr 10, 2021 2:51 pm
by z3huti
Yes, but even if I dont do anything, MM minimized and playing to DLNA, memory grows.
Just tried playing to foobar and same thing. Flac files, not transcoding.
Re: MM5 memory leak ?
Posted: Sat Apr 10, 2021 2:56 pm
by Lowlander
I'm unable to reproduce, I've got 2 MM5's running both set to the Playing node. One (the server) is being used by 2 clients to stream from while also playing files locally and memory usage is stable. The other (client w/o library) is streaming from the server and playing to a DLNA speaker, it's memory usage also remains stable.
A mix of MP3 and FLAC is being played untranscoded.
So capturing this in a debug log (step 4b) would likely be really helpful to discover where the problem may lie on your setup:
viewtopic.php?f=30&t=86643
Re: MM5 memory leak ?
Posted: Sat Apr 10, 2021 3:45 pm
by z3huti
log with almost 30 min of playing to foobar
memory went from 150 at start to ~250
https://drive.google.com/file/d/1Q2oJWt ... sp=sharing
also got this error, its in log somewhere at the end
btw is it normal that there is 2 MediaMonkeyEngine.exe ?
Re: MM5 memory leak ?
Posted: Sat Apr 10, 2021 4:35 pm
by drakinite
z3huti wrote: ↑Sat Apr 10, 2021 3:45 pm
btw is it normal that there is 2 MediaMonkeyEngine.exe ?
Yes - On Task Manager, if you enable the "Command line" column, you'll see an instance of MediaMonkeyEngine.exe with --type=renderer and one with --type=utility. I believe that the renderer process spawns the additional utility process(es).
If you have the Debug build installed, could you open the devtools (with Inspect Element), switch to the Memory tab, and let us know how much memory it says it's using in JS? I usually see around 60 MB. (That's of course not the total amount of memory that's being used, but if JS is taking up way more for some reason, we'll at least have some hint as to what could be the culprit.)
Re: MM5 memory leak ?
Posted: Sun Apr 11, 2021 2:59 am
by z3huti
is that what you asking ?
at MM startup it was 15MB but grows after playing to foobar
Re: MM5 memory leak ?
Posted: Mon Apr 12, 2021 8:00 am
by drakinite
That is what I'm referring to, yes. So hmm, the extra memory usage is probably something else...
Re: MM5 memory leak ?
Posted: Tue Apr 13, 2021 5:43 am
by Ludek
Thanks for reporting,
I see the same with foobar2000 renderer, the utilized memory grows 5 MB per minute!
Will be fixed as
https://www.ventismedia.com/mantis/view.php?id=17755 in the upcoming build
The runtime error was moved to
viewtopic.php?f=30&t=98782