DGP-Studio / Snap.Hutao

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

[Bug]: 遇到了无法恢复的致命错误 #2200

Closed DMZ20010102 closed 1 hour ago

DMZ20010102 commented 2 hours ago

检查清单

Windows 版本

26100.2314

Snap Hutao 版本

1.12.2.0

设备 ID

0B949BB4E2921772566F2177F0DF5EE9

问题分类

安装和环境

发生了什么?

打开胡桃时可以正常启动, 进入程序后发现各种模块不加载 Image 退出胡桃后发现遇到无法恢复的致命错误 Image 下方是Snap.Hutao Error Log.txt以及报错信息 Snap.Hutao Error Log.txt Snap Hutao 1.12.2.0 Windows 10.0.26100.2314 System Architecture: X64 Process Architecture: X64 Framework: .NET 9.0.0

Exception Data:

System.Runtime.InteropServices.COMException (0x80070582): 类已存在。 (0x80070582) at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode) at Snap.Hutao.UI.Shell.NotifyIconMessageWindow..ctor() in C:\Users\Public\appveyor\Snap.Hutao-b0gle226p0dq575m\src\Snap.Hutao\Snap.Hutao\UI\Shell\NotifyIconMessageWindow.cs:line 46 at Snap.Hutao.UI.Shell.NotifyIconController..ctor(IServiceProvider serviceProvider) in C:\Users\Public\appveyor\Snap.Hutao-b0gle226p0dq575m\src\Snap.Hutao\Snap.Hutao\UI\Shell\NotifyIconController.cs:line 38 at InvokeStub_NotifyIconController..ctor(Object, Span1) at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSite(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope) at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier) at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func`2 valueFactory) at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope) at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType) at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType) at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider) at Snap.Hutao.UI.Windowing.XamlWindowController.IsNotifyIconVisible() in C:\Users\Public\appveyor\Snap.Hutao-b0gle226p0dq575m\src\Snap.Hutao\Snap.Hutao\UI\Windowing\XamlWindowController.cs:line 159 at Snap.Hutao.UI.Windowing.XamlWindowController.OnWindowClosed(Object sender, WindowEventArgs args) in C:\Users\Public\appveyor\Snap.Hutao-b0gle226p0dq575m\src\Snap.Hutao\Snap.Hutao\UI\Windowing\XamlWindowController.cs:line 124 at WinRT._EventSource_globalWindows_Foundation_TypedEventHandler_objectglobalMicrosoft_UI_XamlWindowEventArgs.EventState.b__1_0(Object sender, WindowEventArgs args) at WinRT.GenericTypeInstantiations.Windows_Foundation_TypedEventHandler_2_objectMicrosoft_UI_Xaml_WindowEventArgs.Do_Abi_Invoke(IntPtr thisPtr, IntPtr sender, IntPtr args)

你期望发生的行为?

No response

最后一步

dgp-bot[bot] commented 2 hours ago

device_id: 0B949BB4E2921772566F2177F0DF5EE9

Exception Data:
----------------------------------------
System.Runtime.InteropServices.COMException (0x80070582): 类已存在。 (0x80070582)
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
   at Snap.Hutao.UI.Shell.NotifyIconMessageWindow..ctor() in C:\Users\Public\appveyor\Snap.Hutao-b0gle226p0dq575m\src\Snap.Hutao\Snap.Hutao\UI\Shell\NotifyIconMessageWindow.cs:line 46
   at Snap.Hutao.UI.Shell.NotifyIconController..ctor(IServiceProvider serviceProvider) in C:\Users\Public\appveyor\Snap.Hutao-b0gle226p0dq575m\src\Snap.Hutao\Snap.Hutao\UI\Shell\NotifyIconController.cs:line 38
   at InvokeStub_NotifyIconController..ctor(Object, Span`1)
   at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
   at Snap.Hutao.UI.Windowing.XamlWindowController.IsNotifyIconVisible() in C:\Users\Public\appveyor\Snap.Hutao-b0gle226p0dq575m\src\Snap.Hutao\Snap.Hutao\UI\Windowing\XamlWindowController.cs:line 159
   at Snap.Hutao.UI.Windowing.XamlWindowController.OnWindowClosed(Object sender, WindowEventArgs args) in C:\Users\Public\appveyor\Snap.Hutao-b0gle226p0dq575m\src\Snap.Hutao\Snap.Hutao\UI\Windowing\XamlWindowController.cs:line 124
   at WinRT._EventSource_global__Windows_Foundation_TypedEventHandler_object__global__Microsoft_UI_Xaml_WindowEventArgs_.EventState.<GetEventInvoke>b__1_0(Object sender, WindowEventArgs args)
   at WinRT.GenericTypeInstantiations.Windows_Foundation_TypedEventHandler_2_object__Microsoft_UI_Xaml_WindowEventArgs.Do_Abi_Invoke(IntPtr thisPtr, IntPtr sender, IntPtr args)
Exception Data:
----------------------------------------
System.Runtime.InteropServices.COMException (0x80070582): 类已存在。 (0x80070582)
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
   at Snap.Hutao.UI.Shell.NotifyIconMessageWindow..ctor() in C:\Users\Public\appveyor\Snap.Hutao-b0gle226p0dq575m\src\Snap.Hutao\Snap.Hutao\UI\Shell\NotifyIconMessageWindow.cs:line 46
   at Snap.Hutao.UI.Shell.NotifyIconController..ctor(IServiceProvider serviceProvider) in C:\Users\Public\appveyor\Snap.Hutao-b0gle226p0dq575m\src\Snap.Hutao\Snap.Hutao\UI\Shell\NotifyIconController.cs:line 38
   at InvokeStub_NotifyIconController..ctor(Object, Span`1)
   at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
   at Snap.Hutao.UI.Windowing.XamlWindowController.IsNotifyIconVisible() in C:\Users\Public\appveyor\Snap.Hutao-b0gle226p0dq575m\src\Snap.Hutao\Snap.Hutao\UI\Windowing\XamlWindowController.cs:line 159
   at Snap.Hutao.UI.Windowing.XamlWindowController.OnWindowClosed(Object sender, WindowEventArgs args) in C:\Users\Public\appveyor\Snap.Hutao-b0gle226p0dq575m\src\Snap.Hutao\Snap.Hutao\UI\Windowing\XamlWindowController.cs:line 124
   at WinRT._EventSource_global__Windows_Foundation_TypedEventHandler_object__global__Microsoft_UI_Xaml_WindowEventArgs_.EventState.<GetEventInvoke>b__1_0(Object sender, WindowEventArgs args)
   at WinRT.GenericTypeInstantiations.Windows_Foundation_TypedEventHandler_2_object__Microsoft_UI_Xaml_WindowEventArgs.Do_Abi_Invoke(IntPtr thisPtr, IntPtr sender, IntPtr args)
Exception Data:
----------------------------------------
System.Runtime.InteropServices.COMException (0x80070582): 类已存在。 (0x80070582)
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
   at Snap.Hutao.UI.Shell.NotifyIconMessageWindow..ctor() in C:\Users\Public\appveyor\Snap.Hutao-b0gle226p0dq575m\src\Snap.Hutao\Snap.Hutao\UI\Shell\NotifyIconMessageWindow.cs:line 46
   at Snap.Hutao.UI.Shell.NotifyIconController..ctor(IServiceProvider serviceProvider) in C:\Users\Public\appveyor\Snap.Hutao-b0gle226p0dq575m\src\Snap.Hutao\Snap.Hutao\UI\Shell\NotifyIconController.cs:line 38
   at InvokeStub_NotifyIconController..ctor(Object, Span`1)
   at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
   at Snap.Hutao.UI.Windowing.XamlWindowController.IsNotifyIconVisible() in C:\Users\Public\appveyor\Snap.Hutao-b0gle226p0dq575m\src\Snap.Hutao\Snap.Hutao\UI\Windowing\XamlWindowController.cs:line 159
   at Snap.Hutao.UI.Windowing.XamlWindowController.OnWindowClosed(Object sender, WindowEventArgs args) in C:\Users\Public\appveyor\Snap.Hutao-b0gle226p0dq575m\src\Snap.Hutao\Snap.Hutao\UI\Windowing\XamlWindowController.cs:line 124
   at WinRT._EventSource_global__Windows_Foundation_TypedEventHandler_object__global__Microsoft_UI_Xaml_WindowEventArgs_.EventState.<GetEventInvoke>b__1_0(Object sender, WindowEventArgs args)
   at WinRT.GenericTypeInstantiations.Windows_Foundation_TypedEventHandler_2_object__Microsoft_UI_Xaml_WindowEventArgs.Do_Abi_Invoke(IntPtr thisPtr, IntPtr sender, IntPtr args)
github-actions[bot] commented 2 hours ago

Probable Similar Topics

  1. 100% #2174
  2. 100% #2153
  3. 100% #2042
  4. 92% #2106
  5. 70% #2077
  6. 59% #2094
  7. 59% #2093
  8. 57% #2167
Lightczx commented 1 hour ago

2198