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

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

Open
4 tasks done
DeniablePlausibility opened this issue Aug 21, 2024 · 2 comments
Open
4 tasks done
Labels
area-DailyNote 实时便笺 area-Hoyoverse 国际服支持 BUG 非外部问题导致的应用程序异常 need-community-help Need community support to solve priority:none Priority not set

Comments

@DeniablePlausibility
Copy link

Checklist

  • I have read FAQ page and Exception page in Snap Hutao document, and my issue is not answered
  • I and tried search feature in Snap Hutao document site, and no associated article
  • My issue is not a finished issue, and it's not a duplicated issue

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

  • I believe the description above is detail enough to allow developers to reproduce the issue
@DeniablePlausibility DeniablePlausibility added BUG 非外部问题导致的应用程序异常 priority:none Priority not set labels Aug 21, 2024
@dgp-bot
Copy link

dgp-bot bot commented Aug 21, 2024

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()

@dgp-bot dgp-bot bot added the area-DailyNote 实时便笺 label Aug 21, 2024
@Lightczx Lightczx added the area-Hoyoverse 国际服支持 label Aug 22, 2024
@Lightczx Lightczx added the need-community-help Need community support to solve label Sep 9, 2024
@Lightczx
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-DailyNote 实时便笺 area-Hoyoverse 国际服支持 BUG 非外部问题导致的应用程序异常 need-community-help Need community support to solve priority:none Priority not set
Projects
Status: 备忘录
Development

No branches or pull requests

2 participants