Windows won't sleep after syncing [#15208]

Help improve MediaMonkey 2027 by testing the latest pre-release builds, and reporting bugs and feature requests.

Moderator: Gurus

malkierian
Posts: 159
Joined: Wed May 10, 2017 1:38 pm

Windows won't sleep after syncing [#15208]

Post by malkierian »

Was having a weird problem the past few builds that I finally managed to track down (and this spanned multiple builds of Windows Insider, as well). MediaMonkey is somehow preventing my computer from going to sleep after it has completed a transfer/sync operation. The monitors would turn off, and the processor light on my case would have a spasm as if it was preparing to go to sleep, but it would never finish the process, and wiggling the mouse would bring the screens back on, right where I'd left it. As soon as I closed MM, I could start the sleep process again and it would complete it rather quickly. I tried running DbgView, but there was nothing in there from the time I hit the button to the time I brought the screens back on. But, I uploaded the log from the time I plugged in the flash drive anyway, just in case.

https://pastebin.com/F5eDzd6b
Ludek
Posts: 5123
Joined: Fri Mar 09, 2007 9:00 am

Re: Windows won't sleep after syncing

Post by Ludek »

Hi, in the log I see:

Code: Select all

00000312    50.61157990 [17132] MM5 [15464](R) PostponeComputerSleep: Enabled = 1  
00000313    50.61169052 [17132] MM5 [15464](R) PostponeComputerSleep: SetThreadExecutionState result = 2147483648  
at line 312, at 50 seconds the the sync started and computer sleep disabled

Code: Select all

00003152    340.67486572    [17132] MM5 [12792](R) PostponeComputerSleep: Enabled = 0  
00003153    340.67510986    [17132] MM5 [12792](R) PostponeComputerSleep: SetThreadExecutionState result = 2147483648 	 
at line 3152, at 340 seconds (end of sync task) the computer sleep was enabled again

So based on the log it all looks OK, but gonna to re-test / re-verify it....
Entered as https://www.ventismedia.com/mantis/view.php?id=15208
Ludek
Posts: 5123
Joined: Fri Mar 09, 2007 9:00 am

Re: Windows won't sleep after syncing

Post by Ludek »

FYI: I have replicated the issue and fixed for build 2134
Post Reply