Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

BUG: System.UnauthorizedAccessException #2706

Open
2 tasks done
ReKylee opened this issue May 20, 2024 · 2 comments
Open
2 tasks done

BUG: System.UnauthorizedAccessException #2706

ReKylee opened this issue May 20, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@ReKylee
Copy link

ReKylee commented May 20, 2024

Checks

  • I have checked that this issue has not already been reported.

  • I am using the latest version of Flow Launcher.

Problem Description

Flow Launcher version: 1.18.0
OS Version: 19045.4412
IntPtr Length: 8
x64: True

Python Path: C:\Python312\pythonw.exe
Node Path:
Date: 05/20/2024 15:09:08
Exception:
System.UnauthorizedAccessException: Access to the path 'D:\Program Files\FlowLauncher\app-1.18.0\UserData\Cache\Image.cache' is denied.
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, Nullable1 unixCreateMode) at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable1 unixCreateMode)
at System.IO.Strategies.FileStreamHelpers.ChooseStrategyCore(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable1 unixCreateMode) at System.IO.FileStream..ctor(String path, FileMode mode) at Flow.Launcher.Infrastructure.Storage.BinaryStorage1.TryLoadAsync(T defaultData) in C:\projects\flow-launcher\Flow.Launcher.Infrastructure\Storage\BinaryStorage.cs:line 49
at Flow.Launcher.Infrastructure.Image.ImageLoader.LoadStorageToConcurrentDictionaryAsync() in C:\projects\flow-launcher\Flow.Launcher.Infrastructure\Image\ImageLoader.cs:line 84
at Flow.Launcher.Infrastructure.Image.ImageLoader.InitializeAsync() in C:\projects\flow-launcher\Flow.Launcher.Infrastructure\Image\ImageLoader.cs:line 37
at Flow.Launcher.App.b__14_0() in C:\projects\flow-launcher\Flow.Launcher\App.xaml.cs:line 82
at Flow.Launcher.Infrastructure.Stopwatch.NormalAsync(String message, Func`1 action) in C:\projects\flow-launcher\Flow.Launcher.Infrastructure\Stopwatch.cs:line 58
at Flow.Launcher.App.OnStartupAsync(Object sender, StartupEventArgs e) in C:\projects\flow-launcher\Flow.Launcher\App.xaml.cs:line 51
at System.Threading.Tasks.Task.<>c.b__128_0(Object state)
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)

To Reproduce

just happened on startup

Screenshots

No response

Flow Launcher Version

1.18.0

Windows Build Number

19045.4412

Error Log

Flow Launcher version: 1.18.0
OS Version: 19045.4412
IntPtr Length: 8
x64: True

Python Path: C:\Python312\pythonw.exe
Node Path: 
Date: 05/20/2024 15:09:08
Exception:
System.UnauthorizedAccessException: Access to the path 'D:\Program Files\FlowLauncher\app-1.18.0\UserData\Cache\Image.cache' is denied.
   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)
   at Flow.Launcher.Infrastructure.Storage.BinaryStorage`1.TryLoadAsync(T defaultData) in C:\projects\flow-launcher\Flow.Launcher.Infrastructure\Storage\BinaryStorage.cs:line 49
   at Flow.Launcher.Infrastructure.Image.ImageLoader.LoadStorageToConcurrentDictionaryAsync() in C:\projects\flow-launcher\Flow.Launcher.Infrastructure\Image\ImageLoader.cs:line 84
   at Flow.Launcher.Infrastructure.Image.ImageLoader.InitializeAsync() in C:\projects\flow-launcher\Flow.Launcher.Infrastructure\Image\ImageLoader.cs:line 37
   at Flow.Launcher.App.<OnStartupAsync>b__14_0() in C:\projects\flow-launcher\Flow.Launcher\App.xaml.cs:line 82
   at Flow.Launcher.Infrastructure.Stopwatch.NormalAsync(String message, Func`1 action) in C:\projects\flow-launcher\Flow.Launcher.Infrastructure\Stopwatch.cs:line 58
   at Flow.Launcher.App.OnStartupAsync(Object sender, StartupEventArgs e) in C:\projects\flow-launcher\Flow.Launcher\App.xaml.cs:line 51
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
   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)

@ReKylee ReKylee added the bug Something isn't working label May 20, 2024
@Garulf
Copy link
Member

Garulf commented May 20, 2024

Windows "Program Files" folder typically has very restrictive file permissions (for good reason).

Please check Flow Launcher has access. As far as I know Flow Launcher doesn't really support being installed in this directory.

@ReKylee
Copy link
Author

ReKylee commented May 20, 2024

It's not installed in window's "Program Files" folder, but on a separate hard drive. should've mentioned that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants