mltframework / shotcut

cross-platform (Qt), open-source (GPLv3) video editor
https://www.shotcut.org
GNU General Public License v3.0
10.84k stars 1.12k forks source link

23.04.20 RC crashing when Windows puts the monitor to sleep #1435

Closed andrewk8 closed 1 year ago

andrewk8 commented 1 year ago

23.04.20 RC on Window 10 22H2. AMD 3700X. B550, 32 GB, NVidia GTX 1660. Dual monitor. Up-to-date on all updates and drivers.

I've been queuing up several encodes. SC has crashed on me several times while running queued jobs. It's repeatable, but I am not able to pinpoint the conditions where you can trigger it on demand.

Steps:

The computer is a desktop. I have sleep / hibernate disabled. It turns off the screens after 15 minutes.

The last time this happened, I moved the mouse to wake the screens up. Shotcut was gone. The previous melt.exe encode process was still running and finished to completion. The Windows Event Viewer captured the crash.

Not sure whether the screens turning off or not is necessary. The issue seems to happen when there are more than 3 encodes in the job queue and you leave the computer unattended.

Report.txt

image

image

andrewk8 commented 1 year ago

Update: I set my monitor to go to sleep after 2 minutes. I queued up 3 jobs and stopped using the computer. After it turned off the monitor, I let it run for a minute or two before checking. When I moved the mouse to wake up the monitor, SC was gone. The melt.exe process was still running the first encode, and it ran to completion.

the issue seems less about how many jobs are in the queue than the interaction between the GUI and Windows power management.

image

ddennedy commented 1 year ago

I reproduced it just by having a project loaded without doing any exports and single monitor.

ddennedy commented 1 year ago

I am no longer reproducing this on today's daily build at https://github.com/mltframework/shotcut/actions/runs/4869622007

Can you please retest this to confirm?

I believe it was resolved by 500f129e8

andrewk8 commented 1 year ago

Seems to be working fine.

ddennedy commented 1 year ago

Thank you