WinSCP UI collapse & 100% CPU when monitor/display disconnects while WinSCP is running
When WinSCP is running and the display device is disconnected (monitor powers off, unplugged HDMI/DisplayPort cable, or when whatever event temporarily removes the monitor – such as something like "Samsung Display Optimization" kicking in without asking, which was the latest for me), the application window collapses into a tiny unreadable frame and CPU usage on one of the cores spikes to 100%. If there were transfers underway, they continue in the background, but the UI becomes unusable/unresponsive until WinSCP is forcibly killed.
Likely WinSCP is not handling missing primary display correctly. Possibly related to unhandled
OS: Microsoft Windows 10 Enterprise LTSC (x64) Build 19044.6218 (21H2)
WinSCP v6.5.3 (Build 16364 2025-07-16)
GPU: Geforce GTX 1080
Screen: Samsung Odyssey G8 32" 4K OLED (but said quirk has happened on other screens and other gpus)
Likely WinSCP is not handling missing primary display correctly. Possibly related to unhandled
WM_DISPLAYCHANGE
or WM_DEVICECHANGE
messages in the UI thread?
OS: Microsoft Windows 10 Enterprise LTSC (x64) Build 19044.6218 (21H2)
WinSCP v6.5.3 (Build 16364 2025-07-16)
GPU: Geforce GTX 1080
Screen: Samsung Odyssey G8 32" 4K OLED (but said quirk has happened on other screens and other gpus)