Blank preview on .md and .html files. Others work. Webview2 Runtime installed. No plugins.

Open
#2,031 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 4 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
csharp
Domain
desktop

Research direction

Start by tracing how QuickLook initializes WebView2 for .md and .html previews, then inspect the CreateCoreWebView2ControllerAsync failure reported in the log. Compare that path with previews that work, such as images and videos. Done means the affected previews render instead of showing a blank page in the reported Windows 11 setup.

Written by the indexing model from the issue text.

Description

bug

Describe the bug
I have searched and tried others solutions here....
I get a blank page in the preview when trying to view .html, .md, and others I can't remember. They all seem to be related to Webview2 I think??? I can view videos and images, .txt and .xml (but not rendered.) I tried many plugins before and the problem seemed to get worse. The plugins I tried were the office viewer, textViewr, and the WebviewPlus. Also many others including the StickyPosition, QuickEdit, and FolderViewer for Everything (not directly related, I know.) I tried EVERY *.config-file mod I could find in the wiki page.

I then completely cleared my system of all plugins and Quicklook folders and started over. I installed Edge Webview2 Runtime, then clean-installed Quicklook with no addons. I also switched to a Light Theme in Win11 to test. No luck. .md and .html files only show a blank page. I checked permissions and tried files from all over my computer.

I hope you can help, please.... And Thank you!

My setup:
Win11x64 Pro
Quicklook v4.5.0 (MSI) via Winget. (Not Portable.)
No Antivirus, NONE, Defender is disabled. No Zone.ID either.
Webview2 Runtime 155.0.4283.62 (from Winget.

For reference, Seer works. I think because it uses QtWebEngine. It just refuses to work with Everything Search, so it's Quicklook or nothing.

Log:

========10/19/2026 2:26:19 PM========
System.AggregateException: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. ---> System.Runtime.InteropServices.COMException: Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE))
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
   at Microsoft.Web.WebView2.Core.CoreWebView2Environment.<CreateCoreWebView2ControllerAsync>d__15.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Web.WebView2.Wpf.WebView2.<Microsoft-Web-WebView2-Wpf-IWebView2Private-InitializeController>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Web.WebView2.Wpf.WebView2Base.<>c__DisplayClass32_0.<<EnsureCoreWebView2Async>g__Init|0>d.MoveNext()
   --- End of inner exception stack trace ---
---> (Inner Exception #0) System.Runtime.InteropServices.COMException (0x80080005): Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE))
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
   at Microsoft.Web.WebView2.Core.CoreWebView2Environment.<CreateCoreWebView2ControllerAsync>d__15.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Web.WebView2.Wpf.WebView2.<Microsoft-Web-WebView2-Wpf-IWebView2Private-InitializeController>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Web.WebView2.Wpf.WebView2Base.<>c__DisplayClass32_0.<<EnsureCoreWebView2Async>g__Init|0>d.MoveNext()<---
Image
Dominant language
C#
Stars
25.8k
Forks
1.4k
Avg merge
3d 19h
Merged PRs (30d)
3

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from QL-Win/QuickLook

All issues in QL-Win/QuickLook

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.