Page 1 of 1

Optimise/Rebuild database stalls when a folder is being monitored [#19506]

Posted: Tue Oct 25, 2022 10:26 am
by ed.j
I don't want to attempt to recreate this as I would like to keep my database non-corrupted.

However - if you attempt to Optimize/Rebuild the database while MM is actively monitoring a folder - I think in my case adding a large amount of music to the library too - MM will indefinitely hang.

This kind of makes sense because the db is being updated during this process - so suggest the db tools are made unavailable whilst DB being updated.

Re: Optimise/Rebuild database stalls when a folder is being monitored

Posted: Tue Oct 25, 2022 6:13 pm
by Lowlander
Which Build (Help > About) of MediaMonkey are you using? I tried several manage database functions while adding files to a Monitored folder and it all worked as expected on 5.0.4.2676. Scanning was triggered after manage database finished.

Re: Optimise/Rebuild database stalls when a folder is being monitored

Posted: Wed Oct 26, 2022 7:06 am
by Ludek
Hi, thanks for reporting, I see why this can happen!

Will be fixed as https://www.ventismedia.com/mantis/view.php?id=19506
Seems to be an issue only with debug builds and when the file monitor thread is waiting for DB write access more than 60 seconds.

Re: Optimise/Rebuild database stalls when a folder is being monitored [#19506]

Posted: Fri Oct 28, 2022 10:15 am
by ed.j
Hi guys - this wasn't using a debug build. MM 5.0.4.2765.

Re: Optimise/Rebuild database stalls when a folder is being monitored [#19506]

Posted: Sat Oct 29, 2022 6:08 pm
by rusty
Hi,

We just posted build 2679 (RC-4) -- can you give it a try to see if the fix works for you?

-Rusty