DGP-Studio / Snap.Hutao

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

[Bug]: 下载游戏时CPU异常高负载 #1964

Closed zlww2n1s1s closed 2 months ago

zlww2n1s1s commented 2 months ago

检查清单

Windows 版本

22631.4112

Snap Hutao 版本

1.11.1.0

设备 ID

C98237E35B7AAA797557D28D6E460790

问题分类

游戏启动器

发生了什么?

使用胡桃下载bilibili渠道服,汉语配音版时,cpu会瞬间负载拉满到100%,同时下载至5%~15%间下载会卡死,ETA显示为--:--:--。

你期望发生的行为?

下载进度不会异常终止,cpu占用正常

最后一步

dgp-bot[bot] commented 2 months ago

device_id: C98237E35B7AAA797557D28D6E460790

Exception Data:
[string]:Description:因为应用程序正在发送一个输入同步呼叫,所以无法执行传出的呼叫。

[string]:RestrictedDescription:因为应用程序正在发送一个输入同步呼叫,所以无法执行传出的呼叫。

[string]:RestrictedErrorReference:
[string]:RestrictedCapabilitySid:
[WinRT.ExceptionHelpers+__RestrictedErrorObject]:__RestrictedErrorObjectReference:WinRT.ExceptionHelpers+__RestrictedErrorObject
[bool]:__HasRestrictedLanguageErrorObject:False
----------------------------------------
System.Runtime.InteropServices.COMException (0x8001010D): 因为应用程序正在发送一个输入同步呼叫,所以无法执行传出的呼叫。

因为应用程序正在发送一个输入同步呼叫,所以无法执行传出的呼叫。

   at WinRT.ExceptionHelpers.<ThrowExceptionForHR>g__Throw|39_0(Int32 hr)
   at ABI.Microsoft.Windows.AppNotifications.IAppNotificationManagerMethods.Show(IObjectReference _obj, AppNotification notification)
   at Microsoft.Windows.AppNotifications.AppNotificationManager.Show(AppNotification notification)
   at Snap.Hutao.Extension.AppNotificationBuilderExtension.Show(AppNotificationBuilder builder, AppNotificationManager manager) in D:\appveyor\project\Snap.Hutao.Project-otfdyh5oc289vmdj\src\Snap.Hutao\Snap.Hutao\Extension\AppNotificationBuilderExtension.cs:line 18
   at Snap.Hutao.UI.Windowing.XamlWindowController.OnWindowClosed(Object sender, WindowEventArgs args) in D:\appveyor\project\Snap.Hutao.Project-otfdyh5oc289vmdj\src\Snap.Hutao\Snap.Hutao\UI\Windowing\XamlWindowController.cs:line 117
   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.DirectoryNotFoundException: Could not find a part of the path 'E:\Genshin Impact\Genshin Impact Game\YuanShen_Data\Persistent\ScriptVersion'.
   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.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize)
   at System.IO.File.AsyncStreamReader(String path, Encoding encoding)
   at System.IO.File.InternalReadAllTextAsync(String path, Encoding encoding, CancellationToken cancellationToken)
   at Snap.Hutao.ViewModel.Game.LaunchGameShared.HandleConfigurationFileNotFoundAsync() in D:\appveyor\project\Snap.Hutao.Project-otfdyh5oc289vmdj\src\Snap.Hutao\Snap.Hutao\ViewModel\Game\LaunchGameShared.cs:line 71
   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 2 months ago

非常好代码,使我的 CPU 旋转

dgp-bot[bot] commented 2 months ago

395ddc771fad16c2ee7395f173b195c1be0c5f0b 已修复此问题

dgp-bot[bot] commented 2 months ago

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

github-actions[bot] commented 1 month 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.