microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
111.73k stars 6.58k forks source link

System.IO. IOException #25653

Closed PelBro closed 1 year ago

PelBro commented 1 year ago

Microsoft PowerToys version

0.69.1.0

Installation method

Other (please specify in "Steps to Reproduce")

Running as admin

Yes

Area(s) with issue?

Installer

Steps to reproduce

I didn't get any error stating the program was in conflict.

Version: 0.69.1.0 OS Version: Microsoft Windows NT 10.0.22624.0 IntPtr Length: 8 x64: True Date: 4/21/2023 12:35:33 PM Exception: System.IO.IOException: The process cannot access the file 'C:\Users\pelbr\AppData\Local\Microsoft\PowerToys\PowerToys Run\settings.json' because it is being used by another process. 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, Nullable`1 unixCreateMode) at System.IO.StreamReader.ValidateArgsAndOpenPath(String path, Encoding encoding, Int32 bufferSize) at System.IO.File.ReadAllText(String path, Encoding encoding) at System.IO.Abstractions.FileWrapper.ReadAllText(String path) at Microsoft.PowerToys.Settings.UI.Library.SettingsUtils.GetFile[T](String powertoyFolderName, String fileName) at Microsoft.PowerToys.Settings.UI.Library.SettingsUtils.GetSettings[T](String powertoy, String fileName) at Microsoft.PowerToys.Settings.UI.Library.SettingsUtils.GetSettingsOrDefault[T](String powertoy, String fileName) at PowerLauncher.SettingsReader..ctor(PowerToysRunSettings settings, ThemeManager themeManager) at PowerLauncher.App.<>c__DisplayClass19_0.b0() at Wox.Infrastructure.Stopwatch.Normal(String message, Action action) at PowerLauncher.App.OnStartup(Object sender, 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)

✔️ Expected Behavior

A clean update

❌ Actual Behavior

Stated update was completed then the "Something Went Wrong" screen appeared.

Other Software

Screenshot 2023-04-21 124247

davidegiacometti commented 1 year ago

Can you please upgrade to latest 0.73 and verify if the issue still occur? /needinfo

microsoft-github-policy-service[bot] commented 1 year ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 5 days. It will be closed if no further activity occurs within 5 days of this comment.