microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
109.8k stars 6.47k forks source link

SVG thumbnail generator causes `dllhost.exe` high CPU usage #29296

Open garretwilson opened 11 months ago

garretwilson commented 11 months ago

Microsoft PowerToys version

0.74.0

Installation method

GitHub

Running as admin

None

Area(s) with issue?

File Explorer: Thumbnail preview

Steps to reproduce

Today using Windows 10 I generated some SVG files using UMLet. and happened to browse that directory in Windows Explorer.

✔️ Expected Behavior

Nothing out of the ordinary.

❌ Actual Behavior

Later I noticed my fan was constantly on, and CPU usage for two cores was really high, stuck on the infamous dllhost.exe. I pulled up Process Explorer, and there are two dllhost.exe instances. For one, one of the file handles indicated is:

C:\Users\user\AppData\LocalLow\Microsoft\PowerToyes\SvgThumbnailPreview-Temp\some-long-random-looking-id.svg

Another is:

C:\Users\user\AppData\LocalLow\Microsoft\PowerToys\logs\FileExplorer_localLow\SvgThumbnailProvider\svg-thumbnail-provider-log_2023-10-18.txt

That looks interesting; here are the contents of the log file:

[2023-10-18 11:45:43.624462] [p-xxxx] [t-xxxx] [info] SvgThumbnailProvider logger is initialized
[2023-10-18 11:45:43.626069] [p-xxxx] [t-xxxx] [info] SvgThumbnailProvider logger is initialized
[2023-10-18 11:45:43.627906] [p-xxxx] [t-xxxx] [trace] Begin
[2023-10-18 11:45:43.627931] [p-xxxx] [t-xxxx] [info] Read stream and save to tmp file.
[2023-10-18 11:45:43.629230] [p-xxxx] [t-xxxx] [trace] Begin
[2023-10-18 11:45:43.629261] [p-xxxx] [t-xxxx] [info] Read stream and save to tmp file.
[2023-10-18 11:45:43.633477] [p-xxxx] [t-xxxx] [info] Start SvgThumbnailProvider.exe

(I replaced the numbers with xxxx, because I don't like to go posting logs publicly if I don't know what the numbers mean.)

The other dllhost.exe instance mentions Windows Search:

C:\Users\user\AppData\Local\Packages\Microsoft.Windows.Search_xxxxxxxxxxxxx\AppData\Indexed DB\xxx.log

Is PowerToys SVG thumbnail doing something and leaving dllhost.exe running? Or is the root problem Windows Search?

I just now went into the PowerToys settings and turned off SVG thumbnails. dllhost.exe is still going crazy, so I guess I'll have to reboot.

It thought I'd report this in case others are seeing this problem.

Other Software

UMLet 15.1

mrforsythexeter commented 9 months ago

I am also seeing this behaviour. It will consume around 5 to 10% of a Ryzen 9 5900X, causing the fans to spin up and draw more power.

I can kill the process - however it normally takes me a while to realise it's happening. Please let me know if I need to provide logs.