microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
111.33k stars 6.55k forks source link

bug notice #9626

Closed tj15241 closed 3 years ago

tj15241 commented 3 years ago

Received this notification when I booted up my VM

2021-02-10 11:17:18.8758|INFO|PowerLauncher.App.OnStartup| Message: Begin PowerToys Run startup ---------------------------------------------------- Area: PowerLauncher.App.OnStartup Source Path: S:\src\modules\launcher\PowerLauncher\App.xaml.cs::84

2021-02-10 11:17:18.9463|INFO|PowerLauncher.App.OnStartup| Message: Runtime info: Version: 0.31.2.0 OS Version: Microsoft Windows NT 10.0.18363.0 IntPtr Length: 8 x64: True Area: PowerLauncher.App.OnStartup Source Path: S:\src\modules\launcher\PowerLauncher\App.xaml.cs::85

2021-02-10 11:17:19.6405|FATAL|UnHandledException|

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=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
   TargetModule: System.Private.CoreLib.dll
   TargetSite: Microsoft.Win32.SafeHandles.SafeFileHandle ValidateFileHandle(Microsoft.Win32.SafeHandles.SafeFileHandle)
   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.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 System.Windows.Media.Imaging.BitmapImage.EndInit()
   at System.Windows.Media.Imaging.BitmapImage..ctor(Uri uriSource, RequestCachePolicy uriCachePolicy)
   at Wox.Infrastructure.Image.ImageLoader.Initialize(Theme theme)
   at PowerLauncher.App.<>c__DisplayClass14_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.OnStartup(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

Assemblies - PowerLauncher

Version: 0.31.2.0 OS Version: Microsoft Windows NT 10.0.18363.0 IntPtr Length: 8 x64: True Date: 2/10/2021 11:17:20 AM Exception: System.IO.FileNotFoundException: Could not find file 'c:\program files\powertoys\modules\launcher\Images\app.dark.png'. File name: 'c:\program files\powertoys\modules\launcher\Images\app.dark.png' 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.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 System.Windows.Media.Imaging.BitmapImage.EndInit() at System.Windows.Media.Imaging.BitmapImage..ctor(Uri uriSource, RequestCachePolicy uriCachePolicy) at Wox.Infrastructure.Image.ImageLoader.Initialize(Theme theme) at PowerLauncher.App.<>c__DisplayClass14_0.b0() at Wox.Infrastructure.Stopwatch.Normal(String message, Action action) at PowerLauncher.App.OnStartup(Object sender, StartupEventArgs e) at System.Windows.Application.OnStartup(StartupEventArgs e) at System.Windows.Application.<.ctor>b1_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)

enricogior commented 3 years ago

@tj15241 thank you for reporting the issue. Can you check if the file c:\program files\powertoys\modules\launcher\Images\app.dark.png is present or not? Thanks.

040459Nongmet commented 3 years ago

@

tj15241 commented 3 years ago

Sorry I’m a noob to Github and didn’t see a place to attach file.

I don’t see the file you are asking about but tree are the 2 closest.

From: Enrico Giordani notifications@github.com Sent: Wednesday, February 10, 2021 11:34 AM To: microsoft/PowerToys PowerToys@noreply.github.com Cc: tj15241 tjaffee@hotmail.com; Mention mention@noreply.github.com Subject: Re: [microsoft/PowerToys] bug notice (#9626)

@tj15241https://github.com/tj15241 thank you for reporting the issue. Can you check if the file c:\program files\powertoys\modules\launcher\Images\app.dark.png is present or not? Thanks.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/microsoft/PowerToys/issues/9626#issuecomment-776839502, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOZRWADNOAIHOOJT3GAQOLTS6KYQXANCNFSM4XNH5RKA.

enricogior commented 3 years ago

@tj15241

Sorry I’m a noob to Github

no problem

I don’t see the file you are asking about

Ok thanks, so the error is legit, the file for some reason is not there. Now we have to figure out why a file installed is not present.

davidegiacometti commented 3 years ago

Similar problem discussed here https://github.com/microsoft/PowerToys/issues/6520

enricogior commented 3 years ago

@davidegiacometti thanks for finding the duplicate. We can close this one.