DGP-Studio / Snap.Hutao

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

[ENG][Bug]: Realtime Notes refresh error: Return code 10102 #1922

Closed DeniablePlausibility closed 1 month ago

DeniablePlausibility commented 3 months ago

Checklist

Windows Version

19045.4780

Snap Hutao Version

1.11.0.0

Device ID

1A2087096CAD75D88EF9933413F94FA8

Issue Category

Realtime Note

What Happened?

This feature worked previously. After installing the latest version 1.11.0.0 and trying to refresh the Realtime Note, I get the following error notification:

image

I am logged in to Hoyolab in the app with a valid cookie.

What is expected?

The expected outcome is for the Realtime Note to refresh with updated information. Right now it is mostly blank:

image

Last Step

dgp-bot[bot] commented 3 months ago

device_id: 1A2087096CAD75D88EF9933413F94FA8

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-tcflcdmg8p089xaq\src\Snap.Hutao\Snap.Hutao\Service\User\UserCollectionService.cs:line 101
   at Snap.Hutao.Service.DailyNote.DailyNoteService.GetDailyNoteEntryCollectionAsync(Boolean forceRefresh, CancellationToken token) in D:\appveyor\project\Snap.Hutao.Project-tcflcdmg8p089xaq\src\Snap.Hutao\Snap.Hutao\Service\DailyNote\DailyNoteService.cs:line 91
   at Snap.Hutao.ViewModel.DailyNote.DailyNoteViewModelSlim.OpenUIAsync() in D:\appveyor\project\Snap.Hutao.Project-tcflcdmg8p089xaq\src\Snap.Hutao\Snap.Hutao\ViewModel\DailyNote\DailyNoteViewModelSlim.cs:line 40
   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()
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-tqhe3gyf3yfdt2ql\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-tqhe3gyf3yfdt2ql\src\Snap.Hutao\Snap.Hutao\ViewModel\DailyNote\DailyNoteViewModel.cs:line 59
   at Snap.Hutao.ViewModel.Abstraction.ViewModel.OpenUIAsync() in D:\appveyor\project\Snap.Hutao.Project-tqhe3gyf3yfdt2ql\src\Snap.Hutao\Snap.Hutao\ViewModel\Abstraction\ViewModel.cs:line 35
   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()
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-tqhe3gyf3yfdt2ql\src\Snap.Hutao\Snap.Hutao\Service\User\UserCollectionService.cs:line 101
   at Snap.Hutao.Service.DailyNote.DailyNoteService.GetDailyNoteEntryCollectionAsync(Boolean forceRefresh, CancellationToken token) in D:\appveyor\project\Snap.Hutao.Project-tqhe3gyf3yfdt2ql\src\Snap.Hutao\Snap.Hutao\Service\DailyNote\DailyNoteService.cs:line 83
   at Snap.Hutao.ViewModel.DailyNote.DailyNoteViewModelSlim.OpenUIAsync() in D:\appveyor\project\Snap.Hutao.Project-tqhe3gyf3yfdt2ql\src\Snap.Hutao\Snap.Hutao\ViewModel\DailyNote\DailyNoteViewModelSlim.cs:line 35
   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

Currently, all Hoyoverse/HoYoLAB feature support is contributed by the community, and we only provide limited support when some features are not available on the it. If anyone would like to contribute code that fixes these features, a PR to the develop branch is more than welcome.

qhy040404 commented 1 month ago

Open your HoYoLAB app, switch to the last tab below, then click on your game card. There is a setting in the upper right corner of your game card. Enable real-time notes in the settings.

DeniablePlausibility commented 1 month ago

Thank you but I don't use the Hoyolab app.

On Mon, Oct 14, 2024 at 9:39 PM qhy040404 @.***> wrote:

Open your HoYoLAB app, switch to the last tab below, then click on your game card. There is a setting in the upper right corner of your game card. Enable real-time notes in the settings.

— Reply to this email directly, view it on GitHub https://github.com/DGP-Studio/Snap.Hutao/issues/1922#issuecomment-2412641987, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZRT4FXB4EANAAIXSNNGIJDZ3RW4FAVCNFSM6AAAAABM45HPMKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJSGY2DCOJYG4 . You are receiving this because you authored the thread.Message ID: @.***>

qhy040404 commented 1 month ago

https://www.hoyolab.com/setting/privacy image

mengling729 commented 1 month ago

你为什么不使用hoyolab应用程序,是因为你手机是华为nova11se么

DeniablePlausibility commented 1 month ago

I have enabled Real-Time Notes.

[image: image.png] But now I have a different error after logging in on Snap Hutao and clicking "I'm logged in":

[image: image.png]

I have tried quitting Snap Hutao and logging back in. Login is successful but I keep getting this message.

Thank you for trying to help me.

On Thu, Oct 17, 2024 at 11:04 PM qhy040404 @.***> wrote:

https://www.hoyolab.com/setting/privacy image.png (view on web) https://github.com/user-attachments/assets/84bc1c34-d923-4513-84b5-e7410c62215b

— Reply to this email directly, view it on GitHub https://github.com/DGP-Studio/Snap.Hutao/issues/1922#issuecomment-2421183396, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZRT4FRDDTE4ILLHY57WAWDZ4B3FHAVCNFSM6AAAAABM45HPMKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRRGE4DGMZZGY . You are receiving this because you authored the thread.Message ID: @.***>

qhy040404 commented 1 month ago

UPDATE YOUR PROGRAM

DeniablePlausibility commented 1 month ago

我不使用该应用程序,因为我的手机关机时间比开机时间多。

On Thu, Oct 17, 2024 at 11:09 PM mengling729 @.***> wrote:

你为什么不使用hoyolab应用程序,是因为你手机是华为nova11se么

— Reply to this email directly, view it on GitHub https://github.com/DGP-Studio/Snap.Hutao/issues/1922#issuecomment-2421189621, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZRT4FXW3DA5ZSCIJEHO4BTZ4B3VVAVCNFSM6AAAAABM45HPMKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRRGE4DSNRSGE . You are receiving this because you authored the thread.Message ID: @.***>

qhy040404 commented 1 month ago

AND STOP USING YOUR EMAIL TO REPLY. I CANNOT SEE THE IMAGE

DeniablePlausibility commented 1 month ago

I just downloaded it, it should be the newest version.

[image: image.png]

On Thu, Oct 17, 2024 at 11:15 PM qhy040404 @.***> wrote:

UPDATE YOUR PROGRAM

— Reply to this email directly, view it on GitHub https://github.com/DGP-Studio/Snap.Hutao/issues/1922#issuecomment-2421206982, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZRT4FU5XFJNT37FEA35LXDZ4B4NZAVCNFSM6AAAAABM45HPMKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRRGIYDMOJYGI . You are receiving this because you authored the thread.Message ID: @.***>

qhy040404 commented 1 month ago

stop use your f**king email to reply. I can't see your image and if you use email again i will lock the conversation

DeniablePlausibility commented 1 month ago

Sorry, logged in now.

Snap Hutao version:
image

Error after logging in to Hoyolab from Snap Hutao: image

DeniablePlausibility commented 1 month ago

Really strange, just noticed that Real-Time Notes is refreshing despite the error.

image

The web login section still prompts for me to log in.

Lightczx commented 1 month ago

oversea login issue #1966

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