DGP-Studio / Snap.Hutao

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

[Bug]: 无法切换国际服,报错JsonException #1851

Closed happy233333 closed 3 weeks ago

happy233333 commented 1 month ago

检查清单

Windows 版本

22631.3880

Snap Hutao 版本

1.10.7.0

设备 ID

42B481CC8D1A5EFE024CBFC737A3CFEA

问题分类

游戏启动器

发生了什么?

在一次国际服到国服的切换过程中,我关闭了clash,之后就无法从国服切换至国际服并提示JsonException QQ_1721757853978 QQ_1721757930791

你期望发生的行为?

正常转换国际服与国服

最后一步

dgp-bot[bot] commented 1 month ago

device_id: 42B481CC8D1A5EFE024CBFC737A3CFEA

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.UI.Shell.NotifyIconMethods.GetRect(Guid id, HWND hWND) in D:\appveyor\project\Snap.Hutao.Project-otfdyh5oc289vmdj\src\Snap.Hutao\Snap.Hutao\UI\Shell\NotifyIconMethods.cs:line 68
   at Snap.Hutao.UI.Shell.NotifyIconController.GetRect() in D:\appveyor\project\Snap.Hutao.Project-otfdyh5oc289vmdj\src\Snap.Hutao\Snap.Hutao\UI\Shell\NotifyIconController.cs:line 58
   at Snap.Hutao.UI.Windowing.XamlWindowController.IsNotifyIconVisible() in D:\appveyor\project\Snap.Hutao.Project-otfdyh5oc289vmdj\src\Snap.Hutao\Snap.Hutao\UI\Windowing\XamlWindowController.cs:line 152
   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 115
   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): 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.UI.Shell.NotifyIconMethods.GetRect(Guid id, HWND hWND) in D:\appveyor\project\Snap.Hutao.Project-otfdyh5oc289vmdj\src\Snap.Hutao\Snap.Hutao\UI\Shell\NotifyIconMethods.cs:line 68
   at Snap.Hutao.UI.Shell.NotifyIconController.GetRect() in D:\appveyor\project\Snap.Hutao.Project-otfdyh5oc289vmdj\src\Snap.Hutao\Snap.Hutao\UI\Shell\NotifyIconController.cs:line 58
   at Snap.Hutao.UI.Windowing.XamlWindowController.IsNotifyIconVisible() in D:\appveyor\project\Snap.Hutao.Project-otfdyh5oc289vmdj\src\Snap.Hutao\Snap.Hutao\UI\Windowing\XamlWindowController.cs:line 152
   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 115
   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): 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.UI.Shell.NotifyIconMethods.GetRect(Guid id, HWND hWND) in D:\appveyor\project\Snap.Hutao.Project-ojn2q1oprwspc52p\src\Snap.Hutao\Snap.Hutao\UI\Shell\NotifyIconMethods.cs:line 68
   at Snap.Hutao.UI.Shell.NotifyIconController.GetRect() in D:\appveyor\project\Snap.Hutao.Project-ojn2q1oprwspc52p\src\Snap.Hutao\Snap.Hutao\UI\Shell\NotifyIconController.cs:line 58
   at Snap.Hutao.UI.Windowing.XamlWindowController.IsNotifyIconVisible() in D:\appveyor\project\Snap.Hutao.Project-ojn2q1oprwspc52p\src\Snap.Hutao\Snap.Hutao\UI\Windowing\XamlWindowController.cs:line 152
   at Snap.Hutao.UI.Windowing.XamlWindowController.OnWindowClosed(Object sender, WindowEventArgs args) in D:\appveyor\project\Snap.Hutao.Project-ojn2q1oprwspc52p\src\Snap.Hutao\Snap.Hutao\UI\Windowing\XamlWindowController.cs:line 115
   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)
dgp-bot[bot] commented 1 month ago

98278d6b4c0493fdd9547ee7e2a8531623fd7bfc 已修复此问题

dgp-bot[bot] commented 3 weeks ago

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