Crashed when viewing a shortcut to a browser on desktop
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 24.7k
- Forks
- 1.3k
- Avg merge
- 4d 7h
- Merged PRs (30d)
- 1
Description
Steps to reproduce the behavior:
- I was pressing space and space again on a few images, PDF, folders, and excel with the plugin, then back to images. It was working fine.
- Then, I pressed space on the shortcut to the Edge browser, just to see what happens since I'm somewhat new to this.
- Nothing appeared so I kept pressing space, moved to another shortcut, other files, etc., and nothing appeared.
- I look at the taskbar, and I saw many QuickLook error windows.
I installed the Office plugin (OfficeViewer v5) this morning so I am wondering if that caused this issue.
Expected behavior:
When pressing space over a shortcut, like Edge, Firefox, Vivaldi, which are just shortcuts to open the browsers, it should have opened the QuickLook info window, with no crashes.
Desktop:
- OS Version: Windows 10 64-bit - latest
- QuickLook Version: 4.0.2 Windows Store
Screenshots and Exception Log:
If applicable, add screenshots and logs to help explain your problem. The log file is located in one of several locations.
The below shows only one error out of many that appeared (which I think are in the attached log file). I couldn't copy the others as the copy was only working on the first window. Once I clicked exit on one window, it closed all others.
Error Occured v4.0.2.3
2025-06-02 10:27:02 AM Windows 10.0.19045.2
System.InvalidOperationException: Cannot set Visibility or call Show, ShowDialog, or WindowInteropHelper.EnsureHandle after a Window has closed.
at System.Windows.Window.VerifyCanShow()
at System.Windows.Window.CreateSourceWindow(Boolean duringShow)
at System.Windows.Interop.WindowInteropHelper.EnsureHandle()
at QuickLook.Common.Helpers.DisplayDeviceHelper.GetMonitorColorProfileFromWindow(Window window)
at QuickLook.ViewerWindow.BeginShow(IViewer matchedPlugin, String path, Action`2 exceptionHandler)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the exception log at QuickLook.ViewerWindow.BeginShow and QuickLook.Common.Helpers.DisplayDeviceHelper.GetMonitorColorProfileFromWindow, then reproduce the reported Space-key flow on an Edge or other browser shortcut. Confirm that repeatedly previewing the shortcut no longer produces the Window.VerifyCanShow exception or multiple QuickLook error windows.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100