Your Session Was Logged Off Because DWM Crashed

Fix the DWM crash logoff, DWM.exe high memory, black screens, driver faults, and malware imposters without guessing.

Stephanie Adlam
16 Min Read
DWM crashed Windows desktop illustration with a broken screen and dwm.exe signal trail
DWM.exe crash can end the current Windows session when the graphics stack fails.

“Your session was logged off because DWM crashed” means Windows ended the session after Desktop Window Manager (dwm.exe), which draws the desktop, failed. The message names the failed component, not the cause. A display driver, graphics utility, Windows update, or hardware problem may need attention; the message alone does not indicate malware.

If you cannot stay signed in, start with Safe Mode and recovery. If the error appears inside Remote Desktop or a virtual machine, check which computer lost the session. Otherwise, save your work and match the crash time to the event log before changing drivers.

Choose the first step for your DWM crash

  • One crash, then normal operation: note the time and any recent change, save your work, and check the matching error record. Do not reinstall Windows just for an isolated event.
  • Returned to sign-in every time: use the login-loop recovery steps before trying tools that require a working desktop.
  • Black screen during games or video: compare the event with overlays, the driver version, and GPU load.
  • Only a remote or virtual desktop fails: gather evidence from the affected Windows host or guest, not just the computer displaying the connection.
  • High memory or GPU use without a logoff: follow the resource-usage checks; this is a different symptom.

The DWM.exe process is an important Windows component responsible for drawing the desktop and managing the visual composition of windows. Microsoft describes Desktop Window Manager as the component that redirects window drawing to off-screen surfaces and presents the desktop image on the display. That is why a DWM crash can look dramatic: the desktop itself is part of the failing path.

Error: Your Session Was Logged Off Because DWM Crashed
The Windows message reports a DWM failure and asks you to check the event log.

What is DWM.exe?

DWM.exe, or Desktop Window Manager, is the Windows process behind desktop composition: transparency, window thumbnails, animations, scaling, high-resolution rendering, and the final image that appears on your monitor. It normally uses some GPU and memory, especially on high-resolution or multi-monitor systems.

For the shorter process-safety question, use the separate dwm.exe safe-or-virus checklist; this page focuses on DWM crashes, forced logoff, and display-driver troubleshooting.

A normal DWM.exe process should be stable, signed by Microsoft, and located in C:\Windows\System32. It should not be running from Downloads, AppData, Temp, a browser cache folder, or a random subfolder in your user profile. A crash does not automatically mean malware, but the file path and signature are easy checks to make before you spend hours troubleshooting drivers.

If Windows keeps logging you off before you can troubleshoot

If the DWM crash happens immediately after sign-in, get into Safe Mode or the Windows Recovery Environment before changing drivers. Have your account password and BitLocker recovery key available. From the sign-in screen, hold Shift while selecting Restart, then choose Troubleshoot → Advanced options → Startup Settings → Restart → 4/F4 for Safe Mode.

Once Windows stays open long enough, back up important files and record what changed before the loop. If it began after a GPU driver update, try the driver rollback below; if it followed a graphics utility or desktop customization, disable that tool first. Change one thing, restart, and test sign-in again. Use Windows recovery options such as System Restore when the desktop remains unusable; choose Startup Repair for a startup failure. Avoid a reset or reinstall until your files are backed up and the recovery choice is understood. Safe Mode can require your account password rather than a PIN. See the Microsoft Startup Settings reference below.

How to fix “Your session was logged off because DWM crashed”

Once you can access Windows, collect the error details and choose the step that matches the trigger. Test after each change. A faulting module is a useful clue, but it does not always identify the original cause.

1. Check Event Viewer first

Press Win + R, enter eventvwr.msc, and open Windows Logs → Application. Match the time of the logoff to an Application Error entry that names dwm.exe. Event ID 1000 is an application-crash record. Also check Windows Logs → System for display-driver errors at the same time. Depending on the GPU and driver version, records may mention Display, nvlddmkm, amdkmdag, or igdkmdn64. These names help recognize the graphics stack; a name alone does not prove which component caused the failure.

Copy the timestamp, faulting application path, faulting module name and path, exception code, and Report ID if shown. Record what was happening: sign-in, a game, waking from sleep, plugging in a dock, or a remote connection. You can also search Start for View reliability history to compare failures with recent changes.

  • A graphics-driver component or nearby display-driver reset: compare the installed driver version with the date the failures began. Try the rollback/update branch next.
  • A module belonging to an overlay, recorder, or desktop customization: disable that specific tool and repeat the same activity before changing unrelated settings.
  • dwmcore.dll, KERNELBASE.dll, or ntdll.dll: do not download a replacement DLL. A Windows module can be where a failure surfaces rather than the component that caused it. Compare nearby events and the trigger; use Windows repair tools if corruption is suspected.
  • No matching DWM event: check the time and the computer whose log you opened. A black screen alone is not enough to label the problem a DWM crash.

For example, a KERNELBASE.dll entry during a game does not establish that this DLL is damaged. If a display-driver reset appears at the same minute, investigate that graphics failure first. If an exception code repeats, retain it for support rather than treating it as a unique diagnosis. Microsoft’s crash-troubleshooting documentation explains these event fields and the limits of a faulting-module name.

2. Update or roll back the GPU driver

A DWM crash is often caused by the layer between Windows and the graphics card. If the problem started after a driver update, open Device Manager → Display adapters → your GPU → Properties → Driver → Roll Back Driver. If rollback is unavailable, obtain the previous compatible package from the GPU or laptop vendor. Note the current version first so you can compare the result. If the driver is old, install the newest stable driver from NVIDIA, AMD, Intel, or your laptop manufacturer.

For laptops, prefer the OEM driver when the generic GPU package keeps crashing. Laptop vendors sometimes ship display, power, and hybrid-GPU changes that are not fully represented in a generic driver. Also check Settings → Windows Update → Advanced options → Optional updates, because Microsoft can offer driver updates there.

3. Install Windows updates and optional driver updates

Install available Windows updates, reboot, and test again. Windows display bugs are often fixed through cumulative updates, graphics driver updates, or optional hardware updates. If the issue began after a specific Windows update, do the opposite: note the update number and test whether uninstalling or rolling back that update stops the crash.

Older discussions around DWM crashes often mention KB5026446 because it was a Windows 11 22H2 preview update from May 2023. Do not chase that update blindly in 2026. Use it as a clue that Windows build and graphics driver combinations can matter; the practical fix is still to get the current stable Windows and GPU driver combination for your machine.

Windows Update screen showing available updates
Windows Update settings; the exact layout varies by Windows version.

4. Disable overlays and tools that hook into graphics

Disable overlays temporarily: Discord overlay, Steam overlay, Xbox Game Bar, GeForce Experience overlay, AMD overlay, MSI Afterburner, RTSS, screen recorders, FPS counters, ReShade, ENB presets, capture tools, remote-control software, and RGB/system-monitoring utilities that draw on top of games. These tools are useful, but they sit close to the graphics pipeline.

If DWM crashes only when a specific game or app is open, launch that app with overlays off and no mods. A clean launch can help test whether an overlay or mod contributes to the crash; it does not identify the cause by itself.

5. Test display settings: HDR, VRR, scaling, and monitors

DWM has to compose every visible window for your actual display setup. Test with the simplest setup possible: one monitor, standard refresh rate, HDR off, variable refresh rate off, no docking station, and no custom scaling. If the crash stops, re-enable one setting at a time.

Pay attention to mixed-refresh multi-monitor setups, USB-C docks, HDR monitors, G-Sync/FreeSync, custom color profiles, and very high scaling values. None of these settings is “bad” by itself, but they can expose a display driver bug that only appears under a specific combination.

6. Repair Windows files with DISM and SFC

If Windows components also fail, corruption is reported, or the crash remains after the targeted driver/app checks, repair Windows system files. A dwm.exe event alone does not prove file corruption. Microsoft recommends running DISM before System File Checker because DISM repairs the component store that SFC uses as a source.

Open Command Prompt or Windows Terminal as administrator and run:

DISM.exe /Online /Cleanup-image /Restorehealth
sfc /scannow

Run these commands in the Windows installation you are repairing, allowing DISM to finish before starting SFC. Do not paste this /Online command into the recovery-environment command prompt as if it automatically targets the installed Windows copy; offline repair needs the correct installation and source paths. Restart after both commands complete. If SFC says it repaired files, test the machine before making more changes. If SFC says it could not perform the requested operation, Microsoft recommends trying the scan in Safe Mode. If it found corrupt files but could not fix some of them, keep the result and follow the System File Checker reference for log review and repair options; repeating the scan in Safe Mode is not the same diagnosis.

7. Check games, mods, overclocking, and GPU load

If DWM crashes during gaming, the visible DWM error may be collateral damage from a GPU reset. Remove recent mods, ReShade/ENB presets, unstable overclocks, undervolts, aggressive fan curves, and experimental game launch options. Return GPU settings to stock temporarily.

Also check power and heat. Desktop GPUs need stable PCIe power connections, and a loose connector can cause black screens or resets under load. On laptops, test both plugged in and on battery, then switch the power mode to balanced or best performance and compare behavior.

8. Check the GPU power connections

On a desktop PC, shut down the machine, unplug it, and inspect the GPU power connectors. Follow the card and power-supply manuals; accessible connectors should be fully seated. Do not open the power supply itself or mix modular cables from different PSU models. If you are not comfortable inspecting hardware, ask a technician. Avoid running a high-power GPU through questionable adapters, splitters, or cables that are not meant for that card.

This step is worth doing when the crash happens during games, video rendering, or anything that makes the GPU draw more power. A DWM crash in that situation is often the last visible Windows symptom, not the root cause.

9. Test Safe Mode, clean boot, or a clean user profile

If the crash does not happen in Safe Mode, compare what changes in normal startup: display driver, startup app, shell extension, GPU utility, overlay, or profile-specific setting. This is a useful isolation result, not proof that the hardware is healthy. Use a clean boot or a temporary local Windows account to narrow it down.

A clean user profile is especially useful when only one Windows account crashes. If the new profile is stable, review startup entries, browser extensions, shell customization tools, and recently installed desktop utilities in the original account.

DWM crashed in Remote Desktop, a VM, or a work session

If your own desktop stays open but a remote Windows session ends, first identify the affected machine. Record the host or VM name, crash time, client app, and whether another connection or a local/console sign-in also fails. The administrator needs the Application and System events from the Windows session that crashed, not only logs from your laptop.

For a virtual machine, keep host and guest details separate: their Windows builds, display/virtual graphics drivers, and recent hypervisor or guest-tools updates. For a shared remote desktop, tell IT whether only your account fails or several users are affected. These comparisons help decide whether to investigate one client, a user profile, or the shared host.

“Please contact your administrator” is part of the error message; it does not identify a particular policy or security problem. On a managed device, send the evidence to IT before uninstalling drivers or changing remote graphics policies. Do not apply an old forum’s registry, boot-flag, or virtualization-security workaround without a diagnosis for that environment.

DWM.exe high memory or GPU use without a crash

High DWM.exe memory or GPU usage is related to the crash problem, but it is not always the same issue. DWM will naturally use more resources with many windows, 4K/5K displays, multiple monitors, video playback, animated wallpapers, transparency effects, screen recording, and hardware-accelerated browsers.

Treat it as a problem when the desktop becomes slow, fans stay loud at idle, memory usage keeps climbing, or the process does not calm down after closing graphics-heavy apps. The same fixes apply: update or roll back the display driver, reduce display complexity, disable overlays, close hardware-accelerated browser tabs, and reboot after Windows updates.

Compare usage before and after closing the game, browser video, recorder, or animated wallpaper. If memory keeps climbing at idle across repeated sessions, record the trend and driver version. If it began after an update, test the previous compatible driver; if it only happens with one app, test that app with its overlay or hardware acceleration temporarily off, then restore the setting if it makes no difference.

Do not confuse DWM with Antimalware Service Executable (MsMpEng.exe). That is a different process; do not add antivirus exclusions to reduce DWM memory use.

How to tell whether the change helped

Repeat the activity that normally triggered the crash, with the same monitor/dock setup and for at least as long as it previously took to fail. Check for new matching errors. One successful sign-in is encouraging but is not enough to establish that an intermittent crash is fixed. Restore a test setting if it made no difference, and keep a short record of the driver versions and changes tried.

If crashes continue after the relevant driver, overlay, display, and Windows-file checks, give support the Windows build (winver), GPU model and driver version, event details, reproduction steps, and whether Safe Mode, another account, or another remote client changes the result. Repeated failures under GPU load at stock settings justify hardware diagnosis; they do not identify which part needs replacing. Share detailed logs or dumps privately with trusted support, since they can contain personal information.

When to investigate a DWM.exe lookalike

The legitimate DWM.exe file is in C:\Windows\System32\dwm.exe and is digitally signed by Microsoft. Malware can use the same file name to look harmless, but it cannot make a random file in AppData become the real Windows Desktop Window Manager.

1. Open Task Manager

Press Ctrl + Shift + Esc and look for Desktop Window Manager. In modern Windows, the legitimate process is part of the normal desktop session. High resource use alone is not proof of malware, so do not end or delete anything yet.

2. Open the location of the DWM.exe file

Right-click Desktop Window Manager and choose Open file location. The correct location is C:\Windows\System32. Then right-click the file, open Properties, and check the digital signature. The expected Windows copy is Microsoft-signed. A missing Properties tab alone is not a malware verdict; use the file path and signature checklist to verify the file before deciding what to remove.

Open Task Manager to check DWM.exe
Windows 10 Task Manager: open the file location of Desktop Window Manager.
Desktop Window Manager correct file location
An example of dwm.exe in Windows System32. The Details tooltip is not a signature-verification result.

Be suspicious when you find a file named dwm.exe in AppData, Temp, Downloads, ProgramData, a browser cache folder, or a random folder with a fake system-looking name. Other warning signs include no Microsoft signature, double extensions, hidden attributes, strange startup entries, scheduled tasks, or network activity from the suspicious copy.

How to remove malicious DWM.exe with GridinSoft Anti-Malware

If the path is unexpected, the signature cannot be verified, or a security tool flags the file, investigate and scan before deleting files manually. Malware that copies a Windows process name often creates scheduled tasks, startup entries, services, browser components, or secondary payloads. Removing only the visible file may leave the persistence mechanism behind.

You can also check a suspicious file with the GridinSoft Online Virus Scanner before running a full cleanup. For a suspicious file that has already run, use Gridinsoft Anti-Malware: update it, run a Full Scan, review the detections, apply the selected cleanup, restart, and check whether the original activity returns. A scan can check related files and startup entries; it is not a repair for a legitimate graphics-driver crash.

Gridinsoft Anti-Malware
Unexpected DWM.exe behavior?

Scan for hidden malware, unwanted services, and startup components.

Check suspicious DWM lookalikes only if signs match

For WindowsOfficial Gridinsoft download

Frequently asked questions

Is it safe to end the DWM.exe process?

It is not a real fix. Windows may restart Desktop Window Manager automatically, but ending it can make the desktop flicker, freeze, or log off again. Use Event Viewer and driver troubleshooting instead of treating the process itself as the problem.

Why does DWM.exe use so much memory?

DWM.exe can use more memory with many open windows, multiple monitors, high-resolution displays, HDR, transparency effects, browser hardware acceleration, video playback, and driver bugs. If usage keeps rising at idle, suspect a driver leak, overlay, or graphics-heavy app.

Can malware disguise itself as DWM.exe?

Yes. Malware can use the same file name, but the expected file location and Microsoft signature are initial checks, not proof that the system is uncompromised. A suspicious dwm.exe outside C:\Windows\System32 needs investigation; remove a confirmed malicious copy and its related persistence, not the legitimate Windows component.

Should I reinstall Windows to fix DWM crashes?

Not first. Try the branch supported by the symptoms: driver rollback/update, Windows repair commands, overlays, display settings, or a recently installed startup tool. Consider repair install or reinstall only after Event Viewer, DISM/SFC, Safe Mode, and driver testing do not isolate the cause.

Why does DWM crash only in games?

Games stress the graphics driver, GPU power delivery, overlays, anti-cheat components, capture tools, and display settings at the same time. Start by disabling overlays and mods, returning GPU clocks to stock, and testing a clean GPU driver install.

If this crash is part of a broader Windows slowdown, these guides cover nearby high CPU, memory, and shell process issues:

If your performance issue is on an HP laptop and Task Manager points to AppHelperCap.exe instead of DWM.exe, use our AppHelperCap.exe HP service check before disabling random startup items.

References

  1. Microsoft. Desktop Window Manager. Microsoft Learn, updated August 23, 2019; accessed November 8, 2026.
  2. Microsoft. Use the System File Checker tool to repair missing or corrupted system files. Microsoft Support, accessed November 8, 2026.
  3. Microsoft. Automatically get recommended and updated hardware drivers. Microsoft Support, accessed November 8, 2026.
  4. Microsoft. Windows startup settings. Microsoft Support, accessed November 8, 2026.
  5. Microsoft. The application or service crashing behavior troubleshooting guidance. Microsoft Learn, updated February 12, 2026; accessed November 8, 2026.
Share This Article
Follow:
Stephanie is our wordsmith, transforming technical research into engaging content that resonates with users. Her expertise in cybercrime prevention and online safety ensures that Gridinsoft's advice is accessible to everyone—whether they’re tech-savvy or not.
1 Comment

AI Assistant

Hello! 👋 How can I help you today?