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]: 国服与国际服切换后解锁帧率占用UnityPlayer导致无法进行下一次转换 #1703

Closed
4 tasks done
Squarelan opened this issue Jun 5, 2024 · 5 comments
Labels
area-GameLauncher 游戏启动器 已完成 This issue is completed
Milestone

Comments

@Squarelan
Copy link

检查清单

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

Windows 版本

22635.3646

Snap Hutao 版本

1.10.3

设备 ID

07DE89E3C778DC29C6E1B0A8A77E9B0A

问题分类

游戏启动器

发生了什么?

已发现问题是国服与国际服切换时并不会结束对UnityPlayer.dll占用导致切换失败,然后导致游戏文件损坏。
image

你期望发生的行为?

No response

最后一步

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

dgp-bot bot commented Jun 5, 2024

device_id: 07DE89E3C778DC29C6E1B0A8A77E9B0A

Exception Data:
----------------------------------------
System.TypeInitializationException: The type initializer for '_IToastNotificationFactory' threw an exception.
 ---> System.TypeInitializationException: The type initializer for 'WinRT.ActivationFactory`1' threw an exception.
 ---> System.Runtime.InteropServices.COMException (0x8001010D): ClassFactory 无法供应请求的类

   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
   at WinRT.BaseActivationFactory..ctor(String typeNamespace, String typeFullName)
   at WinRT.ActivationFactory`1..ctor()
   at WinRT.ActivationFactory`1..cctor()
   --- End of inner exception stack trace ---
   at WinRT.ActivationFactory`1.As(Guid iid)
   at Windows.UI.Notifications.ToastNotification._IToastNotificationFactory..ctor()
   at Windows.UI.Notifications.ToastNotification._IToastNotificationFactory..cctor()
   --- End of inner exception stack trace ---
   at Windows.UI.Notifications.ToastNotification._IToastNotificationFactory.get_Instance()
   at Windows.UI.Notifications.ToastNotification..ctor(XmlDocument content)
   at CommunityToolkit.WinUI.Notifications.ToastContentBuilder.Show(CustomizeToast customize)
   at CommunityToolkit.WinUI.Notifications.ToastContentBuilder.Show()
   at Snap.Hutao.Core.Windowing.XamlWindowController.OnWindowClosed(Object sender, WindowEventArgs args) in C:\actions-runner\_work\Snap.Hutao\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\Core\Windowing\XamlWindowController.cs:line 109
   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.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)

@dgp-bot dgp-bot bot added the area-GameLauncher 游戏启动器 label Jun 5, 2024
@Squarelan
Copy link
Author

补充:将胡桃工具箱彻底关闭后再切换服务器正常,现在就是每次切换服务器都得彻底退出胡桃工具箱再重新打开。

@Lightczx
Copy link
Member

Lightczx commented Jun 6, 2024

fixed by 82e6b62

@Lightczx Lightczx added 已完成 This issue is completed 等待发布 This issue fix is going to be applied in the next release and removed priority:none Priority not set labels Jun 6, 2024
@Lightczx Lightczx changed the title [Bug]: 国服与国际服切换失败导致游戏文件损坏 [Bug]: 国服与国际服切换后解锁帧率占用UnityPlayer导致无法进行下一次转换 Jun 11, 2024
@dgp-bot dgp-bot bot added this to the 1.10.4 milestone Jun 19, 2024
@dgp-bot
Copy link

dgp-bot bot commented Jun 19, 2024

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

@dgp-bot dgp-bot bot removed the 等待发布 This issue fix is going to be applied in the next release label Jun 19, 2024
@dgp-bot dgp-bot bot closed this as completed Jun 19, 2024
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-GameLauncher 游戏启动器 已完成 This issue is completed
Projects
Archived in project
Development

No branches or pull requests

2 participants