DGP-Studio / Snap.Hutao

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

[Bug]: 背景启动器壁纸炸了 #1908

Closed twjmy closed 2 months ago

twjmy commented 3 months ago

检查清单

Windows 版本

22631.4037

Snap Hutao 版本

1.11.0.0

设备 ID

4B6379FDA25D058C3FA50872BAB7D316

问题分类

用户界面

发生了什么?

背景选取官方启动器壁纸无法正常显示并且不断弹出404 image

你期望发生的行为?

正常显示启动器壁纸

最后一步

dgp-bot[bot] commented 3 months ago

device_id: 4B6379FDA25D058C3FA50872BAB7D316

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)
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-rykohrnoth8m6jfx\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-rykohrnoth8m6jfx\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-rykohrnoth8m6jfx\src\Snap.Hutao\Snap.Hutao\UI\Windowing\XamlWindowController.cs:line 153
   at Snap.Hutao.UI.Windowing.XamlWindowController.OnWindowClosed(Object sender, WindowEventArgs args) in D:\appveyor\project\Snap.Hutao.Project-rykohrnoth8m6jfx\src\Snap.Hutao\Snap.Hutao\UI\Windowing\XamlWindowController.cs:line 116
   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.InvalidOperationException: Operations that change non-concurrent collections must have exclusive access. A concurrent update was performed on this collection and corrupted its state. The collection's state is no longer correct.
   at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
   at System.Collections.Generic.Dictionary`2.set_Item(TKey key, TValue value)
   at Snap.Hutao.Service.User.UserCollectionService.GetUserAndUidCollectionAsync() in D:\appveyor\project\Snap.Hutao.Project-c8o6jckupddiwjso\src\Snap.Hutao\Snap.Hutao\Service\User\UserCollectionService.cs:line 101
   at Snap.Hutao.ViewModel.DailyNote.DailyNoteViewModel.InitializeUIAsync() in D:\appveyor\project\Snap.Hutao.Project-c8o6jckupddiwjso\src\Snap.Hutao\Snap.Hutao\ViewModel\DailyNote\DailyNoteViewModel.cs:line 68
   at Snap.Hutao.ViewModel.Abstraction.ViewModel.OpenUIAsync() in D:\appveyor\project\Snap.Hutao.Project-c8o6jckupddiwjso\src\Snap.Hutao\Snap.Hutao\ViewModel\Abstraction\ViewModel.cs:line 38
   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()
Masterain98 commented 3 months ago

@Lightczx API 接口少了一个 -

原神启动器背景图的接口是:https://api.snapgenshin.com/wallpaper/genshin-launcher

HYP背景图的接口是:https://api.snapgenshin.com/wallpaper/hoyoplay

Lightczx commented 3 months ago

临时方案:https://github.com/DGP-Studio/Snap.Hutao/issues/1924#issuecomment-2305237721 不使用原神启动器壁纸即可

SSB-ARFCN commented 3 months ago

螢幕擷取畫面 (300) bing正常使用中 可以暫時用這個

dgp-bot[bot] commented 2 months ago

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

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.