PowerToys: PowerToys Preview crash in explorer preview pane with error RPC_E_DISCONNECTED
Microsoft PowerToys version
0.55.2
Running as admin
- Yes
Area(s) with issue?
Developer file preview
Steps to reproduce
- Open explorer to folder with file
- Enable Preview Pane (if not already)
- Click on file with preview available (in my case it’s either a .CPP, .C, or .py)
- Wait for crash
✔️ Expected Behavior
A preview of the file in the preview pane
❌ Actual Behavior
The preview pane either displays a gray screen with white text that says “Loading…” or a completely blank, white screen. Example:

Here’s a screenshot of the crash message:

Here’s a full stack trace from the dialog box:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.Runtime.InteropServices.COMException (0x80010108): The object invoked has disconnected from its clients. (0x80010108 (RPC_E_DISCONNECTED))
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
at Microsoft.Web.WebView2.Core.CoreWebView2Environment.CreateCoreWebView2ControllerAsync(IntPtr ParentWindow)
at Microsoft.Web.WebView2.WinForms.WebView2.InitCoreWebView2Async(CoreWebView2Environment environment)
at Microsoft.PowerToys.PreviewHandler.Monaco.MonacoPreviewHandlerControl.<>c__DisplayClass6_1`1.<<DoPreview>b__3>d.MoveNext()
--- End of stack trace from previous location ---
at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__140_0(Object state)
************** Loaded Assemblies **************
System.Private.CoreLib
Assembly Version: 5.0.0.0
Win32 Version: 5.0.1422.5710
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/5.0.14/System.Private.CoreLib.dll
----------------------------------------
PowerToys.MonacoPreviewHandler
Assembly Version: 0.55.2.0
Win32 Version: 0.55.2.0
CodeBase: file:///C:/Program%20Files/PowerToys/modules/FileExplorerPreview/PowerToys.MonacoPreviewHandler.dll
----------------------------------------
PowerToys.PreviewHandlerCommon
Assembly Version: 0.55.2.0
Win32 Version: 0.55.2.0
CodeBase: file:///C:/Program%20Files/PowerToys/modules/FileExplorerPreview/PowerToys.PreviewHandlerCommon.dll
----------------------------------------
System.Runtime
Assembly Version: 5.0.0.0
Win32 Version: 5.0.1422.5710
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/5.0.14/System.Runtime.dll
----------------------------------------
System.Drawing.Primitives
Assembly Version: 5.0.0.0
Win32 Version: 5.0.1422.5710
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/5.0.14/System.Drawing.Primitives.dll
----------------------------------------
System.ComponentModel.TypeConverter
Assembly Version: 5.0.0.0
Win32 Version: 5.0.1422.5710
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/5.0.14/System.ComponentModel.TypeConverter.dll
----------------------------------------
System.Runtime.InteropServices
Assembly Version: 5.0.0.0
Win32 Version: 5.0.1422.5710
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/5.0.14/System.Runtime.InteropServices.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 5.0.14.0
Win32 Version: 5.0.1422.6104
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/5.0.14/System.Windows.Forms.dll
----------------------------------------
System.ComponentModel.Primitives
Assembly Version: 5.0.0.0
Win32 Version: 5.0.1422.5710
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/5.0.14/System.ComponentModel.Primitives.dll
----------------------------------------
System.Windows.Forms.Primitives
Assembly Version: 5.0.14.0
Win32 Version: 5.0.1422.6104
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/5.0.14/System.Windows.Forms.Primitives.dll
----------------------------------------
System.Collections.Specialized
Assembly Version: 5.0.0.0
Win32 Version: 5.0.1422.5710
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/5.0.14/System.Collections.Specialized.dll
----------------------------------------
System.Drawing.Common
Assembly Version: 5.0.0.2
Win32 Version: 5.0.1221.52207
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/5.0.14/System.Drawing.Common.dll
----------------------------------------
System.Diagnostics.TraceSource
Assembly Version: 5.0.0.0
Win32 Version: 5.0.1422.5710
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/5.0.14/System.Diagnostics.TraceSource.dll
----------------------------------------
System.Collections
Assembly Version: 5.0.0.0
Win32 Version: 5.0.1422.5710
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/5.0.14/System.Collections.dll
----------------------------------------
Microsoft.Win32.Primitives
Assembly Version: 5.0.0.0
Win32 Version: 5.0.1422.5710
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/5.0.14/Microsoft.Win32.Primitives.dll
----------------------------------------
System.Threading
Assembly Version: 5.0.0.0
Win32 Version: 5.0.1422.5710
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/5.0.14/System.Threading.dll
----------------------------------------
System.ComponentModel.EventBasedAsync
Assembly Version: 5.0.0.0
Win32 Version: 5.0.1422.5710
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/5.0.14/System.ComponentModel.EventBasedAsync.dll
----------------------------------------
System.Threading.Thread
Assembly Version: 5.0.0.0
Win32 Version: 5.0.1422.5710
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/5.0.14/System.Threading.Thread.dll
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 5.0.1422.6104
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/5.0.14/Accessibility.dll
----------------------------------------
Microsoft.Win32.SystemEvents
Assembly Version: 5.0.0.0
Win32 Version: 5.0.20.51904
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/5.0.14/Microsoft.Win32.SystemEvents.dll
----------------------------------------
System.Runtime.Extensions
Assembly Version: 5.0.0.0
Win32 Version: 5.0.1422.5710
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/5.0.14/System.Runtime.Extensions.dll
----------------------------------------
System.Buffers
Assembly Version: 5.0.0.0
Win32 Version: 5.0.1422.5710
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/5.0.14/System.Buffers.dll
----------------------------------------
System.Collections.NonGeneric
Assembly Version: 5.0.0.0
Win32 Version: 5.0.1422.5710
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/5.0.14/System.Collections.NonGeneric.dll
----------------------------------------
Microsoft.Web.WebView2.WinForms
Assembly Version: 1.0.961.33
Win32 Version: 1.0.961.33
CodeBase: file:///C:/Program%20Files/PowerToys/modules/FileExplorerPreview/Microsoft.Web.WebView2.WinForms.dll
----------------------------------------
Microsoft.Web.WebView2.Core
Assembly Version: 1.0.961.33
Win32 Version: 1.0.961.33
CodeBase: file:///C:/Program%20Files/PowerToys/modules/FileExplorerPreview/Microsoft.Web.WebView2.Core.dll
----------------------------------------
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 5.0.1422.5710
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/5.0.14/mscorlib.dll
----------------------------------------
System.IO.FileSystem
Assembly Version: 5.0.0.0
Win32 Version: 5.0.1422.5710
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/5.0.14/System.IO.FileSystem.dll
----------------------------------------
PowerToys.Common.UI
Assembly Version: 0.55.2.0
Win32 Version: 0.55.2.0
CodeBase: file:///C:/Program%20Files/PowerToys/modules/FileExplorerPreview/PowerToys.Common.UI.dll
----------------------------------------
PowerToys.ManagedCommon
Assembly Version: 0.55.2.0
Win32 Version: 0.55.2.0
CodeBase: file:///C:/Program%20Files/PowerToys/modules/FileExplorerPreview/PowerToys.ManagedCommon.dll
----------------------------------------
netstandard
Assembly Version: 2.1.0.0
Win32 Version: 5.0.1422.5710
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/5.0.14/netstandard.dll
----------------------------------------
ControlzEx
Assembly Version: 4.0.0.0
Win32 Version: 4.4.0.50
CodeBase: file:///C:/Program%20Files/PowerToys/modules/FileExplorerPreview/ControlzEx.dll
----------------------------------------
PresentationCore
Assembly Version: 5.0.14.0
Win32 Version: 5.0.1422.6108
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/5.0.14/PresentationCore.dll
----------------------------------------
PresentationFramework
Assembly Version: 5.0.14.0
Win32 Version: 5.0.1422.6108
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/5.0.14/PresentationFramework.dll
----------------------------------------
WindowsBase
Assembly Version: 5.0.14.0
Win32 Version: 5.0.1422.6108
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/5.0.14/WindowsBase.dll
----------------------------------------
DirectWriteForwarder
Assembly Version: 5.0.14.0
Win32 Version: 5,0,1422,6108 @Commit: ef5fac198de3a26a967f16f4a0fbfed73736b2e7
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/5.0.14/DirectWriteForwarder.dll
----------------------------------------
System.Runtime.CompilerServices.VisualC
Assembly Version: 5.0.0.0
Win32 Version: 5.0.1422.5710
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/5.0.14/System.Runtime.CompilerServices.VisualC.dll
----------------------------------------
System.Diagnostics.Debug
Assembly Version: 5.0.0.0
Win32 Version: 5.0.1422.5710
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/5.0.14/System.Diagnostics.Debug.dll
----------------------------------------
Microsoft.Win32.Registry
Assembly Version: 5.0.0.0
Win32 Version: 5.0.1422.5710
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/5.0.14/Microsoft.Win32.Registry.dll
----------------------------------------
System.ObjectModel
Assembly Version: 5.0.0.0
Win32 Version: 5.0.1422.5710
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/5.0.14/System.ObjectModel.dll
----------------------------------------
System.ComponentModel
Assembly Version: 5.0.0.0
Win32 Version: 5.0.1422.5710
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/5.0.14/System.ComponentModel.dll
----------------------------------------
System.Xaml
Assembly Version: 5.0.14.0
Win32 Version: 5.0.1422.6108
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/5.0.14/System.Xaml.dll
----------------------------------------
System.Private.Uri
Assembly Version: 5.0.0.0
Win32 Version: 5.0.1422.5710
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/5.0.14/System.Private.Uri.dll
----------------------------------------
System.Configuration.ConfigurationManager
Assembly Version: 5.0.0.0
Win32 Version: 5.0.20.51904
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/5.0.14/System.Configuration.ConfigurationManager.dll
----------------------------------------
System.Diagnostics.Process
Assembly Version: 5.0.0.0
Win32 Version: 5.0.1422.5710
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/5.0.14/System.Diagnostics.Process.dll
----------------------------------------
System.Xml.ReaderWriter
Assembly Version: 5.0.0.0
Win32 Version: 5.0.1422.5710
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/5.0.14/System.Xml.ReaderWriter.dll
----------------------------------------
System.Private.Xml
Assembly Version: 5.0.0.0
Win32 Version: 5.0.1422.5710
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/5.0.14/System.Private.Xml.dll
----------------------------------------
System.Net.WebClient
Assembly Version: 5.0.0.0
Win32 Version: 5.0.1422.5710
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/5.0.14/System.Net.WebClient.dll
----------------------------------------
System.Net.Primitives
Assembly Version: 5.0.0.0
Win32 Version: 5.0.1422.5710
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/5.0.14/System.Net.Primitives.dll
----------------------------------------
System.Net.Requests
Assembly Version: 5.0.0.0
Win32 Version: 5.0.1422.5710
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/5.0.14/System.Net.Requests.dll
----------------------------------------
System.Net.WebHeaderCollection
Assembly Version: 5.0.0.0
Win32 Version: 5.0.1422.5710
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/5.0.14/System.Net.WebHeaderCollection.dll
----------------------------------------
System.Memory
Assembly Version: 5.0.0.0
Win32 Version: 5.0.1422.5710
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/5.0.14/System.Memory.dll
----------------------------------------
System.Security.Cryptography.Algorithms
Assembly Version: 5.0.0.0
Win32 Version: 5.0.1422.5710
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/5.0.14/System.Security.Cryptography.Algorithms.dll
----------------------------------------
System.Text.Encoding.Extensions
Assembly Version: 5.0.0.0
Win32 Version: 5.0.1422.5710
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/5.0.14/System.Text.Encoding.Extensions.dll
----------------------------------------
System.Linq
Assembly Version: 5.0.0.0
Win32 Version: 5.0.1422.5710
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/5.0.14/System.Linq.dll
----------------------------------------
PresentationFramework-SystemXml
Assembly Version: 5.0.14.0
Win32 Version: 5.0.1422.6108
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/5.0.14/PresentationFramework-SystemXml.dll
----------------------------------------
System.Runtime.InteropServices.RuntimeInformation
Assembly Version: 5.0.0.0
Win32 Version: 5.0.1422.5710
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/5.0.14/System.Runtime.InteropServices.RuntimeInformation.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 5.0.1422.5710
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/5.0.14/System.dll
----------------------------------------
System.Threading.ThreadPool
Assembly Version: 5.0.0.0
Win32 Version: 5.0.1422.5710
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/5.0.14/System.Threading.ThreadPool.dll
----------------------------------------
System.Text.Json
Assembly Version: 5.0.0.0
Win32 Version: 5.0.1422.5710
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/5.0.14/System.Text.Json.dll
----------------------------------------
System.Numerics.Vectors
Assembly Version: 5.0.0.0
Win32 Version: 5.0.1422.5710
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/5.0.14/System.Numerics.Vectors.dll
----------------------------------------
System.Runtime.CompilerServices.Unsafe
Assembly Version: 5.0.0.0
Win32 Version: 5.0.1422.5710
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/5.0.14/System.Runtime.CompilerServices.Unsafe.dll
----------------------------------------
System.Threading.Tasks
Assembly Version: 5.0.0.0
Win32 Version: 5.0.1422.5710
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/5.0.14/System.Threading.Tasks.dll
----------------------------------------
System.Drawing
Assembly Version: 5.0.14.0
Win32 Version: 5.0.1422.6104
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/5.0.14/System.Drawing.dll
----------------------------------------
System.Diagnostics.StackTrace
Assembly Version: 5.0.0.0
Win32 Version: 5.0.1422.5710
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/5.0.14/System.Diagnostics.StackTrace.dll
----------------------------------------
System.Reflection.Metadata
Assembly Version: 5.0.0.0
Win32 Version: 5.0.1422.5710
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/5.0.14/System.Reflection.Metadata.dll
----------------------------------------
System.Collections.Immutable
Assembly Version: 5.0.0.0
Win32 Version: 5.0.1422.5710
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/5.0.14/System.Collections.Immutable.dll
----------------------------------------
************** JIT Debugging **************
Other Software
Here’s information about my operating system and machine:
OS Name Microsoft Windows 10 Education
Version 10.0.19044 Build 19044
Other OS Description Not Available
OS Manufacturer Microsoft Corporation
System Name <REDACTED>
System Manufacturer System manufacturer
System Model System Product Name
System Type x64-based PC
System SKU SKU
Processor AMD Ryzen 9 3950X 16-Core Processor, 3501 Mhz, 16 Core(s), 32 Logical Processor(s)
BIOS Version/Date American Megatrends Inc. 4021, 09/08/2021
SMBIOS Version 3.3
Embedded Controller Version 255.255
BIOS Mode UEFI
BaseBoard Manufacturer ASUSTeK COMPUTER INC.
BaseBoard Product ROG STRIX X570-E GAMING
BaseBoard Version Rev X.0x
Platform Role Desktop
Secure Boot State Off
PCR7 Configuration Elevation Required to View
Windows Directory C:\Windows
System Directory C:\Windows\system32
Boot Device \Device\HarddiskVolume1
Locale United States
Hardware Abstraction Layer Version = "10.0.19041.1503"
User Name <REDACTED>
Time Zone Central Standard Time
Installed Physical Memory (RAM) 64.0 GB
Total Physical Memory 63.9 GB
Available Physical Memory 56.2 GB
Total Virtual Memory 73.4 GB
Available Virtual Memory 62.7 GB
Page File Space 9.50 GB
Page File C:\pagefile.sys
Kernel DMA Protection Off
Virtualization-based security Running
Virtualization-based security Required Security Properties
Virtualization-based security Available Security Properties Base Virtualization Support, DMA Protection, UEFI Code Readonly, Mode Based Execution Control
Virtualization-based security Services Configured
Virtualization-based security Services Running
Device Encryption Support Elevation Required to View
A hypervisor has been detected. Features required for Hyper-V will not be displayed.
Here’s the zip from the “report bug” button: PowerToysReport_2022-02-24-12-39-44.zip
About this issue
- Original URL
- State: open
- Created 2 years ago
- Comments: 20 (3 by maintainers)
Issue is still happening with v0.72.0. Preview works for pretty much all image formats, but anything that’s basic text will cause it to crash. Here’s a few I’ve tested so far: