You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Loaded LogoSlideMaker.WinUi\Sample\sample-packed.toml into previewer
Loaded sample\sample.toml into previewer
Displays error "Opening file failed": "Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')"
Root cause investigation
This code looks suspect! Is not considering whether _slideNumber is in range at all. That said, I don't really understand why _slideNumber is NOT in range because incoming definition does have a variant.
Hmm, this may be a timing problem. In this case the OLD file, sample-packed does not have a variant. So for this moment, are we getting the count of variants from the OLD file, and then trying to read the variant out of the NEW file?? No, that's backwards. Will need to investigate further.
Logs
2024-09-16 12:53:32.762 -07:00 [INF] OpenDocument: Selected OK C:\Source\jcoliz\LogoSlideMaker\sample\sample.toml
2024-09-16 12:53:32.766 -07:00 [ERR] LoadDefinitionAsync: Stream load Failed
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')
at System.Collections.Generic.List`1.get_Item(Int32 index)
at LogoSlideMaker.WinUi.ViewModels.MainViewModel.PopulateLayout()
at LogoSlideMaker.WinUi.ViewModels.MainViewModel.<>c__DisplayClass68_0.<LoadDefinitionAsync>b__0()
2024-09-16 12:53:32.799 -07:00 [DBG] LoadDefinitionAsync: Launched
2024-09-16 12:53:36.161 -07:00 [INF] ShowErrorAsync: OK Opening file failed Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')
Repro steps
Root cause investigation
This code looks suspect! Is not considering whether _slideNumber is in range at all. That said, I don't really understand why _slideNumber is NOT in range because incoming definition does have a variant.
Hmm, this may be a timing problem. In this case the OLD file, sample-packed does not have a variant. So for this moment, are we getting the count of variants from the OLD file, and then trying to read the variant out of the NEW file?? No, that's backwards. Will need to investigate further.
Logs
Found in version
ci-3420 9d78c00
The text was updated successfully, but these errors were encountered: