DGP-Studio / Snap.Hutao

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

[Bug]: 导入提瓦特小助手祈愿记录崩溃闪退 #1418

Closed putaomeiyoupi closed 9 months ago

putaomeiyoupi commented 9 months ago

检查清单

Windows 版本

22631.3155

Snap Hutao 版本

1.9.7.0

设备 ID

ECD1F80EB7B017D3B1DE9577570C3B87

问题分类

祈愿记录

发生了什么?

导入从提瓦塔小助手导出的祈愿记录,然后就程序闪退了。

你期望发生的行为?

希望将提瓦特小助手的祈愿记录与胡桃的合并。 image

https://github.com/DGP-Studio/Snap.Hutao/assets/156564853/447fe232-a6f8-4f72-bd97-78d9e8171ba3

最后一步

dgp-bot[bot] commented 9 months ago

device_id: ECD1F80EB7B017D3B1DE9577570C3B87

Exception Data:
----------------------------------------
System.ArgumentNullException: Value cannot be null. (Parameter 'key')
   at System.Collections.Generic.Dictionary`2.FindValue(TKey key)
   at System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value)
   at System.Collections.Generic.CollectionExtensions.GetValueOrDefault[TKey,TValue](IReadOnlyDictionary`2 dictionary, TKey key, TValue defaultValue)
   at System.Collections.Generic.CollectionExtensions.GetValueOrDefault[TKey,TValue](IReadOnlyDictionary`2 dictionary, TKey key)
   at Snap.Hutao.Service.GachaLog.GachaLogServiceMetadataContext.GetItemId(GachaLogItem item) in D:\appveyor\project\Snap.Hutao.Project-gqlgajyq8rir7ot7\src\Snap.Hutao\Snap.Hutao\Service\GachaLog\GachaLogServiceMetadataContext.cs:line 122
   at Snap.Hutao.Service.GachaLog.UIGFImportService.<>c__DisplayClass4_0.<ImportAsync>b__5(UIGFItem i) in D:\appveyor\project\Snap.Hutao.Project-gqlgajyq8rir7ot7\src\Snap.Hutao\Snap.Hutao\Service\GachaLog\UIGFImportService.cs:line 80
   at System.Linq.Enumerable.SelectIPartitionIterator`2.ToList()
   at Snap.Hutao.Service.GachaLog.UIGFImportService.ImportAsync(GachaLogServiceMetadataContext context, UIGF uigf, ObservableCollection`1 archives) in D:\appveyor\project\Snap.Hutao.Project-gqlgajyq8rir7ot7\src\Snap.Hutao\Snap.Hutao\Service\GachaLog\UIGFImportService.cs:line 77
   at Snap.Hutao.Service.GachaLog.GachaLogService.ImportFromUIGFAsync(UIGF uigf) in D:\appveyor\project\Snap.Hutao.Project-gqlgajyq8rir7ot7\src\Snap.Hutao\Snap.Hutao\Service\GachaLog\GachaLogService.cs:line 123
   at Snap.Hutao.ViewModel.GachaLog.GachaLogViewModel.TryImportUIGFInternalAsync(UIGF uigf) in D:\appveyor\project\Snap.Hutao.Project-gqlgajyq8rir7ot7\src\Snap.Hutao\Snap.Hutao\ViewModel\GachaLog\GachaLogViewModel.cs:line 374
   at Snap.Hutao.ViewModel.GachaLog.GachaLogViewModel.ImportFromUIGFJsonAsync() in D:\appveyor\project\Snap.Hutao.Project-gqlgajyq8rir7ot7\src\Snap.Hutao\Snap.Hutao\ViewModel\GachaLog\GachaLogViewModel.cs:line 229
   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.ArgumentNullException: Value cannot be null. (Parameter 'key')
   at System.Collections.Generic.Dictionary`2.FindValue(TKey key)
   at System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value)
   at Snap.Hutao.Service.GachaLog.GachaLogServiceMetadataContext.GetItemId(GachaLogItem item) in D:\appveyor\project\Snap.Hutao.Project-gqlgajyq8rir7ot7\src\Snap.Hutao\Snap.Hutao\Service\GachaLog\GachaLogServiceMetadataContext.cs:line 122
   at Snap.Hutao.Service.GachaLog.UIGFImportService.<>c__DisplayClass4_0.<ImportAsync>b__5(UIGFItem i) in D:\appveyor\project\Snap.Hutao.Project-gqlgajyq8rir7ot7\src\Snap.Hutao\Snap.Hutao\Service\GachaLog\UIGFImportService.cs:line 80
   at System.Linq.Enumerable.SelectIPartitionIterator`2.ToList()
   at Snap.Hutao.Service.GachaLog.UIGFImportService.ImportAsync(GachaLogServiceMetadataContext context, UIGF uigf, ObservableCollection`1 archives) in D:\appveyor\project\Snap.Hutao.Project-gqlgajyq8rir7ot7\src\Snap.Hutao\Snap.Hutao\Service\GachaLog\UIGFImportService.cs:line 77
   at Snap.Hutao.Service.GachaLog.GachaLogService.ImportFromUIGFAsync(UIGF uigf) in D:\appveyor\project\Snap.Hutao.Project-gqlgajyq8rir7ot7\src\Snap.Hutao\Snap.Hutao\Service\GachaLog\GachaLogService.cs:line 123
   at Snap.Hutao.ViewModel.GachaLog.GachaLogViewModel.TryImportUIGFInternalAsync(UIGF uigf) in D:\appveyor\project\Snap.Hutao.Project-gqlgajyq8rir7ot7\src\Snap.Hutao\Snap.Hutao\ViewModel\GachaLog\GachaLogViewModel.cs:line 374
   at Snap.Hutao.ViewModel.GachaLog.GachaLogViewModel.ImportFromUIGFJsonAsync() in D:\appveyor\project\Snap.Hutao.Project-gqlgajyq8rir7ot7\src\Snap.Hutao\Snap.Hutao\ViewModel\GachaLog\GachaLogViewModel.cs:line 229
   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.ArgumentNullException: Value cannot be null. (Parameter 'key')
   at System.Collections.Generic.Dictionary`2.FindValue(TKey key)
   at System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value)
   at System.Collections.Generic.CollectionExtensions.GetValueOrDefault[TKey,TValue](IReadOnlyDictionary`2 dictionary, TKey key, TValue defaultValue)
   at System.Collections.Generic.CollectionExtensions.GetValueOrDefault[TKey,TValue](IReadOnlyDictionary`2 dictionary, TKey key)
   at Snap.Hutao.Service.GachaLog.GachaLogServiceMetadataContext.GetItemId(GachaLogItem item) in D:\appveyor\project\Snap.Hutao.Project-gqlgajyq8rir7ot7\src\Snap.Hutao\Snap.Hutao\Service\GachaLog\GachaLogServiceMetadataContext.cs:line 122
   at Snap.Hutao.Service.GachaLog.UIGFImportService.<>c__DisplayClass4_0.<ImportAsync>b__5(UIGFItem i) in D:\appveyor\project\Snap.Hutao.Project-gqlgajyq8rir7ot7\src\Snap.Hutao\Snap.Hutao\Service\GachaLog\UIGFImportService.cs:line 80
   at System.Linq.Enumerable.SelectIPartitionIterator`2.ToList()
   at Snap.Hutao.Service.GachaLog.UIGFImportService.ImportAsync(GachaLogServiceMetadataContext context, UIGF uigf, ObservableCollection`1 archives) in D:\appveyor\project\Snap.Hutao.Project-gqlgajyq8rir7ot7\src\Snap.Hutao\Snap.Hutao\Service\GachaLog\UIGFImportService.cs:line 77
   at Snap.Hutao.Service.GachaLog.GachaLogService.ImportFromUIGFAsync(UIGF uigf) in D:\appveyor\project\Snap.Hutao.Project-gqlgajyq8rir7ot7\src\Snap.Hutao\Snap.Hutao\Service\GachaLog\GachaLogService.cs:line 123
   at Snap.Hutao.ViewModel.GachaLog.GachaLogViewModel.TryImportUIGFInternalAsync(UIGF uigf) in D:\appveyor\project\Snap.Hutao.Project-gqlgajyq8rir7ot7\src\Snap.Hutao\Snap.Hutao\ViewModel\GachaLog\GachaLogViewModel.cs:line 374
   at Snap.Hutao.ViewModel.GachaLog.GachaLogViewModel.ImportFromUIGFJsonAsync() in D:\appveyor\project\Snap.Hutao.Project-gqlgajyq8rir7ot7\src\Snap.Hutao\Snap.Hutao\ViewModel\GachaLog\GachaLogViewModel.cs:line 229
   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()
github-actions[bot] commented 9 months ago

Probable Similar Topics

  1. 50% #71
qhy040404 commented 9 months ago

请提供小助手导出的json文件 @putaomeiyoupi

putaomeiyoupi commented 9 months ago

请提供小助手导出的json文件 @putaomeiyoupi

159860962.json

qhy040404 commented 9 months ago

小助手的问题,联系小助手客服。 参考信息:数据中出现"name": null

zhaobozhen commented 8 months ago

椰羊UIAF1.1.20240319211629.json 这份样本也会闪退,供参考

Lightczx commented 8 months ago

椰羊UIAF1.1.20240319211629.json 这份样本也会闪退,供参考

如果你确实遇到问题,请新开Issue,不要在无关的Issue下跟评