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]: 养成计划“添加新资料”后显示异常 #1099

Closed
4 tasks done
Ancoruza opened this issue Nov 14, 2023 · 13 comments
Closed
4 tasks done

[Bug]: 养成计划“添加新资料”后显示异常 #1099

Ancoruza opened this issue Nov 14, 2023 · 13 comments
Labels
area-Cultivation 养成计划 area-UserInterface 用户界面 BUG 非外部问题导致的应用程序异常 已完成 This issue is completed
Milestone

Comments

@Ancoruza
Copy link

检查清单

  • 我已阅读 Snap Hutao 文档中的常见问题常见程序异常,我的问题没有在文档中得到解答
  • 我知道文档站的导航栏中有搜索功能,且已经搜索过相关关键词
  • 我的问题不是已修复的问题也不是一个别人已发布的重复的问题

Windows 版本

19044.3208

Snap Hutao 版本

1.7.17

设备 ID

CADF23F9A77B3072F4309CCEE3037EE2

问题分类

养成计算

发生了什么?

【养成计划】功能出现“添加新资料”后显示异常现象
首次[添加角色计划资料]正常显示,再新建[武器计划资料]后[角色计划]里面的部分内容被替换为[刚添加武器资料]内容
再次更新[角色]内容,[武器]内容又显示为[角色]部分内容

你期望发生的行为?

修复此问题
使界面正常显示

最后一步

  • 我认为上述的描述已经足以详细,以允许开发人员能复现该问题
@Ancoruza Ancoruza added BUG 非外部问题导致的应用程序异常 priority:none Priority not set labels Nov 14, 2023
@dgp-bot
Copy link

dgp-bot bot commented Nov 14, 2023

device_id: CADF23F9A77B3072F4309CCEE3037EE2

Exception Data:
----------------------------------------
System.InvalidOperationException: Sequence contains more than one matching element
   at System.Linq.ThrowHelper.ThrowMoreThanOneMatchException()
   at System.Linq.Enumerable.TryGetSingle[TSource](IEnumerable`1 source, Func`2 predicate, Boolean& found)
   at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
   at Snap.Hutao.Service.Cultivation.CultivationService.get_ProjectCollection() in D:\Projects\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\Service\Cultivation\CultivationService.Collection.cs:line 32
   at Snap.Hutao.Service.Cultivation.CultivationService.SaveConsumptionAsync(CultivateType type, UInt32 itemId, List`1 items) in D:\Projects\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\Service\Cultivation\CultivationService.cs:line 172
   at Snap.Hutao.ViewModel.Wiki.WikiAvatarViewModel.CultivateAsync(Avatar avatar) in D:\Projects\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\ViewModel\Wiki\WikiAvatarViewModel.cs:line 163
   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: Sequence contains more than one matching element
   at System.Linq.ThrowHelper.ThrowMoreThanOneMatchException()
   at System.Linq.Enumerable.TryGetSingle[TSource](IEnumerable`1 source, Func`2 predicate, Boolean& found)
   at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
   at Snap.Hutao.Service.Cultivation.CultivationService.get_ProjectCollection() in D:\Projects\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\Service\Cultivation\CultivationService.Collection.cs:line 32
   at Snap.Hutao.ViewModel.Cultivation.CultivationViewModel.InitializeUIAsync() in D:\Projects\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\ViewModel\Cultivation\CultivationViewModel.cs:line 80
   at Snap.Hutao.ViewModel.Abstraction.ViewModel.OpenUIAsync() in D:\Projects\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\ViewModel\Abstraction\ViewModel.cs:line 41
   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: Sequence contains more than one matching element
   at System.Linq.ThrowHelper.ThrowMoreThanOneMatchException()
   at System.Linq.Enumerable.TryGetSingle[TSource](IEnumerable`1 source, Func`2 predicate, Boolean& found)
   at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
   at Snap.Hutao.Service.Cultivation.CultivationService.get_ProjectCollection() in D:\Develop\Projects\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\Service\Cultivation\CultivationService.Collection.cs:line 36
   at Snap.Hutao.ViewModel.Cultivation.CultivationViewModel.OpenUIAsync() in D:\Develop\Projects\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\ViewModel\Cultivation\CultivationViewModel.cs:line 78
   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
Copy link

dgp-bot bot commented Nov 14, 2023

Windows 10 Build 21H2 是一个过时的 Windows 版本。

Windows 10 生命周期

image

Snap Hutao 最低系统要求

  • Windows 10Build 19045 (22H2)
    • Build 19045 (22H2)
  • Windows 11 Build 22621 (22H2)
    • Build 22621 (22H2)
  • 低于上述版本可能会导致程序会有不可预知的错误

@Lightczx Lightczx added the area-Cultivation 养成计划 label Nov 14, 2023
@Ancoruza
Copy link
Author

附图:

首次[添加角色计划] ——正常显示
01-首次 添加角色计划  ——正常显示

新建[添加武器计划] ——正常显示
02-新建 添加武器计划  ——正常显示

查看[角色计划] 一栏——显示异常,部分内容被"新添置的武器计划"顶替
03-查看 角色计划  一栏——显示异常,部分内容被新添置的武器计划顶替

重新更新[角色计划] → 查看[武器计划] 一栏——显示异常,部分内容被"新添置的角色计划"顶替
04-重新更新 角色计划  → 查看 武器计划  一栏——显示异常,部分内容被新添置的角色计划顶替(1)
04-重新更新 角色计划  → 查看 武器计划  一栏——显示异常,部分内容被新添置的角色计划顶替(2)

@Lightczx
Copy link
Member

重新更新[角色计划] → 查看[武器计划] 一栏——显示异常,部分内容被"新添置的角色计划"顶替

这个时候是正常的吧

@Ancoruza
Copy link
Author

是的。
这个是[角色资料]被后添加的[武器资料]篡改后,又重新“添加了一次[角色资料]”,所以显示正常了。但同时,[武器资料]又被篡改了

@Ancoruza
Copy link
Author

附动图:

BUG 养成计划显示异常(压缩)

@Lightczx
Copy link
Member

[武器资料]又被篡改了

只是显示问题,实际数据再不修改的情况下重启可以正常显示

@dgp-bot
Copy link

dgp-bot bot commented Nov 16, 2023

a1037e1 已修复此问题

@dgp-bot dgp-bot bot added 已完成 This issue is completed 等待发布 This issue fix is going to be applied in the next release and removed priority:none Priority not set labels Nov 16, 2023
@dgp-bot dgp-bot bot added this to the 1.8.0 milestone Nov 21, 2023
@dgp-bot
Copy link

dgp-bot bot commented Nov 22, 2023

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

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

Lightczx commented Nov 24, 2023

1.8.0 版本实际上依旧存在非第一排的物品刷新异常的问题

@Lightczx Lightczx reopened this Nov 24, 2023
@Lightczx Lightczx added area-UserInterface 用户界面 and removed 已完成 This issue is completed labels Nov 25, 2023
@dgp-bot
Copy link

dgp-bot bot commented Nov 25, 2023

f2ef6ff 已修复此问题

@dgp-bot dgp-bot bot added 已完成 This issue is completed 等待发布 This issue fix is going to be applied in the next release labels Nov 25, 2023
@dgp-bot dgp-bot bot modified the milestones: 1.8.0, 1.8.1 Nov 27, 2023
@dgp-bot
Copy link

dgp-bot bot commented Nov 28, 2023

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

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

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 Jan 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Cultivation 养成计划 area-UserInterface 用户界面 BUG 非外部问题导致的应用程序异常 已完成 This issue is completed
Projects
Archived in project
Development

No branches or pull requests

2 participants