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] 可能存在竞争的文件操作 #399

Closed
2 of 6 tasks
CodeForCSharp opened this issue May 14, 2024 · 1 comment
Closed
2 of 6 tasks

[Bug] 可能存在竞争的文件操作 #399

CodeForCSharp opened this issue May 14, 2024 · 1 comment
Assignees

Comments

@CodeForCSharp
Copy link

Bug 描述

提示:另一个程序正在使用此文件,进程无法访问。

2024/05/13 01:23:08.667|Error|An exception occurred while the application was running|System.Runtime.InteropServices.COMException (0x80070020): 另一个程序正在使用此文件,进程无法访问。

正在使用此文件。请先关闭文件,然后再继续操作。
   at Bili.Copilot.Libs.Toolkit.FileToolkit.<>c__DisplayClass1_0`1.<<WriteLocalDataAsync>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at Bili.Copilot.Libs.Provider.HomeProvider.CachePartitionsAsync(IEnumerable`1 data)
   at Bili.Copilot.Libs.Provider.HomeProvider.GetVideoPartitionIndexAsync()
   at Bili.Copilot.ViewModels.SearchDetailViewModel.InitializeVideoFiltersAsync()
   at Bili.Copilot.ViewModels.SearchDetailViewModel.InitializeFiltersAsync(SearchModuleType type)
   at Bili.Copilot.ViewModels.SearchDetailViewModel.GetDataAsync()
   at Bili.Copilot.ViewModels.SearchDetailViewModel.SelectModuleAsync(SearchModuleItemViewModel vm)
   at CommunityToolkit.Mvvm.Input.AsyncRelayCommand.AwaitAndThrowIfFailed(Task executionTask)
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
   at Microsoft.UI.Dispatching.DispatcherQueueSynchronizationContext.<>c__DisplayClass2_0.<Post>b__0()
--- End of stack trace from previous location ---
   at WinRT.ExceptionHelpers.<ThrowExceptionForHR>g__Throw|39_0(Int32 hr)
   at ABI.Windows.ApplicationModel.Core.IUnhandledErrorMethods.Propagate(IObjectReference _obj)
   at Microsoft.AppCenter.Utils.ApplicationLifecycleHelperWinUI.<.ctor>b__0_3(Object sender, UnhandledErrorDetectedEventArgs eventArgs)
--- End of stack trace from previous location ---
   at Microsoft.AppCenter.Utils.ApplicationLifecycleHelperWinUI.<.ctor>b__0_3(Object sender, UnhandledErrorDetectedEventArgs eventArgs)
   at ABI.System.EventHandler`1.Do_Abi_Invoke[TAbi](Void* thisPtr, IntPtr sender, TAbi args)

复现问题的步骤

推荐页刷新

预期行为

不提示异常

截图

No response

应用来源

  • Github
  • AppCenter
  • 其它

其它来源

No response

系统版本

  • Windows 11 21H2 (Build 22000)
  • Windows 11 22H2 (Build 22621)
  • 其它 (需注明)

其它系统版本

No response

运行设备

No response

日志记录

No response

备注

No response

人人为我,我为人人

我更擅长发现问题

@Richasy
Copy link
Owner

Richasy commented Aug 29, 2024

已修复

@Richasy Richasy closed this as completed Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants