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

背景服务文件占用 #2101

Closed
4 tasks done
Sanchuuguizi opened this issue Oct 27, 2024 · 7 comments
Closed
4 tasks done

背景服务文件占用 #2101

Sanchuuguizi opened this issue Oct 27, 2024 · 7 comments
Labels
area-LifeCycle App生命周期问题 已完成 This issue is completed
Milestone

Comments

@Sanchuuguizi
Copy link

检查清单

  • 我已阅读 Snap Hutao 文档中的常见问题常见程序异常,我的问题没有在文档中得到解答
  • 我知道文档站的导航栏中有搜索功能,且已经搜索过相关关键词
  • 我的问题不是已完成的问题也不是一个别人已发布的重复的问题

Windows 版本

19045。5011

Snap Hutao 版本

1.11.6.0

设备 ID

C6E70508374F12552A90EAA1F387FD97

问题分类

游戏启动器

发生了什么?

打开胡桃工具箱时出现“遇到了无法恢复的致命错误”Image

你期望发生的行为?

提供解决方法

最后一步

  • 我认为上述的描述已经足以详细,以允许开发人员能复现该问题
@Sanchuuguizi Sanchuuguizi added the priority:none Priority not set label Oct 27, 2024
@dgp-bot
Copy link

dgp-bot bot commented Oct 27, 2024

device_id: C6E70508374F12552A90EAA1F387FD97

Exception Data:
----------------------------------------
System.IO.IOException: The process cannot access the file 'C:\Users\sanchuuguizi\AppData\Local\Packages\60568DGPStudio.SnapHutao_wbnnev551gwxy\LocalCache\ImageCache\FD88C2C997A0FB07EB679E7381288478F44545F4' 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, 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.File.OpenRead(String path)
   at Snap.Hutao.Service.BackgroundImage.BackgroundImageService.GetNextBackgroundImageAsync(BackgroundImage previous, CancellationToken token) in C:\Users\Public\appveyor\Snap.Hutao-9ccf084dxwbrv3ml\src\Snap.Hutao\Snap.Hutao\Service\BackgroundImage\BackgroundImageService.cs:line 49
   at Snap.Hutao.ViewModel.MainViewModel.UpdateBackgroundCoreAsync(Boolean forceRefresh) in C:\Users\Public\appveyor\Snap.Hutao-9ccf084dxwbrv3ml\src\Snap.Hutao\Snap.Hutao\ViewModel\MainViewModel.cs:line 68
   at Snap.Hutao.ViewModel.MainViewModel.UpdateBackgroundAsync() in C:\Users\Public\appveyor\Snap.Hutao-9ccf084dxwbrv3ml\src\Snap.Hutao\Snap.Hutao\ViewModel\MainViewModel.cs:line 57
   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()
Exception Data:
----------------------------------------
System.IO.IOException: The process cannot access the file 'C:\Users\sanchuuguizi\AppData\Local\Packages\60568DGPStudio.SnapHutao_wbnnev551gwxy\LocalCache\ImageCache\00D6DBB43DF7C39AA4D662F8BF0A0AB5E62996ED' 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, 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.File.OpenRead(String path)
   at Snap.Hutao.Service.BackgroundImage.BackgroundImageService.GetNextBackgroundImageAsync(BackgroundImage previous, CancellationToken token) in C:\Users\Public\appveyor\Snap.Hutao-9ccf084dxwbrv3ml\src\Snap.Hutao\Snap.Hutao\Service\BackgroundImage\BackgroundImageService.cs:line 49
   at Snap.Hutao.ViewModel.MainViewModel.UpdateBackgroundCoreAsync(Boolean forceRefresh) in C:\Users\Public\appveyor\Snap.Hutao-9ccf084dxwbrv3ml\src\Snap.Hutao\Snap.Hutao\ViewModel\MainViewModel.cs:line 68
   at Snap.Hutao.ViewModel.MainViewModel.UpdateBackgroundAsync() in C:\Users\Public\appveyor\Snap.Hutao-9ccf084dxwbrv3ml\src\Snap.Hutao\Snap.Hutao\ViewModel\MainViewModel.cs:line 57
   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()
Exception Data:
----------------------------------------
System.IO.IOException: The process cannot access the file 'C:\Users\sanchuuguizi\AppData\Local\Packages\60568DGPStudio.SnapHutao_wbnnev551gwxy\LocalCache\ImageCache\6F188E6BFB3FA34D0087EB061EDBB1363719B103' 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, 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.File.OpenRead(String path)
   at Snap.Hutao.Service.BackgroundImage.BackgroundImageService.GetNextBackgroundImageAsync(BackgroundImage previous, CancellationToken token) in C:\Users\Public\appveyor\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\Service\BackgroundImage\BackgroundImageService.cs:line 49
   at Snap.Hutao.ViewModel.MainViewModel.UpdateBackgroundCoreAsync(Boolean forceRefresh) in C:\Users\Public\appveyor\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\ViewModel\MainViewModel.cs:line 68
   at Snap.Hutao.ViewModel.MainViewModel.UpdateBackgroundAsync() in C:\Users\Public\appveyor\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\ViewModel\MainViewModel.cs:line 57
   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()

@dgp-bot dgp-bot bot added the area-GameLauncher 游戏启动器 label Oct 27, 2024
@Lightczx Lightczx changed the title 打开胡桃工具箱时出现“遇到了无法恢复的致命错误” 背景服务文件占用 Oct 28, 2024
@Lightczx Lightczx added area-LifeCycle App生命周期问题 and removed area-GameLauncher 游戏启动器 labels Oct 28, 2024
@dgp-bot
Copy link

dgp-bot bot commented Oct 28, 2024

a940ae5 已完成此议题

@dgp-bot dgp-bot bot added 已完成 This issue is completed 等待发布 This issue fix is going to be applied in the next release labels Oct 28, 2024
@dgp-bot dgp-bot bot moved this to 完成 in Snap Hutao Development Oct 28, 2024
@dgp-bot dgp-bot bot removed the priority:none Priority not set label Oct 28, 2024
@Sanchuuguizi
Copy link
Author

请问解决办法是什么

@Lightczx
Copy link
Member

一直无法打开么

@Sanchuuguizi
Copy link
Author

一直无法打开么

可以打开,但是最近第一次打开一直会出现这种情况,去任务管理器里把进程杀掉后再启动可以正常打开

@Lightczx
Copy link
Member

不用管

@dgp-bot dgp-bot bot added this to the 1.11.7 milestone Nov 3, 2024
@dgp-bot
Copy link

dgp-bot bot commented Nov 3, 2024

包含解决该问题的程序版本 1.11.7 已发布。

@dgp-bot dgp-bot bot removed the 等待发布 This issue fix is going to be applied in the next release label Nov 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-LifeCycle App生命周期问题 已完成 This issue is completed
Projects
Development

No branches or pull requests

2 participants