DGP-Studio / Snap.Hutao

实用的开源多功能原神工具箱 🧰 / Multifunctional Open-source Genshin Impact Toolkit 🧰
https://hut.ao
MIT License
4.1k stars 192 forks source link

无法启动游戏 #1689

Closed jhfbjsahb closed 5 months ago

jhfbjsahb commented 5 months ago

检查清单

Windows 版本

22631.3593

Snap Hutao 版本

1.10.2.0

设备 ID

7B01AFB63FDCC7106543CDD8F5CED386

问题分类

游戏启动器

发生了什么?

ad5fce2de6abf2db5fb671bff9c084f 显示无法将内存模块复制到指定位置

你期望发生的行为?

No response

最后一步

dgp-bot[bot] commented 5 months ago

device_id: 7B01AFB63FDCC7106543CDD8F5CED386

Exception Data:
----------------------------------------
System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
   at Snap.Hutao.Core.Windowing.NotifyIcon.NotifyIconMethods.GetRect(Guid id, HWND hWND) in D:\appveyor\project\Snap.Hutao.Project-tcflcdmg8p089xaq\src\Snap.Hutao\Snap.Hutao\Core\Windowing\NotifyIcon\NotifyIconMethods.cs:line 70
   at Snap.Hutao.Core.Windowing.NotifyIcon.NotifyIconController.GetRect() in D:\appveyor\project\Snap.Hutao.Project-tcflcdmg8p089xaq\src\Snap.Hutao\Snap.Hutao\Core\Windowing\NotifyIcon\NotifyIconController.cs:line 54
   at Snap.Hutao.Core.Windowing.XamlWindowController.OnWindowClosed(Object sender, WindowEventArgs args) in D:\appveyor\project\Snap.Hutao.Project-tcflcdmg8p089xaq\src\Snap.Hutao\Snap.Hutao\Core\Windowing\XamlWindowController.cs:line 107
   at WinRT._EventSource_global__Windows_Foundation_TypedEventHandler_object__global__Microsoft_UI_Xaml_WindowEventArgs_.EventState.<GetEventInvoke>b__1_0(Object sender, WindowEventArgs args)
   at ABI.Windows.Foundation.TypedEventHandler`2.Do_Abi_Invoke[TSenderAbi,TResultAbi](Void* thisPtr, TSenderAbi sender, TResultAbi args)
Exception Data:
----------------------------------------
System.Runtime.InteropServices.COMException (0x80004005): 另一个程序正在使用此文件,进程无法访问。

   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
   at Snap.Hutao.Core.Windowing.NotifyIcon.NotifyIconMethods.GetRect(Guid id, HWND hWND) in D:\appveyor\project\Snap.Hutao.Project-tcflcdmg8p089xaq\src\Snap.Hutao\Snap.Hutao\Core\Windowing\NotifyIcon\NotifyIconMethods.cs:line 70
   at Snap.Hutao.Core.Windowing.NotifyIcon.NotifyIconController.GetRect() in D:\appveyor\project\Snap.Hutao.Project-tcflcdmg8p089xaq\src\Snap.Hutao\Snap.Hutao\Core\Windowing\NotifyIcon\NotifyIconController.cs:line 54
   at Snap.Hutao.Core.Windowing.XamlWindowController.OnWindowClosed(Object sender, WindowEventArgs args) in D:\appveyor\project\Snap.Hutao.Project-tcflcdmg8p089xaq\src\Snap.Hutao\Snap.Hutao\Core\Windowing\XamlWindowController.cs:line 107
   at WinRT._EventSource_global__Windows_Foundation_TypedEventHandler_object__global__Microsoft_UI_Xaml_WindowEventArgs_.EventState.<GetEventInvoke>b__1_0(Object sender, WindowEventArgs args)
   at ABI.Windows.Foundation.TypedEventHandler`2.Do_Abi_Invoke[TSenderAbi,TResultAbi](Void* thisPtr, TSenderAbi sender, TResultAbi args)
Exception Data:
----------------------------------------
System.IO.IOException: The process cannot access the file 'C:\Users\HASEE\AppData\Local\Packages\60568DGPStudio.SnapHutao_wbnnev551gwxy\LocalCache\ImageCache\48B80338BDDA09CDE392067227CA058BBC7B17D1' 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.Create(String path)
   at Snap.Hutao.Core.Caching.ImageCache.DownloadFileAsync(Uri uri, String baseFile) in D:\appveyor\project\Snap.Hutao.Project-tcflcdmg8p089xaq\src\Snap.Hutao\Snap.Hutao\Core\Caching\ImageCache.cs:line 210
   at Snap.Hutao.Core.Caching.ImageCache.GetFileFromCacheAsync(Uri uri) in D:\appveyor\project\Snap.Hutao.Project-tcflcdmg8p089xaq\src\Snap.Hutao\Snap.Hutao\Core\Caching\ImageCache.cs:line 115
   at Snap.Hutao.Service.BackgroundImage.BackgroundImageService.<SkipOrInitBackgroundAsync>g__SetCurrentBackgroundPathSetAsync|8_0(Func`3 responseFactory, CancellationToken token) in D:\appveyor\project\Snap.Hutao.Project-tcflcdmg8p089xaq\src\Snap.Hutao\Snap.Hutao\Service\BackgroundImage\BackgroundImageService.cs:line 131
   at Snap.Hutao.Service.BackgroundImage.BackgroundImageService.SkipOrInitBackgroundAsync(CancellationToken token) in D:\appveyor\project\Snap.Hutao.Project-tcflcdmg8p089xaq\src\Snap.Hutao\Snap.Hutao\Service\BackgroundImage\BackgroundImageService.cs:line 106
   at Snap.Hutao.Service.BackgroundImage.BackgroundImageService.GetNextBackgroundImageAsync(BackgroundImage previous, CancellationToken token) in D:\appveyor\project\Snap.Hutao.Project-tcflcdmg8p089xaq\src\Snap.Hutao\Snap.Hutao\Service\BackgroundImage\BackgroundImageService.cs:line 33
   at Snap.Hutao.ViewModel.MainViewModel.UpdateBackgroundAsync() in D:\appveyor\project\Snap.Hutao.Project-tcflcdmg8p089xaq\src\Snap.Hutao\Snap.Hutao\ViewModel\MainViewModel.cs:line 49
   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()
Lightczx commented 5 months ago

1675

github-actions[bot] commented 5 months ago

Probable Similar Topics

  1. 100% #1685
  2. 100% #1684
  3. 100% #843
  4. 100% #423
  5. 67% #1598
  6. 67% #606
  7. 60% #493
  8. 56% #1348
  9. 56% #957
  10. 52% #1083
  11. 50% #1165
github-actions[bot] commented 4 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related topic.