Memory Leak, particularly when tagging [#16655]

Post a reply

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Memory Leak, particularly when tagging [#16655]

Re: Memory Leak, particularly when tagging

by Ludek » Mon May 25, 2020 8:37 am

Thank you, I analyzed the log and fixed some tweaks (that I saw in the log) as https://www.ventismedia.com/mantis/view.php?id=16655

Re: Memory Leak, particularly when tagging

by 1337haXXor » Fri May 22, 2020 12:22 am

Okay, couldn't reproduce the full slowdown this evening, but I got a lot of the other issues. As the night's winding down, the program was going slower and slower. I decided to delete 86 tracks from the library and computer. It took over a minute, I believe, all during the library "flashed" (refreshed?) 3 times, each time showing completely wrong information (missing tags, wrong song total, bizarre artifacting). When the delete was finished, I had to do the usual manual library refresh: going to a random playlist, then back to my library.

Log - https://www.mediafire.com/file/5ia562k9 ... 3.LOG/file

Re: Memory Leak, particularly when tagging

by 1337haXXor » Thu May 21, 2020 8:25 pm

Oh, I didn't even realize it was never assigned.

Well, I used it all day yesterday. The RAM usage slowly climbed from the starting point of ~550MB to ~1,200MB. The typical slowdowns were starting to happen, any tag changes (including finishing a song) put the CPU at about 50% usage, then spontaneously, BOOM. It went back to about 600MB of RAM usage and no stress on the CPU. I did not do anything within, or even outside of, the program that would have likely affected it, so I'm not sure... Either way, I'll keep my eye on it.

Re: Memory Leak, particularly when tagging

by Peke » Wed May 20, 2020 6:19 pm

Hi,
Either way works, but it is easier to track previous if added to existing topic. Especially as it has no assigned bug.

Re: Memory Leak, particularly when tagging

by 1337haXXor » Wed May 20, 2020 11:06 am

Okie doke, I updated to 2250 last night before going to sleep, and now I've been running it for a bit this morning. I'll add some albums and get you some logs in a few hours, likely.

Also I debated for a while last night whether to make a new issue or add to the old one, wasn't sure how you guys preferred.

Re: Memory Leak, particularly when tagging

by Lowlander » Wed May 20, 2020 10:20 am

2250 is the current release: viewtopic.php?f=30&t=86639&sd=d It would be worth it to get debug logs from the latest release instead.

Still bogs down after mutiple database edits

by 1337haXXor » Wed May 20, 2020 2:05 am

I reported this problem a while ago, and while I'm happy to report that MM hasn't outright crashed like it used to in a while, it's still increasing memory/CPU usage until it slows my whole computer down. This is solved with exiting and restarting the program, and doesn't SEEM to increase with simply listening to music (only updating the last played and playcount node in the database, I guess?). But if I add a few albums to the library, edit a few tags, do a bit of file moving (I have my music to be sorted in a separate location, add it to MM, edit tags, then auto-organize). All of these have lots of DB edits, and I assume it's what bogs down the system.

I've taken two debug logs. These are after 6 or 7 album addition with all my aforementioned edits/tagging. The first log is when the most recent album was still in the old, un-auto-organized location (an older, slower HDD). The second is after I auto-organized to my main drive (fast SSD). The logs simply show a track finishing, and the next one starting. My RAM usage at this time was sitting at over 1GB, and my CPU during track changing hit 100% for about 3-5+ seconds, sometimes locking my computer during that time.

In addition, this would bring about the other typical(?) glitches, such as forced refreshes, oftentimes which are improper. They display the wrong amount of songs (sometimes an "earlier" number of tracks, like how many I had when I first opened MM in the morning, before adding tracks), visual glitches of reverting tags (showing an album with the old artist name, for example, before I edited that tag), and I recall you guys reporting a fix of no longer showing 2000 or 4000 on refreshes or something? Which is the case, but it seems like the number was just bumped up to 32000, because my library will freeze at that amount often as well. ALL of these visual bugs are fixed 95% of the time by changing to another view (a playlist, device menu, etc.) and then back again. The other 5% of the time I have to do it twice. I don't mean to double stack issues, I can make a separate post if needed. I've had all of these issues before constantly, but they happen increasingly as the program "bogs down" over time.

I'm currently on 2247, but these issues have been persistent pretty much always. Again, the full-on crashes seem to be resolved, but not the general slowing. I generally am on the newest version, though sometimes (such as now) I can get 1 or 2 behind. System is very powerful, and shouldn't be the issue (i7-8700, 16GB RAM).

Log 1 - http://www.mediafire.com/file/edn3z0aa3 ... S.LOG/file

Log 2 - http://www.mediafire.com/file/f05p9tp8z ... 2.LOG/file

Re: Memory Leak, particularly when tagging

by MiPi » Thu Nov 14, 2019 9:27 am

Thanks. We have found possible problem, that was causing the crash probably, should be fixed in the next release.

Re: Memory Leak, particularly when tagging

by 1337haXXor » Wed Nov 13, 2019 10:51 pm

Messaged you.

Re: Memory Leak, particularly when tagging

by Ludek » Mon Nov 11, 2019 12:23 pm

1337haXXor wrote: Sun Nov 10, 2019 10:17 pm I literally hit Shift+Enter to view a file's properties, then hit "Next" at the bottom. Then just keep hitting it! I watched as viewing each file increased my RAM usage by between .2MB and 2MB on average, with a few jumping it up about 6MB. My RAM went from ~400MB to I think around 650MB comically fast, before predictably crashing.
I cannot replicate, for me the RAM usage grows from say 200 MB to 230 MB after 100 fast clicks on the [NEXT] button, but then stays at 230 MB for all the other clicks and the "X files to be tagged" stays at 25 or so.
Could you please generate debug log (item 4b here: https://www.mediamonkey.com/forum/viewt ... 30&t=86643 ) and send me private message with the link?

The other issue is that [NEXT] starts updating of the file tag even when actually nothing was changed in the Properties!! This will be fixed as https://www.ventismedia.com/mantis/view.php?id=16109

Re: Memory Leak, particularly when tagging

by 1337haXXor » Sun Nov 10, 2019 10:17 pm

Okay, I've dropped down the priority to Lower and the cores to 4.

But I have new, fun info. This most recent crash, I found out an even simpler way to ramp up the RAM usage; just looking at a file's properties! I literally hit Shift+Enter to view a file's properties, then hit "Next" at the bottom. Then just keep hitting it! I watched as viewing each file increased my RAM usage by between .2MB and 2MB on average, with a few jumping it up about 6MB. My RAM went from ~400MB to I think around 650MB comically fast, before predictably crashing.

Not sure if it makes a difference, but all of these issues relate to the MediaMonkeyEngine process. The regular MediaMonkey one stays around a cool 100MB, just playing the song.

Re: Memory Leak, particularly when tagging

by Barry4679 » Sun Nov 10, 2019 3:41 am

1337haXXor wrote: Sun Nov 10, 2019 1:00 amNot sure what the default cores is set to, but all of mine are set to half (6). And the Priority is set to the highest, Normal.
My PC is at default. All cores at 4, and Priority at lower.

Re: Memory Leak, particularly when tagging

by 1337haXXor » Sun Nov 10, 2019 1:00 am

Hmm, I must've at some point. Not sure what the default cores is set to, but all of mine are set to half (6). And the Priority is set to the highest, Normal. Apparently the default is Lower. Should I set it to all cores?

Generally the tagging, leveling, etc., are VERY snappy, going through 100+ songs in just a few seconds.

Re: Memory Leak, particularly when tagging

by Peke » Sat Nov 09, 2019 5:23 pm

Hi,
Have you tried to play with Performance options?

Re: Memory Leak, particularly when tagging

by 1337haXXor » Fri Nov 08, 2019 6:30 pm

Sorry for the delayed response! Umm, it's not specific files, it's just anything I tag, edit, or add to the library. Everything adds a tiny amount of RAM usage and it doesn't appear to decrease. I'm not using any particular addons or anything.

Let me test right now.

Program's been running for a couple hours, I've listened to about 2 albums, one on the internal player, one casting to a Chromecast. RAM usage is currently at ~460MB.

Okay, I actually went to do an errand, it's been about 10 minutes, RAM usage is just over 470MB.

I've added Bryan Adams' first album, in FLAC. MM auto-volume-leveled it. After that, I updated the tags (genre, release date) and Auto-Organized it (Ctrl+R). It's sitting at ~490MB.

I did the same thing with his second album (also fixed the album name), and I'm at about 530MB.

For me it's been directly related to the amount of tracks added. Both these albums are less than 20 tracks total, but I've added game soundtracks which are over 100 tracks, so it doesn't take many of those to crash it.

EDIT: I know I have the other bug thread up; I suspect a lot of these are connected. I get quite a lot of "blanking," which sometimes I can just click on a playlist and back to "All Tracks" and everything's fine, but sometimes that's the precursor to a crash. As Ludek stated on the other thread, there's something about updating being slow, I wonder if it's all related to that. It's a relatively old, 5400RPM 2TB laptop drive that has about 1TB of music, and is almost filled with other media otherwise. Could the slowness to update be related to the drive, and could that be causing slowdowns/crashes?

EDIT2: About an hour later, the usage has returned to about 470MB, which is pretty decent. I'm starting to think the combination of the specific build and the hard drive were exacerbating the issues.

Top