You are here:Home»KB»PC»Windows Family»Windows explorer.exe is randomly crashing
Tuesday, 13 October 2026 11:42

Windows explorer.exe is randomly crashing

Written by

My Windows explorer.exe crashes then any open File Explorer Windows close, RetroTask bar and the normal taskbar underneath are restarted. these following is what I have done to track this down. It is most likely an app with faulty Shell Extensions (ShellEx).

The crashing can happen on it's own, sometimes when I right click but because I have not found a pattern to trigger the crash, the diagnosis of the cause is very hard.

Look at this article first

  • How to Find Which Shell Extension Is Crashing Explorer.exe | ShellEx Info
    • Your taskbar disappears and reappears. Your desktop goes black for a moment. You get the dreaded “Windows Explorer has stopped working” dialog. Something is crashing explorer.exe, and the most likely culprit is a faulty shell extension DLL.
    • A systematic guide to identifying the exact shell extension DLL that causes explorer.exe crashes, freezes, and restarts on Windows 11 and 10, from quick 2-minute checks to advanced debugging techniques.
    • Some of my article shares the same information, but was gathered before I found this article.

Things that I tried and have not worked for me

  • SFC
    sfc /scannow
  • DISM
    DISM /Online /Cleanup-Image /RestoreHealth
  • Windows Updates
  • Removing various software Especially old and x86 stuff.
    • K-Lite Codecs
    • All Logitec stuff + replaced with OpenLogi
    • X-Mouse Button Control

Things that I tried and not tried yet

Get the faulting Module

The faulting module (a dll file) is usually the cause and is usually very easy to find. However with my issue the faulting module is C:\Windows\System32\Windows.UI.Xaml.dll but it is the program calling it that is the issue.

Below is a couple of methods.

1. Event Viewer

  • When the crash occurs, make a note of the time
  • Open up: Event Viewer --> Windows Logs --> Application
  • Navigate to the time of the error and look for errors, which should look like this


    Faulting application name: Explorer.EXE, version: 10.0.26100.9444, time stamp: 0x03f6c974
    Faulting module name: Windows.UI.Xaml.dll, version: 10.0.26100.9444, time stamp: 0x8139c357
    Exception code: 0xc000027b
    Fault offset: 0x000000000090e383
    Faulting process id: 0x20B8
    Faulting application start time: 0x1DD5968EB1F0045
    Faulting application path: C:\Windows\Explorer.EXE
    Faulting module path: C:\Windows\System32\Windows.UI.Xaml.dll
    Report Id: 099d4021-6484-492a-9b33-c38a18fcf5b2
    Faulting package full name: 
    Faulting package-relative application ID: 
  • You can see the Faulting module is Windows.UI.Xaml.dll, however this is not the root cause.
  • What the error means
    • 0xc000027b is a stowed exception. This is from my own knowledge, not the search results. A XAML/WinRT component inside Explorer hit an unhandled error, and Windows.UI.Xaml.dll is just the module that raised it.
    • The faulting module is therefore the messenger. The real culprit is whatever XAML UI was running in Explorer at the time (taskbar, Start, Search, Widgets, notification area, Settings flyouts, File Explorer’s XAML parts).

2. Use ShellExView

  • Download ShellExView
  • Hide Microsoft extensions
  • Disable half of the extensions
    • Start with the likely culprits.
  • Use you PC for a while and see if the crash happens again
    • In my case the crash is very sporadic so this can take a while

3. Process Monitor

4. Get a Dump file when explorer.exe crashes, and Analyse it

This can be very useful, but to get the most out of it you need to have some skills.

  • Install WinDbg from the MS Store
  • Enable Crash Dumps for Explorer (via the registry) (a.k.a. WER LocalDumps)
    # Create dump directory
    New-Item -Path "C:\CrashDumps" -ItemType Directory -Force
    
    # Configure Windows Error Reporting to create full dumps
    $dump = "HKLM:\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\explorer.exe"
    New-Item -Path $dump -Force
    Set-ItemProperty -Path $dump -Name "DumpType" -Value 2 -Type DWord
    Set-ItemProperty -Path $dump -Name "DumpFolder" -Value "C:\CrashDumps" -Type ExpandString
    Set-ItemProperty -Path $dump -Name "DumpCount" -Value 5 -Type DWord
  • Verify the key is correct
    Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\explorer.exe"
  • Wait for a crash event
    • A dump file will now be created
  • Open WinDbg
  • Load the dumpfile (e.g. C:\CrashDumps\explorer.exe.5900.dmp)
  • Analyse the dump file
    • Run the command:
      !analyze -v
      • The symbol files will now be downloaded
        • e.g.: windows.ui.xaml.pdb
        • They can take a while because they are large or the download bandwidth is restricted.
      • Now you should see a result like:
        ### This is not the complete analysis
        
        EXCEPTION_RECORD:  (.exr -1)
        ExceptionAddress: 00007ffbea30e383 (Windows_UI_Xaml!DirectUI::ErrorHelper::ProcessUnhandledError+0x00000000000000fb)
           ExceptionCode: c000027b
          ExceptionFlags: 00000001
        NumberParameters: 2
           Parameter[0]: 00000000035254a0
           Parameter[1]: 0000000000000033
        
        ...
        
        SYMBOL_NAME:  Windows_UI_Xaml!CLayoutManager::UpdateLayout+5f7
        
        MODULE_NAME: Windows_UI_Xaml
        
        IMAGE_NAME:  Windows.UI.Xaml.dll
        
        FAILURE_BUCKET_ID:  STOWED_EXCEPTION_XAML_TEXT_Layout_cycle_detected.__Layout_could_not_complete_802b0014_Windows.UI.Xaml.dll!CLayoutManager::UpdateLayout
      • This points to the faulting module being Windows.UI.Xaml.dll but not what performed an incorrect call to it.
      • This did not yield an answer for me, so i pasted the analysis into Claude
        • Windows_UI_Xaml didn’t fail on its own. It killed explorer.exe on purpose because the XAML layout never settled. Your dump doesn’t say which element caused it.
        • The dump identifies the failure. It’s a XAML layout loop in the taskbar’s UI, not a corrupted file or a failed update.
        • The stack is explorer!CTray::MainThreadProc → CTray::_MessageLoop → XAML dispatcher tick → NWDrawTree → UpdateLayout. CTray is the taskbar’s main class, as far as I know. So the loop was in the taskbar’s own UI thread.
        • The c000027b code is a stowed exception. XAML caught its own error and called RaiseFailFastException, so this is a deliberate fail-fast, not memory corruption or an access violation.
        • The faulting thread is explorer’s main shell thread (CTray::MainThreadProc → CTray::_MessageLoop). It hit the problem in a normal XAML render tick (CXcpBrowserHost::OnTick → NWDrawTree → UpdateLayout). That points to a XAML surface hosted in the shell, such as the taskbar, system tray, or a flyout. No single control is identified.
        • Typical cause: In explorer, that usually means a bad interaction between the shell and something that modifies or injects into the taskbar or Start UI. Examples are taskbar/Start customisers like Windhawk, ExplorerPatcher or StartAllBack, or other shell extensions. This is my inference from the stack, not something the dump proves.
  • Get the loaded modules from the dump file which then allows you to take a more targeted look at the culprit ShellEx
    • Run the command:
      dx @$curprocess.Modules.Where(m => !m.Name.ToLower().Contains("\\windows\\")).Select(m => m.Name)
    • This returns something like this which are all of the loaded Shell Extensions, one of which us likely to be the culprit of the crash
      @$curprocess.Modules.Where(m => !m.Name.ToLower().Contains("\\windows\\")).Select(m => m.Name)                
          [0x1]            : C:\Program Files\7-Zip\7-zip.dll
          [0x2]            : C:\Program Files\FileZilla FTP Client\fzshellext_64.dll
          [0x3]            : C:\Program Files (x86)\Beyond Compare 3\BCShellEx64.dll            
          [0xc]            : C:\Program Files\Agent Ransack\ShellExt.dll
          [0x16]           : C:\Program Files\Notepad++\contextMenu\NppShell.dll
          [0x18]           : C:\Program Files\Windows Defender\shellext.dll
          [0x19]           : C:\Program Files\LockHunter\LHShellExt64.dll
          [0x1a]           : C:\Program Files (x86)\UltraISO\isoshl64.dll
          [0x1b]           : C:\Program Files\WinRAR\RarExt.dll
          [0x3b]           : C:\Program Files\Open-Shell\StartMenuDLL.dll
          [0x47]           : C:\Program Files\Open-Shell\ClassicExplorer64.dll
          [0x67]           : C:\Program Files\Common Files\microsoft shared\ink\tiptsf.dll
          [0x117]          : C:\Program Files\Windows Photo Viewer\PhotoBase.dll 
  • If there is more than one error
    • can run this command
      .exr -1
      • Swap the number for the particular error.
      • It is usually only the first error that is of use.
    • And expect a result like this:
      0:106> .exr -1
      ExceptionAddress: 00007ffbea30e383 (Windows_UI_Xaml!DirectUI::ErrorHelper::ProcessUnhandledError+0x00000000000000fb)
         ExceptionCode: c000027b
        ExceptionFlags: 00000001
      NumberParameters: 2
         Parameter[0]: 00000000035254a0
         Parameter[1]: 0000000000000033
  • Once done, revert the settings
    • Run this PowerShell script to delete the key
      Remove-Item "HKLM:\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\explorer.exe" -Recurse
    • Delete C:\CrashDumps\

5. Time Travel Debugging (with WinDbg)

I have not done this.

  • Time Travel Debugging Overview - Windows drivers | Microsoft Learn
    • Learn how Time Travel Debugging (TTD) captures process execution to replay and debug issues by rewinding your debugger session forwards and backwards.
    • Time Travel Debugging (TTD) is a tool that captures a trace of your process as it executes and replays it later both forwards and backwards. TTD helps you debug issues by letting you "rewind" your debugger session, instead of having to reproduce the issue until you find the bug.

What Apps are using Windows.UI.Xaml.dll

  • Over time: Process Monitor
    • Download ProcessMonitor
    • Process Monitor monitors file system, registry, process, thread and DLL activity in real time so we can do the following
    • Use Options → Enable Boot Logging if you also need to catch processes that load it at startup.
    • You can filter the results
      • Open the filter dialog with Ctrl+L.
      • Add these rules
        •  Path contains Windows.UI.Xaml.dll.
        • Operation is Load Image.
      • Each matching row names the process that loaded it, with a timestamp and PID.
    • Look for Load Image operations just before the crash timestamp.
      The last Load Image before the crash is usually the culprit.
  • Quick command line
    • Run this command
      tasklist /m Windows.UI.Xaml.dll
    • This will give you a result like this
      Windows PowerShell
      Copyright (C) Microsoft Corporation. All rights reserved.
      
      PS C:\Users\shoulders> tasklist /m Windows.UI.Xaml.dll
      
      Image Name                     PID Modules
      ========================= ======== ============================================
      ApplicationFrameHost.exe     11848 Windows.UI.Xaml.dll
      CHXSmartScreen.exe           20224 Windows.UI.Xaml.dll
      ShellHost.exe                 1716 Windows.UI.Xaml.dll
      explorer.exe                 10088 Windows.UI.Xaml.dll
      explorer.exe                 22192 Windows.UI.Xaml.dll
      SearchHost.exe               20952 Windows.UI.Xaml.dll
      StartMenuExperienceHost.e    26920 Windows.UI.Xaml.dll
      ShellExperienceHost.exe       6512 Windows.UI.Xaml.dll
      TextInputHost.exe            20644 Windows.UI.Xaml.dll
      SystemSettings.exe            8828 Windows.UI.Xaml.dll
      WindowsTerminal.exe           7048 Windows.UI.Xaml.dll
      PS C:\Users\shoulders>
      • I do run Open-Shell which can possibly affect StartMenuExperienceHost.exe, but there are so many users of this software, the crashing would of been fixed by now.

Links

ShellEx

  • How to Find Which Shell Extension Is Crashing Explorer.exe | ShellEx Info
    • Your taskbar disappears and reappears. Your desktop goes black for a moment. You get the dreaded “Windows Explorer has stopped working” dialog. Something is crashing explorer.exe, and the most likely culprit is a faulty shell extension DLL.
    • A systematic guide to identifying the exact shell extension DLL that causes explorer.exe crashes, freezes, and restarts on Windows 11 and 10, from quick 2-minute checks to advanced debugging techniques.
    • This article covers a lot of diagnostics:
      • Method 1: Event Viewer (2 Minutes)
      • Method 2: Binary Search with ShellExView (10 Minutes)
      • Method 3: Process Monitor (Advanced)
      • Method 4: Windows Debug Tools (Expert)
        • Add a PowerShell script to verify it has been set
          Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\explorer.exe"
        • Add a PowerShell script to remove the reg keys
          Remove-Item "HKLM:\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\explorer.exe" -Recurse
        • Add a note to remove the “CrashDumps” directory when done
        • Add download links for WinDbg
        • Add a note that downloading symbols can take a while.
        • Add the script to see loaded modules from a Dump in WinDbg
          dx @$curprocess.Modules.Where(m => !m.Name.ToLower().Contains("\\windows\\")).Select(m => m.Name)
  • Popular Windows shell extension guides | ShellEx Inf
    • ShellEx.info is an independent resource for Windows shell extension problems: slow right-click menus, Explorer freezes, suspicious DLLs, and the tools used to diagnose them (ShellExView, Autoruns, and related utilities).

WinDbg

Debugging Tutorials

Software with Shell Extensions

Windows.UI.Xaml.dll

  • GitHub - microsoft/microsoft-ui-xaml: WinUI - A modern UI framework with a rich set of controls and styles to build dynamic and high-performing Windows applications.
  • How to fix Windows.UI.Xaml.dll after a set of updates? - Microsoft Q&A
    • I understand how disruptive it is that after routine updates, core things like Search and Copilot suddenly fail with silent XAML launch errors. Before trying the in-place repair suggested by Q&A Assist, below are some other fixes you can check out first:
      1. Roll back the suspected cumulative updates (if possible)
        • Go to Settings > Update & Security > Windows Update
        • Open View update history > select Uninstall updates
        • Remove the one(s) you think affected Windows.
        • Restart the PC > Test search functionality again.
        • If it works, consider pausing updates temporarily.
      2. Re‑register the UWP/XAML app platform
        • Press Win + X > open Windows PowerShell / Terminal (Admin)
        • Run:
          Get-AppxPackage -AllUsers | ForEach { Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml" }
          • This refreshes all XAML‑based components, including Defender’s UI
        • Restart your PC and see if the issue is gone.
    • Unfortunately, there is no supported method to repair Windows.UI.Xaml.dll directly. If rollback and re‑registration fail, the in‑place repair install as suggested below is the final possible fix without data loss.
    • The behavior matches known issues where XAML-dependent components (Start menu, Search, Copilot, Settings, other shell apps) fail or crash after certain Windows updates because XAML packages don’t register correctly.
  • File Explorer crashes in Windows 11 upon right click Faulting module name: Windows.UI.Xaml.dll, version: 10.0.22000.348 · Issue #6482 · microsoft/microsoft-ui-xaml · GitHub

Reliability Monitor

  • What is it?
    • Reliability Monitor is a built-in Windows tool that gives a day-by-day (or week-by-week) timeline of crashes, failed updates, driver problems, and other system events, plus a 1–10 stability score for each period — the score is a diagnostic indicator, not something that actually throttles or changes how your PC runs.
  • Open it (any of these):
    • Run box (Win+R) → perfmon /rel — fastest, most reliable route
    • Search → type “reliab” → View reliability history
    • Control Panel → Security and Maintenance → View reliability history (under Maintenance)
  • What it shows:
    • A timeline with a red ✕ for errors/crashes, a yellow ⚠ for warnings, and a blue ℹ for informational events (e.g., software installs)
    • Categories: Application failures, Windows failures (OS/component crashes — this is where your Explorer.EXE crash would land), Hardware failures, and Miscellaneous failures
    • Click a specific day/event → View technical details to get the exact faulting module, exception code, etc. — same data as your Event Viewer excerpt, but pre-filtered to just the failures
  • Links

Windows

 

 

 

 

 

Read 21 times Last modified on Tuesday, 13 October 2026 15:36