Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

PowerToys Run not opens at the first try #12701

Closed
1 task
pexlechris opened this issue Aug 9, 2021 · 4 comments
Closed
1 task

PowerToys Run not opens at the first try #12701

pexlechris opened this issue Aug 9, 2021 · 4 comments
Labels
Issue-Bug Something isn't working Product-PowerToys Run Improved app launch PT Run (Win+R) Window Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. Severity-High Bugs that we consider a blocking issue for release (crashes stuff outside of PT)

Comments

@pexlechris
Copy link

Microsoft PowerToys version

0.41.3.0

Running as admin

  • Yes

Area(s) with issue?

PowerToys Run

Steps to reproduce

Almost every time that I press the shortcut to open the powerToys Run for first time, I get an error.
The other times is ok.

If I close the computer an reopen, I have the same problem
2021-08-09.txt

✔️ Expected Behavior

Searchbox be appeared

❌ Actual Behavior

I get a window with the message

Other Software

No response

@pexlechris pexlechris added Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Aug 9, 2021
@dedavis6797
Copy link
Contributor

Exception full name : System.IO.IOException
Exception message : The process cannot access the file 'C:\Users\pexle\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\QueryHistory.json' because it is being used by another process.
Exception stack trace:
at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)
at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.StreamWriter.ValidateArgsAndOpenPath(String path, Boolean append, Encoding encoding, Int32 bufferSize)
at System.IO.StreamWriter..ctor(String path)
at System.IO.File.WriteAllText(String path, String contents)
at System.IO.Abstractions.FileWrapper.WriteAllText(String path, String contents)
at Wox.Infrastructure.Storage.JsonStorage`1.Save()
Exception source : System.Private.CoreLib
Exception target site: Microsoft.Win32.SafeHandles.SafeFileHandle ValidateFileHandle(Microsoft.Win32.SafeHandles.SafeFileHandle)
Exception HResult : -2147024864

@dedavis6797
Copy link
Contributor

This could be related to #12335

@dedavis6797 dedavis6797 added Product-PowerToys Run Improved app launch PT Run (Win+R) Window Severity-High Bugs that we consider a blocking issue for release (crashes stuff outside of PT) and removed Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Aug 9, 2021
@dedavis6797 dedavis6797 added this to the Stability Release milestone Aug 9, 2021
@franky920920 franky920920 mentioned this issue Aug 10, 2021
1 task
@jaimecbernardo
Copy link
Collaborator

I believe the error that's crashing here is actually:

Exception

System.InvalidCastException: Unable to cast object of type 'System.Windows.Documents.Run' to type 'System.Windows.FrameworkElement'.
   Source: PowerLauncher
   TargetAssembly: PowerLauncher, Version=0.41.3.0, Culture=neutral, PublicKeyToken=null
   TargetModule: PowerLauncher.dll
   TargetSite: Void SuggestionsList_PreviewMouseLeftButtonUp(System.Object, System.Windows.Input.MouseButtonEventArgs)
   at PowerLauncher.MainWindow.SuggestionsList_PreviewMouseLeftButtonUp(Object sender, MouseButtonEventArgs e)
   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
   at System.Windows.UIElement.OnPreviewMouseUpThunk(Object sender, MouseButtonEventArgs e)
   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.ContentElement.RaiseTrustedEvent(RoutedEventArgs args)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   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)

@jaimecbernardo
Copy link
Collaborator

This is a duplicate of #11898 .

This was fixed in the latest releases.
Please update to the latest version of PowerToys and this issue should be resolved.

@jaimecbernardo jaimecbernardo added the Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. label Aug 24, 2021
@franky920920 franky920920 mentioned this issue Oct 8, 2021
1 task
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Issue-Bug Something isn't working Product-PowerToys Run Improved app launch PT Run (Win+R) Window Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. Severity-High Bugs that we consider a blocking issue for release (crashes stuff outside of PT)
Projects
None yet
Development

No branches or pull requests

3 participants