O-n-y / oxy.mods

Oxy.BugTracker
18 stars 2 forks source link

[WGSM] 3.0.3.141 Crash at closing and reopening asteroid trait menu #175

Open Hamredahl opened 1 month ago

Hamredahl commented 1 month ago

OS: Windows 10, 22H2 Game Version: U52-623711-V Mod version: WGSM 3.0.3.141

Saw this as a comment in the workshop, tested it out and wouldn't you know, crashed for me too. My initial assumption that someone using a comment section for bug reporting wouldn't post an issue sadly also seems correct, so here we are. This is specifically for using [X] to close the trait selector, using confirm does not crash the game.

To replicate:

ArgumentException: An item with the same key has already been added. Key: ProcGen.WorldTrait

System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) (at <695d1cc93cca45069c528c15c9fdd749>:0)
Ony.OxygenNotIncluded.WGSM.WorldVisual.<Setup>b__26_0 (UnityEngine.GameObject b) (at <581a9879139a4b8dadbad187de1223d9>:0)
Ony.UnityUI.UI+<>c__DisplayClass9_0.<AddIconButton>b__0 () (at <581a9879139a4b8dadbad187de1223d9>:0)
KButton.SignalClick (KKeyCode btn) (at <0a61a0e7beaf44b6b425814476821935>:0)
KButton.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) (at <0a61a0e7beaf44b6b425814476821935>:0)
UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.IPointerClickHandler handler, UnityEngine.EventSystems.BaseEventData eventData) (at <e9635660f69b4d9d84c085aeda3be353>:0)
UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] functor) (at <e9635660f69b4d9d84c085aeda3be353>:0)
UnityEngine.EventSystems.EventSystem:Update()

Build: U52-623711-V
O-n-y commented 1 month ago

Thank you, i will check it out!