PowerToys 鼠标无边框多个线程冲突访问settings.json,

xuo3flqw  于 6个月前  发布在  其他
关注(0)|答案(8)|浏览(75)

Microsoft PowerToys版本

0.70.0

安装方法

WinGet

以管理员身份运行

是的

出现问题的区域?

无边框鼠标

重现问题的步骤

我不确定是什么触发了问题,但我已经在三台机器上配置和使用无边框鼠标,当我注意到Event Viewer中的错误时,这些错误也在无边框鼠标日志文件中报告。

✔️ 预期行为

没有错误消息。

❌ 实际行为

procmon for Image contains MouseWithoutBorders, Path ends with settings.json:

无边框鼠标日志(大约在procmon跟踪时):
进程无法访问文件'...settings.json',因为它正被另一个进程使用,多次重复。 `
[20:42:12.1904801] [Error] MouseWithoutBordersSettings::Save
Exception encountered while saving MouseWithoutBorders settings.
The process cannot access the file 'C:\Users\david\AppData\Local\Microsoft\PowerToys\MouseWithoutBorders\settings.json' because it is being used by another process.
Inner exception:

Stack trace:
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.File.WriteToFile(String path, FileMode mode, String contents, Encoding encoding)
at Microsoft.PowerToys.Settings.UI.Library.SettingsUtils.SaveSettings(String jsonSettings, String powertoy, String fileName)
[20:42:12.2441962] [Error] MouseWithoutBordersSettings::Save
Exception encountered while saving MouseWithoutBorders settings.
The process cannot access the file 'C:\Users\david\AppData\Local\Microsoft\PowerToys\MouseWithoutBorders\settings.json' because it is being used by another process.
Inner exception:

Stack trace:
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.File.WriteToFile(String path, FileMode mode, String contents, Encoding encoding)
at Microsoft.PowerToys.Settings.UI.Library.SettingsUtils.SaveSettings(String jsonSettings, String powertoy, String fileName)
[20:42:12.2910031] [Error] MouseWithoutBordersSettings::Save
Exception encountered while saving MouseWithoutBorders settings.
The process cannot access the file 'C:\Users\david\AppData\Local\Microsoft\PowerToys\MouseWithoutBorders\settings.json' because it is being used by another process.
Inner exception:

Stack trace:
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.File.WriteToFile(String path, FileMode mode, String contents, Encoding encoding)
at Microsoft.PowerToys.Settings.UI.Library.SettingsUtils.SaveSettings(String jsonSettings, String powertoy, String fileName)
[20:42:12.3331874] [Error] MouseWithoutBordersSettings::Save
Exception encountered while saving MouseWithoutBorders settings.
The process cannot access the file 'C:\Users\david\AppData\Local\Microsoft\PowerToys\MouseWithoutBorders\settings.json' because it is being used by another process.
Inner exception:

Stack trace:
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.File.WriteToFile(String path, FileMode mode, String contents, Encoding encoding)
at Microsoft.PowerToys.Settings.UI.Library.SettingsUtils.SaveSettings(String jsonSettings, String powertoy, String fileName)
[20:42:12.3341173] [Error] MouseWithoutBordersSettings::Save
Exception encountered while saving MouseWithoutBorders settings.
The process cannot access the file 'C:\Users\david\AppData\Local\Microsoft\PowerToys\MouseWithoutBorders\settings.json' because it is being used by another process.
Inner exception:

Stack trace:
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.File.WriteToFile(String path, FileMode mode, String contents, Encoding encoding)
at Microsoft.PowerToys.Settings.UI.Library.SettingsUtils.SaveSettings(String jsonSettings, String powertoy, String fileName)
[20:42:12.3867593] [Error] MouseWithoutBordersSettings::Save
Exception encountered while saving MouseWithoutBorders settings.
The process cannot access the file 'C:\Users\david\AppData\Local\Microsoft\PowerToys\MouseWithoutBorders\settings.json' because it is being used by another process.
Inner exception:

Stack trace:
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.File.WriteToFile(String path, FileMode mode, String contents, Encoding encoding)
at Microsoft.PowerToys.Settings.UI.Library.SettingsUtils.SaveSettings(String jsonSettings, String powertoy, String fileName)
[20:42:12.4344280] [Error] MouseWithoutBordersSettings::Save
Exception encountered while saving MouseWithoutBorders settings.
The process cannot access the file 'C:\Users\david\AppData\Local\Microsoft\PowerToys\MouseWithoutBorders\settings.json' because it is being used by another process.
Inner exception:

Stack trace:
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.File.WriteToFile(String path, FileMode mode, String contents, Encoding encoding)
at Microsoft.PowerToys.Settings.UI.Library.SettingsUtils.SaveSettings(String jsonSettings, String powertoy, String fileName)
[20:42:12.4788106] [Error] MouseWithoutBordersSettings::Save
Exception encountered while saving MouseWithoutBorders settings.
The process cannot access the file 'C:\Users\david\AppData\Local\Microsoft\PowerToys\MouseWithoutBorders\settings.json' because it is being used by another process.
Inner exception:

Stack trace:
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.File.WriteToFile(String path, FileMode mode, String contents, Encoding encoding)
at Microsoft.PowerToys.Settings.UI.Library.SettingsUtils.SaveSettings(String jsonSettings, String powertoy, String fileName)
[20:42:12.4794601] [Error] MouseWithoutBordersSettings::Save
Exception encountered while saving MouseWithoutBorders settings.
The process cannot access the file 'C:\Users\david\AppData\Local\Microsoft\PowerToys\MouseWithoutBorders\settings.json' because it is being used by another process.
Inner exception:

Stack trace:
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.File.WriteToFile(String path, FileMode mode, String contents, Encoding encoding)
at Microsoft.PowerToys.Settings.UI.Library.SettingsUtils.SaveSettings(String jsonSettings, String powertoy, String fileName)
[20:42:12.5320794] [Error] MouseWithoutBordersSettings::Save
Exception encountered while saving MouseWithoutBorders settings.
The process cannot access the file 'C:\Users\david\AppData\Local\Microsoft\PowerToys\MouseWithoutBorders\settings.json' because it is being used by another process.
Inner exception:

Stack trace:
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.File.WriteToFile(String path, FileMode mode, String contents, Encoding encoding)
at Microsoft.PowerToys.Settings.UI.Library.SettingsUtils.SaveSettings(String jsonSettings, String powertoy, String fileName)
[20:42:12.5329877] [Error] MouseWithoutBordersSettings::Save
Exception encountered while saving MouseWithoutBorders settings.
The process cannot access the file 'C:\Users\david\AppData\Local\Microsoft\PowerToys\MouseWithoutBorders\settings.json' because it is being used by another process.
Inner exception:

Stack trace:
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.File.WriteToFile(String path, FileMode mode, String contents, Encoding encoding)
at Microsoft.PowerToys.Settings.UI.Library.SettingsUtils.SaveSettings(String jsonSettings, String powertoy, String fileName)
[20:42:12.5776401] [Error] MouseWithoutBordersSettings::Save
Exception encountered while saving MouseWithoutBorders settings.
The process cannot access the file 'C:\Users\david\AppData\Local\Microsoft\PowerToys\MouseWithoutBorders\settings.json' because it is being used by another process.
Inner exception:

Stack trace:
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.File.WriteToFile(String path, FileMode mode, String contents, Encoding encoding)
at Microsoft.PowerToys.Settings.UI.Library.SettingsUtils.SaveSettings(String jsonSettings, String powertoy, String fileName)
[20:42:12.6682178] [Error] MouseWithoutBordersSettings::Save
Exception encountered while saving MouseWithoutBorders settings.
The process cannot access the file 'C:\Users\david\AppData\Local\Microsoft\PowerToys\MouseWithoutBorders\settings.json' because it is being used by another process.
Inner exception:

Stack trace:
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.File.WriteToFile(String path, FileMode mode, String contents, Encoding encoding)
at Microsoft.PowerToys.Settings.UI.Library.SettingsUtils.SaveSettings(String jsonSettings, String powertoy, String fileName)
[20:42:12.7419509] [Error] MouseWithoutBordersSettings::Save
Exception encountered while saving MouseWithoutBorders settings.
The process cannot access the file 'C:\Users\david\AppData\Local\Microsoft\PowerToys\MouseWithoutBorders\settings.json' because it is being used by another process.
Inner exception:

Stack trace:
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.File.WriteToFile(String path, FileMode mode, String contents, Encoding encoding)
at Microsoft.PowerToys.Settings.UI.Library.SettingsUtils.SaveSettings(String jsonSettings, String powertoy, String fileName)
[20:42:12.8057661] [Error] MouseWithoutBordersSettings::Save
Exception encountered while saving MouseWithoutBorders settings.
The process cannot access the file 'C:\Users\david\AppData\Local\Microsoft\PowerToys\MouseWithoutBorders\settings.json' because it is being used by another process.
Inner exception:

Stack trace:
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.File.WriteToFile(String path, FileMode mode, String contents, Encoding encoding)
at Microsoft.PowerToys.Settings.UI.Library.SettingsUtils.SaveSettings(String jsonSettings, String powertoy, String fileName)
[20:42:12.8098926] [Error] MouseWithoutBordersSettings::Save
Exception encountered while saving MouseWithoutBorders settings.
The process cannot access the file 'C:\Users\david\AppData\Local\Microsoft\PowerToys\MouseWithoutBorders\settings.json' because it is being used by another process.
Inner exception:

Stack trace:
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.File.WriteToFile(String path, FileMode mode, String contents, Encoding encoding)
at Microsoft.PowerToys.Settings.UI.Library.SettingsUtils.SaveSettings(String jsonSettings, String powertoy, String fileName)
[20:42:12.8716513] [Error] MouseWithoutBordersSettings::Save
Exception encountered while saving MouseWithoutBorders settings.
The process cannot access the file 'C:\Users\david\AppData\Local\Microsoft\PowerToys\MouseWithoutBorders\settings.json' because it is being used by another process.
Inner exception:

Stack trace:
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.File.WriteToFile(String path, FileMode mode, String contents, Encoding encoding)
at Microsoft.PowerToys.Settings.UI.Library.SettingsUtils.SaveSettings(String jsonSettings, String powertoy, String fileName)
[20:42:12.9188104] [Error] MouseWithoutBordersSettings::Save
Exception encountered while saving MouseWithoutBorders settings.
The process cannot access the file 'C:\Users\david\AppData\Local\Microsoft\PowerToys\MouseWithoutBorders\settings.json' because it is being used by another process.
Inner exception:

Stack trace:
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.File.WriteToFile(String path, FileMode mode, String contents, Encoding encoding)
at Microsoft.PowerToys.Settings.UI.Library.SettingsUtils.SaveSettings(String jsonSettings, String powertoy, String fileName)
[20:42:12.9910281] [Error] MouseWithoutBordersSettings::Save
Exception encountered while saving MouseWithoutBorders settings.
The process cannot access the file 'C:\Users\david\AppData\Local\Microsoft\PowerToys\MouseWithoutBorders\settings.json' because it is being used by another process.
Inner exception:

Stack trace:
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.File.WriteToFile(String path, FileMode mode, String contents, Encoding encoding)
at Microsoft.PowerToys.Settings.UI.Library.SettingsUtils.SaveSettings(String jsonSettings, String powertoy, String fileName)
[20:42:12.9915978] [Error] MouseWithoutBordersSettings::Save
Exception encountered while saving MouseWithoutBorders settings.
The process cannot access the file 'C:\Users\david\AppData\Local\Microsoft\PowerToys\MouseWithoutBorders\settings.json' because it is being used by another process.
Inner exception:

Stack trace:
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.File.WriteToFile(String path, FileMode mode, String contents, Encoding encoding)
at Microsoft.PowerToys.Settings.UI.Library.SettingsUtils.SaveSettings(String jsonSettings, String powertoy, String fileName)
[20:42:13.0556116] [Error] MouseWithoutBordersSettings::Save
Exception encountered while saving MouseWithoutBorders settings.
The process cannot access the file 'C:\Users\david\AppData\Local\Microsoft\PowerToys\MouseWithoutBorders\settings.json' because it is being used by another process.
Inner exception:

Stack trace:
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.File.WriteToFile(String path, FileMode mode, String contents, Encoding encoding)
at Microsoft.PowerToys.Settings.UI.Library.SettingsUtils.SaveSettings(String jsonSettings, String powertoy, String fileName)
[20:42:13.1359485] [Error] MouseWithoutBordersSettings::Save
Exception encountered while saving MouseWithoutBorders settings.
The process cannot access the file 'C:\Users\david\AppData\Local\Microsoft\PowerToys\MouseWithoutBorders\settings.json' because it is being used by another process.
Inner exception:

Stack trace:
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.File.WriteToFile(String path, FileMode mode, String contents, Encoding encoding)
at Microsoft.PowerToys.Settings.UI.Library.SettingsUtils.SaveSettings(String jsonSettings, String powertoy, String fileName)
[20:42:13.1391849] [Error] MouseWithoutBordersSettings::Save
Exception encountered while saving MouseWithoutBorders settings.
The process cannot access the file 'C:\Users\david\AppData\Local\Microsoft\PowerToys\MouseWithoutBorders\settings.json' because it is being used by another process.
Inner exception:

Stack trace:
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.File.WriteToFile(String path, FileMode mode, String contents, Encoding encoding)
at Microsoft.PowerToys.Settings.UI.Library.SettingsUtils.SaveSettings(String jsonSettings, String powertoy, String fileName)
[20:42:13.1914971] [Error] MouseWithoutBordersSettings::Save
Exception encountered while saving MouseWithoutBorders settings.
The process cannot access the file 'C:\Users\david\AppData\Local\Microsoft\PowerToys\MouseWithoutBorders\settings.json' because it is being used by another process.
Inner exception:

Stack trace:
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.File.WriteToFile(String path, FileMode mode, String contents, Encoding encoding)
at Microsoft.PowerToys.Settings.UI.Library.SettingsUtils.SaveSettings(String jsonSettings, String powertoy, String fileName)
[20:42:13.2463655] [Error] MouseWithoutBordersSettings::Save
Exception encountered while saving MouseWithoutBorders settings.
The process cannot access the file 'C:\Users\david\AppData\Local\Microsoft\PowerToys\MouseWithoutBorders\settings.json' because it is being used by another process.
Inner exception:

Stack trace:
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.File.WriteToFile(String path, FileMode mode, String contents, Encoding encoding)
at Microsoft.PowerToys.Settings.UI.Library.SettingsUtils.SaveSettings(String jsonSettings, String powertoy, String fileName)
[20:42:13.3037688] [Error] MouseWithoutBordersSettings::Save
Exception encountered while saving MouseWithoutBorders settings.
The process cannot access the file 'C:\Users\david\AppData\Local\Microsoft\PowerToys\MouseWithoutBorders\settings.json' because it is being used by another process.
Inner exception:

Stack trace:
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.File.WriteToFile(String path, FileMode mode, String contents, Encoding encoding)
at Microsoft.PowerToys.Settings.UI.Library.SettingsUtils.SaveSettings(String jsonSettings, String powertoy, String fileName)
[20:42:13.3542964] [Error] MouseWithoutBordersSettings::Save
Exception encountered while saving MouseWithoutBorders settings.
The process cannot access the file 'C:\Users\david\AppData\Local\Microsoft\PowerToys\MouseWithoutBorders\settings.json' because it is being used by another process.
Inner exception:

Stack trace:
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.File.WriteToFile(String path, FileMode mode, String contents, Encoding encoding)
at Microsoft.PowerToys.Settings.UI.Library.SettingsUtils.SaveSettings(String jsonSettings, String powertoy, String fileName)
[20:42:13.3900095] [Error] MouseWithoutBordersSettings::Save
Exception encountered while saving MouseWithoutBorders settings.
The process cannot access the file 'C:\Users\david\AppData\Local\Microsoft\PowerToys\MouseWithoutBorders\settings.json' because it is being used by another process.
Inner exception:

Stack trace:
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.File.WriteToFile(String path, FileMode mode, String contents, Encoding encoding)
at Microsoft.PowerToys.Settings.UI.Library.SettingsUtils.SaveSettings(String jsonSettings, String powertoy, String fileName)
[20:42:13.4353965] [Error] MouseWithoutBordersSettings::Save
Exception encountered while saving MouseWithoutBorders settings.
The process cannot access the file 'C:\Users\david\AppData\Local\Microsoft\PowerToys\MouseWithoutBorders\settings.json' because it is being used by another process.
Inner exception:

Stack trace:
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.File.WriteToFile(String path, FileMode mode, String contents, Encoding encoding)
at Microsoft.PowerToys.Settings.UI.Library.SettingsUtils.SaveSettings(String jsonSettings, String powertoy, String fileName)
[20:42:13.4371754] [Error] MouseWithoutBordersSettings::Save
Exception encountered while saving MouseWithoutBorders settings.
The process cannot access the file 'C:\Users\david\AppData\Local\Microsoft\PowerToys\MouseWithoutBorders\settings.json' because it is being used by another process.
Inner exception:

Stack trace:
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.File.WriteToFile(String path, FileMode mode, String contents, Encoding encoding)
at Microsoft.PowerToys.Settings.UI.Library.SettingsUtils.SaveSettings(String jsonSettings, String powertoy, String fileName)
[20:42:13.4637630] [Error] MouseWithoutBordersSettings::Save
Exception encountered while saving MouseWithoutBorders settings.
The process cannot access the file 'C:\Users\david\AppData\Local\Microsoft\PowerToys\MouseWithoutBorders\settings.json' because it is being used by another process.
Inner exception:

Stack trace:
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.File.WriteToFile(String path, FileMode mode, String contents, Encoding encoding)
at Microsoft.PowerToys.Settings.UI.Library.SettingsUtils.SaveSettings(String jsonSettings, String powertoy, String fileName)
[20:42:13.4644760] [Error] MouseWithoutBordersSettings::Save
Exception encountered while saving MouseWithoutBorders settings.
The process cannot access the file 'C:\Users\david\AppData\Local\Microsoft\PowerToys\MouseWithoutBorders\settings.json' because it is being used by another process.
Inner exception:

Stack trace:
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.File.WriteToFile(String path, FileMode mode, String contents, Encoding encoding)
at Microsoft.PowerToys.Settings.UI.Library.SettingsUtils.SaveSettings(String jsonSettings, String powertoy, String fileName)
[20:42:13.4658061] [Error] MouseWithoutBordersSettings::Save
Exception encountered while saving MouseWithoutBorders settings.
The process cannot access the file 'C:\Users\david\AppData\Local\Microsoft\PowerToys\MouseWithoutBorders\settings.json' because it is being used by another process.
Inner exception:

Stack trace:
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.File.WriteToFile(String path, FileMode mode, String contents, Encoding encoding) at Microsoft.PowerToys.Settings.UI.Library.SettingsUtils.SaveSettings(String jsonSettings, String powertoy, String fileName) [20:42:13.4664756] [Error] MouseWithoutBordersSettings::Save Exception encountered while saving MouseWithoutBorders settings. The process cannot access the file 'C:\Users\david\AppData\Local\Microsoft\PowerToys\MouseWithoutBorders\settings.json' because it is being used by another process. Inner exception:
Stack trace: 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.File.WriteToFile(String path, FileMode mode, String contents, Encoding encoding)
at Microsoft.PowerToys.Settings.UI.Library.SettingsUtils.SaveSettings(String jsonSettings, String powertoy, String fileName)
`

7rfyedvj

7rfyedvj1#

我正在经历和你相同的问题。我在PowerToys推出之前使用过MWB一段时间,从未遇到过这样的问题。

我认为我已经缩小了问题的范围,但还没有测试以重新创建这个问题。

我相信这个问题是由在第一次激活/初始化MWB以供使用后,然后在设备布局部分之后激活“使用服务”开关(需要管理员权限)引起的,然后在“故障排除”部分的末尾激活“显示没有边框的原始鼠标UI”。

如果你在任务管理器的详细部分中查看路径或命令行列,你会看到两个PowerToys.MouseWithoutBorders.exe服务的示例,它们之间唯一的区别在于每个命令行中的“Winlogon”和“default”,我猜这是为了区分标准服务和具有管理员权限的服务。

以下是.exe文件的位置:

  • C:Users\George\AppData\Local\PowerToys - 包含 PowerToys.MouseWithoutBorders.exe、PowerToys.MouseWithoutBordersHelper.exe 和 PowerToys.MouseWithoutBordersService.exe 以及大多数其他Power Toys可执行文件。
  • C:\Users\George\AppData\Local\MicrosoftPowerToys\MouseWithoutBorders - 包含 settings.json 和一些日志。
  • C:\Windows\System32config\systemprofile\AppDataLocal\Microsoft\PowerToys\MouseWithoutBorders\Logs\0.72.0.0 - 包含日志,比我自己的appdata本地文件夹中的日志更详细,但似乎一旦我初始化了管理员服务,日志就被移动到了这个配置文件中。

无论如何,我希望这能帮助你获得更多的理解。

祝好!

6bc51xsx

6bc51xsx2#

你好,
我遇到了相同的问题,我也看到了两个PowerToys MouseWithoutBorders的进程,不知道为什么会这样。
我还以管理员身份运行MWB和PowerToys,所以我在想是否是这个原因。我还没有尝试卸载并重新安装PowerToys在这两台机器上。

w46czmvw

w46czmvw3#

这仍然是2023年12月23日的问题。

5ktev3wc

5ktev3wc4#

Ping。😊最新版本仍然存在问题。有时会淹没事件日志...。

除MouseWithoutBorders外,没有其他进程在使用它...。

cuxqih21

cuxqih215#

你好,我看到了一个异常。我在DbgView.exe下注意到了这个异常,请看截图。异常是由PID为13188的示例抛出的(参数为'default')。

$x_1^c_0^d_1^x$

$x_1^c_1^d_1^x$

nmpmafwu

nmpmafwu6#

也许MouseWithoutBorders在打开另一个句柄之前没有关闭文件句柄?

vzgqcmou

vzgqcmou7#

看起来它也正在获取调试信息
x1c2d1x

ff29svar

ff29svar8#

我在两台电脑上都观察到了这个问题。在事件查看器中收到了很多关于这个错误的信息。

相关问题