Closed SRChinmaya closed 1 year ago
I am getting the same exception on application start.
However, all the modules I am using seems to be working normally afterwards. I rarely use PowerLauncher / PowerToys Run. Some quick troubleshooting shows that manually selecting "Light" as app theme does not prevent the crash / exception. Disabling PowerToys Run removes the exception and error box on each login / app start.
Excerpt from log file:
[2023-03-06 11:08:59.9784] [INFO] [C:\a\_work\1\s\src\modules\launcher\PowerLauncher\App.xaml.cs::63]
Starting PowerToys Run with PID=3804
[2023-03-06 11:09:00.2110] [INFO] [C:\a\_work\1\s\src\modules\launcher\PowerLauncher\App.xaml.cs::74]
Runner pid=17336
[2023-03-06 11:09:04.8886] [INFO] [C:\a\_work\1\s\src\modules\launcher\PowerLauncher\App.xaml.cs::116]
On Startup.
[2023-03-06 11:09:06.4003] [FATAL]
## Exception
System.IO.FileNotFoundException: Could not find file 'C:\Program Files\PowerToys\modules\launcher\Images\app.dark.png'.
Source: System.Private.CoreLib
TargetAssembly: System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
TargetModule: System.Private.CoreLib.dll
TargetSite: Microsoft.Win32.SafeHandles.SafeFileHandle CreateFile(System.String, System.IO.FileMode, System.IO.FileAccess, System.IO.FileShare, System.IO.FileOptions)
at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
at System.IO.Strategies.FileStreamHelpers.ChooseStrategyCore(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.Windows.Media.Imaging.BitmapDecoder.SetupDecoderFromUriOrStream(Uri uri, Stream stream, BitmapCacheOption cacheOption, Guid& clsId, Boolean& isOriginalWritable, Stream& uriStream, UnmanagedMemoryStream& unmanagedMemoryStream, SafeFileHandle& safeFilehandle)
at System.Windows.Media.Imaging.BitmapDecoder.CreateFromUriOrStream(Uri baseUri, Uri uri, Stream stream, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, RequestCachePolicy uriCachePolicy, Boolean insertInDecoderCache)
at System.Windows.Media.Imaging.BitmapImage.FinalizeCreation()
at Wox.Infrastructure.Image.ImageLoader.Initialize(Theme theme)
at PowerLauncher.App.<>c__DisplayClass19_0.<OnStartup>b__0()
at Wox.Infrastructure.Stopwatch.Normal(String message, Action action)
at PowerLauncher.App.OnStartup(Object sender, StartupEventArgs e)
at System.Windows.Application.<.ctor>b__1_0(Object unused)
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)
## Environment
* Command Line: "C:\Program Files\PowerToys\modules\launcher\PowerToys.PowerLauncher.dll" -powerToysPid 17336 --started-from-runner
* Timestamp: 03/06/2023 11:09:06
* Wox version: 0.68.0.0
* OS Version: Microsoft Windows NT 10.0.22621.0
* IntPtr Length: 8
* x64: True
* CLR Version: 7.0.3
* Installed .NET Framework:
* v2.0.50727 2.0.50727.4927 SP2
* v3.0 3.0.30729.4926 SP2
* v3.5 3.5.30729.4926 SP1
* v4 Client 4.8.09032
* v4 Full 4.8.09032
* v4.0 Client 4.0.0.0
Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Microsoft PowerToys version
0.68.0
Installation method
PowerToys auto-update
Running as admin
Yes
Area(s) with issue?
General, Always on Top, Awake, ColorPicker, FancyZones, FancyZones Editor, File Locksmith, File Explorer: Preview Pane, File Explorer: Thumbnail preview, Hosts File Editor, Image Resizer, Keyboard Manager, Mouse Utilities, Paste as Plain Text, PowerRename, PowerToys Run, Quick Accent, Screen ruler, Settings, Shortcut Guide, System tray interaction, TextExtractor, Video Conference Mute, Welcome / PowerToys Tour window
Steps to reproduce
[2023-03-06 14:18:14.1662] [INFO] [C:\a_work\1\s\src\modules\launcher\PowerLauncher\App.xaml.cs::63] Starting PowerToys Run with PID=3676
[2023-03-06 14:18:14.1942] [INFO] [C:\a_work\1\s\src\modules\launcher\PowerLauncher\App.xaml.cs::74] Runner pid=2196
[2023-03-06 14:18:14.4566] [INFO] [C:\a_work\1\s\src\modules\launcher\PowerLauncher\App.xaml.cs::116] On Startup.
[2023-03-06 14:18:14.4839] [INFO] [C:\a_work\1\s\src\modules\launcher\Wox.Infrastructure\Storage\JsonStorage`1.cs::57] Deleting cached data at <C:\Users\Office\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\ImageCache.json>
[2023-03-06 14:18:14.5057] [INFO] [C:\a_work\1\s\src\modules\launcher\Wox.Infrastructure\Storage\JsonStorage`1.cs::131] Saving cached data at <C:\Users\Office\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\ImageCache.json>
[2023-03-06 14:18:14.5257] [FATAL]
Exception
Environment
Assemblies - PowerToys.PowerLauncher
[2023-03-06 14:19:48.1679] [INFO] [C:\a_work\1\s\src\modules\launcher\PowerLauncher\App.xaml.cs::278] Start PowerToys Run Exit----------------------------------------------------
[2023-03-06 14:19:48.1932] [INFO] [C:\a_work\1\s\src\modules\launcher\Wox.Plugin\PluginPair.cs::126] Load cost for is <1ms>
[2023-03-06 14:19:48.1932] [INFO] [C:\a_work\1\s\src\modules\launcher\Wox.Plugin\PluginPair.cs::126] Load cost for is <1ms>
[2023-03-06 14:19:48.1932] [INFO] [C:\a_work\1\s\src\modules\launcher\Wox.Plugin\PluginPair.cs::126] Load cost for is <0ms>
[2023-03-06 14:19:48.1932] [INFO] [C:\a_work\1\s\src\modules\launcher\Wox.Plugin\PluginPair.cs::126] Load cost for is <1ms>
[2023-03-06 14:19:48.1932] [INFO] [C:\a_work\1\s\src\modules\launcher\Wox.Plugin\PluginPair.cs::126] Load cost for is <0ms>
[2023-03-06 14:19:48.2116] [INFO] [C:\a_work\1\s\src\modules\launcher\Wox.Infrastructure\Storage\JsonStorage`1.cs::57] Deleting cached data at <C:\Users\Office\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Program\ProgramPluginSettings.json>
[2023-03-06 14:19:48.2227] [INFO] [C:\a_work\1\s\src\modules\launcher\Wox.Infrastructure\Storage\JsonStorage`1.cs::131] Saving cached data at <C:\Users\Office\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Program\ProgramPluginSettings.json>
[2023-03-06 14:19:48.2227] [INFO] [C:\a_work\1\s\src\modules\launcher\Wox.Plugin\PluginPair.cs::126] Load cost for is <27ms>
[2023-03-06 14:19:48.2227] [INFO] [C:\a_work\1\s\src\modules\launcher\Wox.Plugin\PluginPair.cs::126] Load cost for is <0ms>
[2023-03-06 14:19:48.2227] [INFO] [C:\a_work\1\s\src\modules\launcher\Wox.Plugin\PluginPair.cs::126] Load cost for is <1ms>
[2023-03-06 14:19:48.2227] [INFO] [C:\a_work\1\s\src\modules\launcher\Wox.Infrastructure\Storage\JsonStorage`1.cs::57] Deleting cached data at <C:\Users\Office\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Shell\ShellPluginSettings.json>
[2023-03-06 14:19:48.2418] [INFO] [C:\a_work\1\s\src\modules\launcher\Wox.Infrastructure\Storage\JsonStorage`1.cs::131] Saving cached data at <C:\Users\Office\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Shell\ShellPluginSettings.json>
[2023-03-06 14:19:48.2418] [INFO] [C:\a_work\1\s\src\modules\launcher\Wox.Plugin\PluginPair.cs::126] Load cost for is <10ms>
[2023-03-06 14:19:48.2418] [INFO] [C:\a_work\1\s\src\modules\launcher\Wox.Plugin\PluginPair.cs::126] Load cost for is <1ms>
[2023-03-06 14:19:48.2418] [INFO] [C:\a_work\1\s\src\modules\launcher\Wox.Plugin\PluginPair.cs::126] Load cost for
[2023-03-06 14:19:48.2418] [INFO] [C:\a_work\1\s\src\modules\launcher\Wox.Plugin\PluginPair.cs::126] Load cost for is <0ms>
[2023-03-06 14:19:48.2418] [INFO] [C:\a_work\1\s\src\modules\launcher\Wox.Infrastructure\Storage\JsonStorage`1.cs::57] Deleting cached data at <C:\Users\Office\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Uri\UriSettings.json>
[2023-03-06 14:19:48.2418] [INFO] [C:\a_work\1\s\src\modules\launcher\Wox.Infrastructure\Storage\JsonStorage`1.cs::131] Saving cached data at <C:\Users\Office\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Uri\UriSettings.json>
[2023-03-06 14:19:48.2418] [INFO] [C:\a_work\1\s\src\modules\launcher\Wox.Plugin\PluginPair.cs::126] Load cost for is <2ms>
[2023-03-06 14:19:48.2527] [INFO] [C:\a_work\1\s\src\modules\launcher\Wox.Plugin\PluginPair.cs::126] Load cost for is <2ms>
[2023-03-06 14:19:48.2527] [INFO] [C:\a_work\1\s\src\modules\launcher\Wox.Plugin\PluginPair.cs::126] Load cost for is <0ms>
[2023-03-06 14:19:48.2527] [INFO] [C:\a_work\1\s\src\modules\launcher\Wox.Plugin\PluginPair.cs::126] Load cost for is <0ms>
[2023-03-06 14:19:48.2527] [INFO] [C:\a_work\1\s\src\modules\launcher\Wox.Plugin\PluginPair.cs::126] Load cost for is <1ms>
[2023-03-06 14:19:48.3025] [INFO] [C:\a_work\1\s\src\modules\launcher\Wox.Plugin\PluginPair.cs::126] Load cost for is <45ms>
[2023-03-06 14:19:48.3025] [INFO] [C:\a_work\1\s\src\modules\launcher\Wox.Infrastructure\Storage\JsonStorage`1.cs::57] Deleting cached data at <C:\Users\Office\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Folder\FolderSettings.json>
[2023-03-06 14:19:48.3025] [INFO] [C:\a_work\1\s\src\modules\launcher\Wox.Infrastructure\Storage\JsonStorage`1.cs::131] Saving cached data at <C:\Users\Office\AppData\Local\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Folder\FolderSettings.json>
[2023-03-06 14:19:48.3025] [INFO] [C:\a_work\1\s\src\modules\launcher\PowerLauncher\App.xaml.cs::296] End PowerToys Run Exit ----------------------------------------------------
[2023-03-06 14:19:48.3025] [INFO] [C:\a_work\1\s\src\modules\launcher\Wox.Infrastructure\Stopwatch.cs::50] App.OnExit - Exit cost <140ms>
[2023-03-06 14:21:40.7358] [INFO] [C:\a_work\1\s\src\modules\launcher\PowerLauncher\App.xaml.cs::105] Runner with pid=2196 exited. Exiting PowerToys Run
✔️ Expected Behavior
The app is to be launched and use the power tools.
❌ Actual Behavior
None of the sub-apps is working.
Other Software
None