microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
111.37k stars 6.56k forks source link

try to close powershell with shortcut #6200

Closed ZettZet closed 4 years ago

ZettZet commented 4 years ago

Version: 1.0.0 OS Version: Microsoft Windows NT 10.0.19041.0 IntPtr Length: 8 x64: True Date: 08/28/2020 00:10:39 Exception: System.ComponentModel.Win32Exception (2): Не удается найти указанный файл. at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start() at System.Diagnostics.Process.Start(ProcessStartInfo startInfo) at Microsoft.Plugin.Program.Programs.UWP.Application.b550(ActionContext ) at PowerLauncher.ViewModel.ResultViewModel.<>cDisplayClass44_0.b_0(Object ) at PowerLauncher.ViewModel.MainViewModel.HandleContextMenu(Key AcceleratorKey, ModifierKeys AcceleratorModifiers) at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args) at System.Windows.Input.InputManager.ProcessStagingArea() at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport) at System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(MSG& msg, Boolean& handled) at System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(MSG& msg, ModifierKeys modifiers) at System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param) 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)

2020-08-28.txt

crutkas commented 4 years ago

can you give us the command you ran so we can quickly test?

ZettZet commented 4 years ago

I didn't execute any commands

crutkas commented 4 years ago

I'm totally confused then at your title. "Tried to close powershell with shortcut"

What did you did you do to cause the failure?

crutkas commented 4 years ago

Help us reproduce be able to repro this so we can fix it :)

ZettZet commented 4 years ago

Sorry for misunderstanding.

Explain briefly:

I created a shortcut that maps the Alt+F4 with the Win+Q. I once accidentally opened PowerShell with PT Run. "OK, I'll close it with Win+Q," and that's why I'm here.

I have really no idea what happened.

crutkas commented 4 years ago

Не удается найти указанный файл. translation is "I can't find the file."

But the error is coming from PT Run, not the keyboard manager, something else is happening here.

Looking at logs, this could be a caching issue. Looks like Terminal may have gotten updated but we were pointing to an older version of it.

2020-08-28 00:10:38.3196|ERROR||------------- BEGIN Microsoft.Plugin.Program exception ------------- 2020-08-28 00:10:38.3388|ERROR|| Exception full name: System.IO.FileNotFoundException Error status: KNOWN Class name: UWP Calling method: ImageFromPath Program path: InnerException number: 1 Exception message: Unable to find the specified file. Exception error type: HResult -2147024894 Exception thrown in called method: Not available Possible interpretation of the error: Unable to get logo for Microsoft.WindowsTerminalPreview_8wekyb3d8bbwe!App from and located in C:\Program Files\WindowsApps\Microsoft.WindowsTerminalPreview_1.3.2382.0_x64__8wekyb3d8bbwe Possible resolution: Can be ignored and Wox should still continue, however the program may not be loaded 2020-08-28 00:10:38.3388|ERROR||------------- END Microsoft.Plugin.Program exception ------------- 2020-08-28 00:10:38.3507|ERROR||------------- BEGIN Microsoft.Plugin.Program exception ------------- 2020-08-28 00:10:38.3507|ERROR|| Exception full name: System.IO.FileNotFoundException Error status: KNOWN Class name: UWP Calling method: ImageFromPath Program path: InnerException number: 1 Exception message: Unable to find the specified file. Exception error type: HResult -2147024894 Exception thrown in called method: Not available Possible interpretation of the error: Unable to get logo for Microsoft.WindowsTerminalPreview_8wekyb3d8bbwe!App from and located in C:\Program Files\WindowsApps\Microsoft.WindowsTerminalPreview_1.3.2382.0_x64__8wekyb3d8bbwe Possible resolution: Can be ignored and Wox should still continue, however the program may not be loaded 2020-08-28 00:10:38.3507|ERROR||------------- END Microsoft.Plugin.Program exception ------------- 2020-08-28 00:10:39.5278|FATAL|UnHandledException|

ZettZet commented 4 years ago

About Windows Terminal: it's partially true. I have installed it using chocolately instead of MS Store. But I didn't use it at the time.

From the time I haven't any troubles with it.

crutkas commented 4 years ago

Can you reproduce this error? Without repo steps, this is a tad hard to figure out what actually happened.

ZettZet commented 4 years ago

I think not. I never encountered such errors again, no matter how hard I tried

saahmedm commented 4 years ago

@Zettzet, we think we've solved this with the way we're handling the cache in 0.21. Can you try the latest release (coming in a few days) and then confirm this is still an issue?

ZettZet commented 4 years ago

Sorry I'm late

I repeated all the actions that preceded this incident, it seems that it is no longer there.