kh3-randomizer] [2022-05-01 06:30:50] fail: Microsoft.AspNetCore.Components.Server.Circuits.CircuitHost[111]
[kh3-randomizer] [2022-05-01 06:30:50] Unhandled exception in circuit 'xEUwl7X5AGyzfGtvBnEUftwUneZhSEgLK6W2eWbn9yg'.
[kh3-randomizer] [2022-05-01 06:30:50] System.ArgumentException: An item with the same key has already been added. Key: SecretReport02
[kh3-randomizer] [2022-05-01 06:30:50] at System.Collections.Generic.Dictionary2.TryInsert(TKey key, TValue value, InsertionBehavior behavior) [kh3-randomizer] [2022-05-01 06:30:50] at KH3Randomizer.Data.HintService.GenerateHints(String seed, Dictionary2 randomizedOptions, Dictionary2 availablePools, String hintType, List1 importantChecks, Dictionary`2& hintValues) in /src/KH3Randomizer/Data/HintService.cs:line 208
[kh3-randomizer] [2022-05-01 06:30:50] at KH3Randomizer.Components.Review.GenerateSeed() in /src/KH3Randomizer/Components/Review.razor:line 303
[kh3-randomizer] [2022-05-01 06:30:50] at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
[kh3-randomizer] [2022-05-01 06:30:50] at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle)
Seems like there aren't sufficient checks in the HintService update. Verify that multiple duplicated keys aren't added to the dictionary.
Seems like there aren't sufficient checks in the HintService update. Verify that multiple duplicated keys aren't added to the dictionary.