Skip to content

PowerToys Run ran into an issue while trying to kill an unresponsive window #42803

@ReginaldTang

Description

@ReginaldTang

Microsoft PowerToys version

0.95.0

Installation method

Microsoft Store

Area(s) with issue?

PowerToys Run

Steps to reproduce

  1. Open PowerToys Run
  2. use Windows walker to kill the unresponsive window (not responding)

✔️ Expected Behavior

The expected behaviour is that PowerToys Run successfully kills the unresponsive window/app

❌ Actual Behavior

PowerToys Run exited and left me with this message

C:\Users\Regin\AppData\Local\Microsoft\PowerToys\PowerToys Run\Logs\0.95.0.0\2025-10-23.txt

Version: 0.95.0.0
OS Version: Microsoft Windows NT 10.0.26200.0
IntPtr Length: 8
x64: True
Date: 23/10/2025 6:40:37 PM
Exception:
System.ComponentModel.Win32Exception (5): Access is denied.
at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited)
at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited)
at System.Diagnostics.Process.Kill()
at Microsoft.Plugin.WindowWalker.Components.WindowProcess.KillThisProcess(Boolean killProcessTree)
at Microsoft.Plugin.WindowWalker.Components.ContextMenuHelper.KillProcessCommand(Window window)
at Microsoft.Plugin.WindowWalker.Components.ContextMenuHelper.<>c__DisplayClass0_0.b__1(ActionContext _)
at PowerLauncher.ViewModel.ResultViewModel.<>c__DisplayClass35_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.Interop.HwndKeyboardInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawKeyboardActions actions, Int32 scanCode, Boolean isExtendedKey, Boolean isSystemKey, Int32 virtualKey)
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)

Image Image Image

Additional Information

Windows 11 25H2, system language English (AU), running as admin

Other Software

basically any software that is not responding (in this case PowerPoint, previously i filed an issue for the same case, but with Microsoft Edge not responding instead)

Metadata

Metadata

Labels

Issue-BugSomething isn't workingNeeds-TriageFor issues raised to be triaged and prioritized by internal Microsoft teamsProduct-PowerToys RunImproved app launch PT Run (Win+R) Window

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions