Playnite icon indicating copy to clipboard operation
Playnite copied to clipboard

Powershell error if SearchBar is opened very early on startup

Open darklinkpower opened this issue 1 year ago • 0 comments

Bug Description

Error if SearchBar is opened on startup while Playnite has not fully loaded

Error is: The state of the current PowerShell instance is not valid for this operation.

To Reproduce

  1. Have Powershell extension that has MenuItems
  2. Open Playnite's Search Bar during startup using the registered HotKey. May be a race condition that the hotkey is registered before powershell has completely started, probably caused by PC being slow

It happened when I tried to open the SearchBar when Playnite was starting and my system was doing several tasks that slowed everything down. I can't reproduce it again so it may only happen in that scenario.

There wasn't anything in the logs (Or I accidentally deleted it 😶?)

Playnite started without any issues even after the error

Diagnostics ID

Screenshots

devenv_WwloKYz9yZ

darklinkpower avatar Aug 03 '22 04:08 darklinkpower