microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
111.33k stars 6.55k forks source link

PT Run freezes after typing the first character #4138

Closed elskewe closed 4 years ago

elskewe commented 4 years ago

Environment

Windows build number: 18363.836
PowerToys version: 0.18.2
PowerToy module for which you are reporting the bug (if applicable): PowerToys Run

Steps to reproduce

Press Alt + Space to trigger PowerToys Run. Type any character.

This happens both as admin and non-admin. Clearing %localappdata%/Microsoft/PowerToys/PowerToys Run did not help. Might be related to #3274

Expected behavior

Show search results.

Actual behavior

The PowerToys Run window freezes and gives a "program not responding" dialog.

J-Hurtta commented 4 years ago

I'm having the same issue, PowerToys Run instantly freezes when I type in a character.

saahmedm commented 4 years ago

hi @elskewe can you share your event viewer logs, if there are any errors?

elskewe commented 4 years ago

In the event viewer I have the following:

The program PowerLauncher.exe version 1.0.0.0 stopped interacting with Windows and was closed. To see if more information about the problem is available, check the problem history in the Security and Maintenance control panel.
 Process ID: 7d2c
 Start Time: 01d63ea15cc7b75a
 Termination Time: 13
 Application Path: C:\Program Files\PowerToys\modules\launcher\PowerLauncher.exe
 Report Id: 556df448-ab9e-438f-a751-4eaf372ea082
 Faulting package full name: 
 Faulting package-relative application ID: 
 Hang type: Unknown

In Security and Maintenance I get the following:

Source
PowerLauncher

Summary
Stopped responding and was closed

Date
‎09.‎06.‎2020 23:03

Status
Not reported

Description
A problem caused this program to stop interacting with Windows.
Faulting Application Path:  C:\Program Files\PowerToys\modules\launcher\PowerLauncher.exe

Problem signature
Problem Event Name: AppHangB1
Application Name:   PowerLauncher.exe
Application Version:    1.0.0.0
Application Timestamp:  5e222541
Hang Signature: 0f3c
Hang Type:  134217728
OS Version: 10.0.18363.2.0.0.256.121
Locale ID:  1031
Additional Hang Signature 1:    0f3cb5f624f978a58510c19296537e5c
Additional Hang Signature 2:    391a
Additional Hang Signature 3:    391a8be6b44559fc267113ac293ca9a8
Additional Hang Signature 4:    0f3c
Additional Hang Signature 5:    0f3cb5f624f978a58510c19296537e5c
Additional Hang Signature 6:    391a
Additional Hang Signature 7:    391a8be6b44559fc267113ac293ca9a8
crutkas commented 4 years ago

We've done a ton of fixes here, hopefully one of the adjustments in 0.19 to the upcoming 0.21 resolved it.

If not, can you provide logs when it does occure %localappdata%\Microsoft\PowerToys\PowerToys Run\

elskewe commented 4 years ago

We've done a ton of fixes here, hopefully one of the adjustments in 0.19 to the upcoming 0.21 resolved it.

If not, can you provide logs when it does occure %localappdata%\Microsoft\PowerToys\PowerToys Run\

The issue is still there in 0.20.1. This is the log:

2020-08-27 09:51:27.1187|INFO|App.OnStartup|Begin PowerToys Run startup ----------------------------------------------------
2020-08-27 09:51:27.1398|INFO|App.OnStartup|Runtime info:
Version: 1.0.0
OS Version: Microsoft Windows NT 10.0.18363.0
IntPtr Length: 8
x64: True
2020-08-27 09:51:27.4370|FATAL|FaultyLogger|Wrong logger message format <|BinaryStorage.TryLoad|Deleting cached data| <C:\Users\***\AppData\Local\Microsoft\PowerToys\PowerToys Run\Cache\Image.cache>>
2020-08-27 09:51:27.4412|INFO|BinaryStorage.TryLoad|Cache file not exist, load default data
2020-08-27 09:51:27.4564|FATAL|FaultyLogger|Wrong logger message format <|BinaryStorage.Save|Saving cached data| <C:\Users\***\AppData\Local\Microsoft\PowerToys\PowerToys Run\Cache\Image.cache>>
2020-08-27 09:51:27.5123|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.TryLoad|Deleting cached data|<C:\Users\***\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Settings.json>>
2020-08-27 09:51:27.5243|INFO|ImageLoader.Initialize|Preload images cost <42ms>
2020-08-27 09:51:27.5243|INFO|ImageLoader.Initialize|Number of preload images is <0>, Images Number: 4, Unique Items 4
2020-08-27 09:51:27.6269|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.Save|Saving cached data| <C:\Users\***\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Settings.json>>
2020-08-27 09:51:27.6269|FATAL|FaultyLogger|Wrong logger message format <|BinaryStorage.TryLoad|Deleting cached data| <C:\Users\***\AppData\Local\Microsoft\PowerToys\PowerToys Run\Cache\Pinyin.cache>>
2020-08-27 09:51:27.6269|INFO|BinaryStorage.TryLoad|Cache file not exist, load default data
2020-08-27 09:51:27.6453|FATAL|FaultyLogger|Wrong logger message format <|BinaryStorage.Save|Saving cached data| <C:\Users\***\AppData\Local\Microsoft\PowerToys\PowerToys Run\Cache\Pinyin.cache>>
2020-08-27 09:51:27.6810|INFO|Wox.Infrastructure.Alphabet.Initialize|Preload pinyin cache <49ms>
2020-08-27 09:51:27.6810|INFO|Wox.Infrastructure.Alphabet.Initialize|Number of preload pinyin combination<0>
2020-08-27 09:51:27.7660|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.Save|Saving cached data| <C:\Users\***\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Folder\FolderSettings.json>>
2020-08-27 09:51:27.8547|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.TryLoad|Deleting cached data|<C:\Users\***\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Program\Settings.json>>
2020-08-27 09:51:27.8708|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.Save|Saving cached data| <C:\Users\***\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Program\Settings.json>>
2020-08-27 09:51:27.8810|FATAL|FaultyLogger|Wrong logger message format <|BinaryStorage.TryLoad|Deleting cached data| <C:\Users\***\AppData\Local\Microsoft\PowerToys\PowerToys Run\Cache\Win32.cache>>
2020-08-27 09:51:27.8810|INFO|BinaryStorage.TryLoad|Cache file not exist, load default data
2020-08-27 09:51:27.8952|FATAL|FaultyLogger|Wrong logger message format <|BinaryStorage.Save|Saving cached data| <C:\Users\***\AppData\Local\Microsoft\PowerToys\PowerToys Run\Cache\Win32.cache>>
2020-08-27 09:51:27.8952|FATAL|FaultyLogger|Wrong logger message format <|BinaryStorage.TryLoad|Deleting cached data| <C:\Users\***\AppData\Local\Microsoft\PowerToys\PowerToys Run\Cache\UWP.cache>>
2020-08-27 09:51:27.9071|INFO|BinaryStorage.TryLoad|Cache file not exist, load default data
2020-08-27 09:51:27.9071|FATAL|FaultyLogger|Wrong logger message format <|BinaryStorage.Save|Saving cached data| <C:\Users\***\AppData\Local\Microsoft\PowerToys\PowerToys Run\Cache\UWP.cache>>
2020-08-27 09:51:27.9071|INFO|Microsoft.Plugin.Program.Main|Preload programs cost <40ms>
2020-08-27 09:51:27.9253|INFO|Microsoft.Plugin.Program.Main|Number of preload win32 programs <0>
2020-08-27 09:51:31.7649|ERROR||------------- BEGIN Microsoft.Plugin.Program exception -------------
2020-08-27 09:51:31.7703|ERROR||
Exception full name: System.Runtime.InteropServices.COMException
Error status: KNOWN
Class name: Win32
Calling method: LnkProgram
Program path: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools\System Configuration.lnk
InnerException number: 1
Exception message: Error HRESULT E_FAIL has been returned from a call to a COM component.
Exception error type: HResult -2147467259
Exception thrown in called method: Void GetDescription(System.Text.StringBuilder, Int32)
Possible interpretation of the error: Error caused likely due to trying to get the description of the program
Possible resolution: Can be ignored and Wox should still continue, however the program may not be loaded
2020-08-27 09:51:31.7703|ERROR||------------- END Microsoft.Plugin.Program exception -------------
2020-08-27 09:51:31.7807|ERROR||------------- BEGIN Microsoft.Plugin.Program exception -------------
2020-08-27 09:51:31.7807|ERROR||
Exception full name: System.Runtime.InteropServices.COMException
Error status: KNOWN
Class name: Win32
Calling method: LnkProgram
Program path: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Accessories\Windows Media Player.lnk
InnerException number: 1
Exception message: Error HRESULT E_FAIL has been returned from a call to a COM component.
Exception error type: HResult -2147467259
Exception thrown in called method: Void GetDescription(System.Text.StringBuilder, Int32)
Possible interpretation of the error: Error caused likely due to trying to get the description of the program
Possible resolution: Can be ignored and Wox should still continue, however the program may not be loaded
2020-08-27 09:51:31.7807|ERROR||------------- END Microsoft.Plugin.Program exception -------------
2020-08-27 09:51:31.8110|ERROR||------------- BEGIN Microsoft.Plugin.Program exception -------------
2020-08-27 09:51:31.8158|ERROR||
Exception full name: System.Runtime.InteropServices.COMException
Error status: KNOWN
Class name: Win32
Calling method: LnkProgram
Program path: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools\ODBC Data Sources (32-bit).lnk
InnerException number: 1
Exception message: Error HRESULT E_FAIL has been returned from a call to a COM component.
Exception error type: HResult -2147467259
Exception thrown in called method: Void GetDescription(System.Text.StringBuilder, Int32)
Possible interpretation of the error: Error caused likely due to trying to get the description of the program
Possible resolution: Can be ignored and Wox should still continue, however the program may not be loaded
2020-08-27 09:51:31.8158|ERROR||------------- END Microsoft.Plugin.Program exception -------------
2020-08-27 09:51:36.4334|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.TryLoad|Deleting cached data|<C:\Users\***\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Shell\Settings.json>>
2020-08-27 09:51:36.4497|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.Save|Saving cached data| <C:\Users\***\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Shell\Settings.json>>
2020-08-27 09:51:36.5306|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.Save|Saving cached data| <C:\Users\***\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\QueryHistory.json>>
2020-08-27 09:51:36.5306|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.TryLoad|Deleting cached data|<C:\Users\***\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\UserSelectedRecord.json>>
2020-08-27 09:51:36.5306|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.Save|Saving cached data| <C:\Users\***\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\UserSelectedRecord.json>>
2020-08-27 09:51:36.5512|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.TryLoad|Deleting cached data|<C:\Users\***\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\TopMostRecord.json>>
2020-08-27 09:51:36.5512|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.Save|Saving cached data| <C:\Users\***\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\TopMostRecord.json>>
2020-08-27 09:51:36.7202|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.TryLoad|Deleting cached data|<C:\Users\***\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Indexer\Settings.json>>
2020-08-27 09:51:36.7202|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.Save|Saving cached data| <C:\Users\***\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Indexer\Settings.json>>

I will try it as soon as 0.21 is released as well.

crutkas commented 4 years ago

The tail end of that seems interesting but the top part is a bad image load.

elskewe commented 4 years ago

This is the log from version 0.21:

2020-09-03 12:41:31.6480|INFO|App.OnStartup|Begin PowerToys Run startup ----------------------------------------------------
2020-09-03 12:41:31.6705|INFO|App.OnStartup|Runtime info:
Version: 0.21.1.0
OS Version: Microsoft Windows NT 10.0.18363.0
IntPtr Length: 8
x64: True
2020-09-03 12:41:31.9336|FATAL|FaultyLogger|Wrong logger message format <|BinaryStorage.TryLoad|Deleting cached data| <C:\Users\***\AppData\Local\Microsoft\PowerToys\PowerToys Run\Cache\Image.cache>>
2020-09-03 12:41:31.9336|INFO|BinaryStorage.TryLoad|Cache file not exist, load default data
2020-09-03 12:41:31.9531|FATAL|FaultyLogger|Wrong logger message format <|BinaryStorage.Save|Saving cached data| <C:\Users\***\AppData\Local\Microsoft\PowerToys\PowerToys Run\Cache\Image.cache>>
2020-09-03 12:41:32.0092|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.TryLoad|Deleting cached data|<C:\Users\***\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Settings.json>>
2020-09-03 12:41:32.0225|INFO|ImageLoader.Initialize|Preload images cost <42ms>
2020-09-03 12:41:32.0276|INFO|ImageLoader.Initialize|Number of preload images is <0>, Images Number: 4, Unique Items 4
2020-09-03 12:41:32.1280|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.Save|Saving cached data| <C:\Users\***\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Settings.json>>
2020-09-03 12:41:32.1280|FATAL|FaultyLogger|Wrong logger message format <|BinaryStorage.TryLoad|Deleting cached data| <C:\Users\***\AppData\Local\Microsoft\PowerToys\PowerToys Run\Cache\Pinyin.cache>>
2020-09-03 12:41:32.1373|INFO|BinaryStorage.TryLoad|Cache file not exist, load default data
2020-09-03 12:41:32.1373|FATAL|FaultyLogger|Wrong logger message format <|BinaryStorage.Save|Saving cached data| <C:\Users\***\AppData\Local\Microsoft\PowerToys\PowerToys Run\Cache\Pinyin.cache>>
2020-09-03 12:41:32.1867|INFO|Wox.Infrastructure.Alphabet.Initialize|Preload pinyin cache <53ms>
2020-09-03 12:41:32.1867|INFO|Wox.Infrastructure.Alphabet.Initialize|Number of preload pinyin combination<0>
2020-09-03 12:41:32.3446|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.Save|Saving cached data| <C:\Users\***\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Program\ProgramPluginSettings.json>>
2020-09-03 12:41:36.3052|ERROR||------------- BEGIN Microsoft.Plugin.Program exception -------------
2020-09-03 12:41:36.3101|ERROR||
Exception full name: System.Runtime.InteropServices.COMException
Error status: KNOWN
Class name: Win32
Calling method: LnkProgram
Program path: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools\System Configuration.lnk
InnerException number: 1
Exception message: Error HRESULT E_FAIL has been returned from a call to a COM component.
Exception error type: HResult -2147467259
Exception thrown in called method: Void GetDescription(System.Text.StringBuilder, Int32)
Possible interpretation of the error: An unexpected error occurred in the calling method LnkProgram
Possible resolution: Can be ignored and Wox should still continue, however the program may not be loaded
2020-09-03 12:41:36.3101|ERROR||------------- END Microsoft.Plugin.Program exception -------------
2020-09-03 12:41:36.3101|ERROR||------------- BEGIN Microsoft.Plugin.Program exception -------------
2020-09-03 12:41:36.3101|ERROR||
Exception full name: System.Runtime.InteropServices.COMException
Error status: KNOWN
Class name: Win32
Calling method: LnkProgram
Program path: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Accessories\Windows Media Player.lnk
InnerException number: 1
Exception message: Error HRESULT E_FAIL has been returned from a call to a COM component.
Exception error type: HResult -2147467259
Exception thrown in called method: Void GetDescription(System.Text.StringBuilder, Int32)
Possible interpretation of the error: An unexpected error occurred in the calling method LnkProgram
Possible resolution: Can be ignored and Wox should still continue, however the program may not be loaded
2020-09-03 12:41:36.3307|ERROR||------------- END Microsoft.Plugin.Program exception -------------
2020-09-03 12:41:36.3563|ERROR||------------- BEGIN Microsoft.Plugin.Program exception -------------
2020-09-03 12:41:36.3563|ERROR||
Exception full name: System.Runtime.InteropServices.COMException
Error status: KNOWN
Class name: Win32
Calling method: LnkProgram
Program path: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools\ODBC Data Sources (32-bit).lnk
InnerException number: 1
Exception message: Error HRESULT E_FAIL has been returned from a call to a COM component.
Exception error type: HResult -2147467259
Exception thrown in called method: Void GetDescription(System.Text.StringBuilder, Int32)
Possible interpretation of the error: An unexpected error occurred in the calling method LnkProgram
Possible resolution: Can be ignored and Wox should still continue, however the program may not be loaded
2020-09-03 12:41:36.3563|ERROR||------------- END Microsoft.Plugin.Program exception -------------
2020-09-03 12:41:40.0380|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.Save|Saving cached data| <C:\Users\***\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Shell\ShellPluginSettings.json>>
2020-09-03 12:41:40.0608|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.Save|Saving cached data| <C:\Users\***\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Uri\UriSettings.json>>
2020-09-03 12:41:40.1598|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.TryLoad|Deleting cached data|<C:\Users\***\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\QueryHistory.json>>
2020-09-03 12:41:40.1703|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.Save|Saving cached data| <C:\Users\***\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\QueryHistory.json>>
2020-09-03 12:41:40.1703|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.TryLoad|Deleting cached data|<C:\Users\***\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\UserSelectedRecord.json>>
2020-09-03 12:41:40.1887|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.Save|Saving cached data| <C:\Users\***\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\UserSelectedRecord.json>>
2020-09-03 12:41:40.1887|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.TryLoad|Deleting cached data|<C:\Users\***\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\TopMostRecord.json>>
2020-09-03 12:41:40.2022|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.Save|Saving cached data| <C:\Users\***\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\TopMostRecord.json>>
2020-09-03 12:41:40.3617|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.TryLoad|Deleting cached data|<C:\Users\***\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Folder\FolderSettings.json>>
2020-09-03 12:41:40.3617|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.Save|Saving cached data| <C:\Users\***\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Indexer\IndexerSettings.json>>
2020-09-03 12:41:40.3725|FATAL|FaultyLogger|Wrong logger message format <|JsonStorage.Save|Saving cached data| <C:\Users\***\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Folder\FolderSettings.json>>
dsrivastavv commented 4 years ago

@elskewe Does this issue happen each time you type first character of a query or only once at start ?

elskewe commented 4 years ago

It only happens once at the start, because there is no second time as I always end up having to force close PT Run. I have not been able to successfully use PT Run even once.

dsrivastavv commented 4 years ago

@elskewe I would need some more information to debug this issue. Could you please follow the steps below :

  1. Uninstall PowerToys.
  2. Ensure that C:\Program Files\PowerToys folder is deleted. If not, manually delete it. and then install Powertoys Version=0.21.1
  3. Try to use a query. If it freezes, force close the application.
  4. Open Event Viewer application and look for any potential error entries under Windows Logs > Application.

After the above steps, please upload logs at %userprofile%/appdata/local/microsoft/powertoys/PowerToys Run along with any relevant error from the Event Viewer.

elskewe commented 4 years ago

After installing v0.23 this issue is no longer present for me. I can use PT Run as excepted and the search results are shown without any kind of freezing.