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]: 账号切换下拉菜单显示空白 #924

Closed
5 tasks
parad15o opened this issue Sep 12, 2023 · 6 comments
Closed
5 tasks

[Bug]: 账号切换下拉菜单显示空白 #924

parad15o opened this issue Sep 12, 2023 · 6 comments
Labels
area-GameLauncher 游戏启动器 BUG 非外部问题导致的应用程序异常 已完成 This issue is completed

Comments

@parad15o
Copy link

parad15o commented Sep 12, 2023

检查清单

  • 我并未完整阅读胡桃工具箱文档
  • 我不知道文档站的导航栏中有搜索功能,也没有搜索过相关关键词
  • 我使用的操作系统是不受支持的版本
  • 我没有通过搜索功能确认其他人提出过相同或类似的问题
  • 我不明白上述的勾选项是一个有助于快速排查问题的检查清单,而是随手确认的选项

Windows 版本

22621.2134

Snap Hutao 版本

1.7.4.0

设备 ID

A4385C6BFAD49E4ED618089DB0B2ADC3

问题分类

游戏启动器

发生了什么?

你好,我的胡桃在更新1.7.4.0后 主页——启动游戏——账号切换下拉菜单显示空白,但是在 [启动游戏] 页面有我需要切换的账号
998b57c7d4afa332a6597da1e87eb1a5

你期望发生的行为?

No response

@parad15o parad15o added the BUG 非外部问题导致的应用程序异常 label Sep 12, 2023
@dgp-bot
Copy link

dgp-bot bot commented Sep 12, 2023

@parad15o 请通过编辑功能设置一个合适的标题

@dgp-bot dgp-bot bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 12, 2023
@dgp-bot dgp-bot bot added the 需要更多信息 需要提交更多信息 label Sep 12, 2023
@dgp-bot
Copy link

dgp-bot bot commented Sep 12, 2023

device_id: A4385C6BFAD49E4ED618089DB0B2ADC3

Exception Data:
----------------------------------------
Microsoft.EntityFrameworkCore.DbUpdateConcurrencyException: The database operation was expected to affect 1 row(s), but actually affected 0 row(s); data may have been modified or deleted since entities were loaded. See http://go.microsoft.com/fwlink/?LinkId=527962 for information on understanding and handling optimistic concurrency exceptions.
   at Microsoft.EntityFrameworkCore.Update.AffectedCountModificationCommandBatch.ThrowAggregateUpdateConcurrencyExceptionAsync(RelationalDataReader reader, Int32 commandIndex, Int32 expectedRowsAffected, Int32 rowsAffected, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Update.AffectedCountModificationCommandBatch.ConsumeResultSetWithRowsAffectedOnlyAsync(Int32 commandIndex, RelationalDataReader reader, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Update.AffectedCountModificationCommandBatch.ConsumeAsync(RelationalDataReader reader, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
   at Snap.Hutao.Core.Database.DbSetExtension.SaveChangesAndClearChangeTrackerAsync[TEntity](DbSet`1 dbSet) in D:\Develop\Projects\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\Core\Database\DbSetExtension.cs:line 143
   at Snap.Hutao.Service.DailyNote.DailyNoteDbService.UpdateDailyNoteEntryAsync(DailyNoteEntry entry) in D:\Develop\Projects\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\Service\DailyNote\DailyNoteDbService.cs:line 49
   at Snap.Hutao.Service.DailyNote.DailyNoteService.RefreshDailyNotesCoreAsync(Boolean forceRefresh) in D:\Develop\Projects\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\Service\DailyNote\DailyNoteService.cs:line 146
   at Snap.Hutao.ViewModel.DailyNote.DailyNoteViewModel.RefreshAsync() in D:\Develop\Projects\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\ViewModel\DailyNote\DailyNoteViewModel.cs:line 108
   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.Collections.Generic.KeyNotFoundException: The given key 'Snap.Hutao.Model.Primitive.EquipAffixId' was not present in the dictionary.
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at Snap.Hutao.ViewModel.Complex.ReliquarySetView..ctor(ItemRate`2 reliquarySetRate, Dictionary`2 idReliquarySetMap) in D:\Develop\Projects\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\ViewModel\Complex\ReliquarySetView.cs:line 33
   at Snap.Hutao.Service.Hutao.HutaoCache.<>c__DisplayClass35_0.<InitializeForWikiAvatarViewModelAsync>b__3(ItemRate`2 r) in D:\Develop\Projects\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\Service\Hutao\HutaoCache.cs:line 111
   at System.Linq.Enumerable.SelectListIterator`2.ToList()
   at Snap.Hutao.Service.Hutao.HutaoCache.<>c__DisplayClass35_0.<InitializeForWikiAvatarViewModelAsync>b__0(AvatarCollocation co) in D:\Develop\Projects\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\Service\Hutao\HutaoCache.cs:line 106
   at System.Linq.Enumerable.SelectListIterator`2.ToList()
   at Snap.Hutao.Service.Hutao.HutaoCache.InitializeForWikiAvatarViewModelAsync() in D:\Develop\Projects\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\Service\Hutao\HutaoCache.cs:line 106
   at Snap.Hutao.ViewModel.Wiki.WikiAvatarViewModel.CombineComplexDataAsync(List`1 avatars, Dictionary`2 idMaterialMap) in D:\Develop\Projects\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\ViewModel\Wiki\WikiAvatarViewModel.cs:line 106
   at Snap.Hutao.ViewModel.Wiki.WikiAvatarViewModel.OpenUIAsync() in D:\Develop\Projects\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\ViewModel\Wiki\WikiAvatarViewModel.cs:line 96
   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 area-GameLauncher 游戏启动器 Outdated and removed Outdated labels Sep 12, 2023
@parad15o parad15o changed the title [Bug]: 在这里填写一个合适的标题 [Bug]: 账号切换下拉菜单显示空白 Sep 12, 2023
@dgp-bot dgp-bot bot reopened this Sep 12, 2023
@dgp-bot
Copy link

dgp-bot bot commented Sep 12, 2023

标题已经修改

@dgp-bot dgp-bot bot removed the 需要更多信息 需要提交更多信息 label Sep 12, 2023
@DGP-Studio DGP-Studio deleted a comment from dgp-bot bot Sep 12, 2023
Lightczx added a commit that referenced this issue Sep 13, 2023
@dgp-bot
Copy link

dgp-bot bot commented Sep 13, 2023

706f894 已修复此问题

@dgp-bot dgp-bot bot added 已完成 This issue is completed 等待发布 This issue fix is going to be applied in the next release labels Sep 13, 2023
@dgp-bot
Copy link

dgp-bot bot commented Sep 21, 2023

包含解决该问题的程序版本 1.7.5 已发布,点击查看

@dgp-bot dgp-bot bot removed the 等待发布 This issue fix is going to be applied in the next release label Sep 21, 2023
Copy link

github-actions bot commented Feb 1, 2024

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 Feb 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-GameLauncher 游戏启动器 BUG 非外部问题导致的应用程序异常 已完成 This issue is completed
Projects
Archived in project
Development

No branches or pull requests

2 participants