Desktop Window Manager crash loop fix that actually works
DWM crash loop makes your screen flicker or go black. Usually bad display drivers or corrupted system files. Here's the real fix.
Quick answer for advanced users
Run these in an admin PowerShell: dism /online /cleanup-image /restorehealth then sfc /scannow. If still crashing, DDU the GPU drivers in Safe Mode and install fresh ones from the chip maker's site (Intel/NVIDIA/AMD).
What's happening here?
Desktop Window Manager (DWM) is the system process that handles all the visual effects—transparency, live taskbar thumbnails, window animations. When it crashes in a loop, your screen flickers, goes black for a second, or just freezes. It's not a virus. It's not a loose cable. It's almost always one of two things: a busted display driver or a corrupted system file that DWM depends on.
Had a client last month whose machine would restart DWM every 30 seconds. Their monitor kept going black like someone flipping a light switch. She thought her graphics card was dying. Turned out a recent Windows Update pushed a crappy Intel graphics driver that didn't play nice with her dual monitors. Took me 15 minutes to sort it out.
Fix step by step (start here)
Don't jump straight to reinstalling Windows. Try these in order. They fix 9 out of 10 cases.
Step 1: Run the built-in system file checker
Open Command Prompt as administrator. Type this:
sfc /scannow
Let it finish. It'll replace any corrupted system files. If it finds issues but can't fix them all, follow up with this:
dism /online /cleanup-image /restorehealth
Then run sfc /scannow again. This combo fixes most DWM crash loops caused by bad Windows files. Restart your PC after.
Step 2: Clean install your display driver
Don't just update through Device Manager. That doesn't fully remove the old junk. Use Display Driver Uninstaller (DDU). Here's how:
- Download DDU from guru3d.com (safe site, I've used it for years).
- Boot into Safe Mode. Hold Shift while clicking Restart, then go to Troubleshoot > Advanced Options > Startup Settings > Restart. Hit 4 for Safe Mode.
- Run DDU. Select your GPU vendor (NVIDIA/AMD/Intel). Click "Clean and restart."
- When it boots back into normal mode, Windows will install a basic driver automatically. That's fine. Go to your GPU manufacturer's website (not Windows Update) and download the latest official driver.
- Install it with a clean install option if available.
This nukes every trace of the old driver. I've seen corrupted driver files cause DWM to crash on login. Clean install fixes that dead.
Step 3: Disable visual effects (temporary test)
If DWM is still crashing, turn off the fancy stuff to see if it's a hardware issue:
- Right-click This PC > Properties > Advanced system settings.
- Under Performance, click Settings.
- Select "Adjust for best performance." This kills all animations and transparency.
- Apply and restart.
If the crashing stops, your GPU or driver can't handle DWM's load. That means step 2 is your real fix. But if it still crashes with effects off, you might have deeper system corruption or a failing GPU.
Alternative fixes if steps 1-3 don't work
Tried the above and still flickering? Here's what else I've seen work in the wild.
Alternative 1: Roll back a Windows Update
Sometimes an update breaks DWM. Go to Settings > Windows Update > Update history > Uninstall updates. Remove the most recent one. Reboot. If the crashing stops, pause updates for a week and let Microsoft patch their own mess.
Alternative 2: Disable hardware-accelerated GPU scheduling
Newer Windows 10/11 builds have this. It causes DWM issues on some systems. Go to Settings > System > Display > Graphics > Change default graphics settings. Turn off "Hardware-accelerated GPU scheduling." Restart.
Alternative 3: Check for a failing monitor or cable
Rare, but I've seen a bad HDMI cable cause DWM to freak out because the signal keeps dropping. Try a different cable or port. If you have a second monitor, plug it in and see if the crash stops on that one.
Prevention tip
Don't let Windows Update install your GPU drivers. Ever. Set Windows to not update drivers automatically. Use Group Policy or the registry to block it. I've been burned by Windows pushing Intel drivers from 2019 that made DWM crash on a client's new laptop. Get your drivers straight from the chip maker (Intel, NVIDIA, AMD) and only install those.
Also, run sfc /scannow once a month. Keeps system file corruption from building up. Takes two minutes. Saves hours of headache.
Was this solution helpful?