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]: 我在点击养成计划时发生闪退 #2365

Closed
1 task done
xcyzj opened this issue Jan 10, 2025 · 2 comments
Closed
1 task done

[Bug]: 我在点击养成计划时发生闪退 #2365

xcyzj opened this issue Jan 10, 2025 · 2 comments
Labels
area-Cultivation 养成计划

Comments

@xcyzj
Copy link

xcyzj commented Jan 10, 2025

Windows 版本

22631.4460

Snap Hutao 版本

1.13.0.0

设备 ID

0037F3DE060852D3162D7D07BAC5A1C1

问题分类

养成计算

发生了什么?

点击养成计划崩溃闪退

Image

你期望发生的行为?

No response

最后一步

  • 我认为上述的描述已经足以详细,以允许开发人员能复现该问题
@xcyzj xcyzj added the priority:none Priority not set label Jan 10, 2025
@dgp-bot
Copy link

dgp-bot bot commented Jan 10, 2025

device_id: 0037F3DE060852D3162D7D07BAC5A1C1

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.ViewModel.Cultivation.CultivationViewModel.LoadOverrideAsync() in C:\Users\Public\appveyor\Snap.Hutao-jh505h81xm9xhuqm\src\Snap.Hutao\Snap.Hutao\ViewModel\Cultivation\CultivationViewModel.cs:line 76
   at Snap.Hutao.ViewModel.Abstraction.ViewModel.LoadAsync() in C:\Users\Public\appveyor\Snap.Hutao-jh505h81xm9xhuqm\src\Snap.Hutao\Snap.Hutao\ViewModel\Abstraction\ViewModel.cs:line 46
   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.ViewModel.Cultivation.CultivationViewModel.LoadOverrideAsync() in C:\Users\Public\appveyor\Snap.Hutao-jh505h81xm9xhuqm\src\Snap.Hutao\Snap.Hutao\ViewModel\Cultivation\CultivationViewModel.cs:line 76
   at Snap.Hutao.ViewModel.Abstraction.ViewModel.LoadAsync() in C:\Users\Public\appveyor\Snap.Hutao-jh505h81xm9xhuqm\src\Snap.Hutao\Snap.Hutao\ViewModel\Abstraction\ViewModel.cs:line 46
   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.ViewModel.Cultivation.CultivationViewModel.LoadOverrideAsync() in C:\Users\Public\appveyor\Snap.Hutao-356hyp21t1wc7wck\src\Snap.Hutao\Snap.Hutao\ViewModel\Cultivation\CultivationViewModel.cs:line 75
   at Snap.Hutao.ViewModel.Abstraction.ViewModel.LoadAsync() in C:\Users\Public\appveyor\Snap.Hutao-356hyp21t1wc7wck\src\Snap.Hutao\Snap.Hutao\ViewModel\Abstraction\ViewModel.cs:line 46
   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-Cultivation 养成计划 label Jan 10, 2025
@Lightczx
Copy link
Member

@xcyzj 点击胡桃图标,在弹出的菜单中选择执行调试脚本菜单项,在打开的窗口中输入以下内容

await Diagnostics.ExecuteSqlAsync("""update cultivate_projects set IsSelected = 0""")

并点击执行,输出内容为一个数字则表示执行成功,重启胡桃后即可正常使用

@dgp-bot dgp-bot bot removed the priority:none Priority not set label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Cultivation 养成计划
Projects
None yet
Development

No branches or pull requests

2 participants