Fixed in 0.91 Preview 624

#395 Quickly changing the Keybinding-Help-Window/Overlay (F6) -> Cast Exception

area: ingame UI
GameBugby @Ecconia11 months ago

Reproduction:

  • Open HelpMenu (F6)
  • Spam click a peg
  • Open console, see a stacktrace per click

Stacktrace/error:

InvalidCastException: Specified cast is not valid.

JimmysUnityUtilities.ComponentExtensions.GetRectTransform (UnityEngine.Component co) (at <d35361914ae241c8a85b441ce7955cf9>:0)
LogicWorld.UI.HelpList.HelpItem.<_RecalculateSize>b__6_1 () (at <8199cd7d83a7404eb8ba155bd4301fcc>:0)
JimmysUnityUtilities.CoroutineUtility+<>c__DisplayClass6_0+<<RunAfterFrameDelay>g__routine|0>d.MoveNext () (at <d35361914ae241c8a85b441ce7955cf9>:0)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at <4662e723155c4d2b8408e3e172bc1d09>:0)

Expected:

No error, swift and smooth and butterly regenerating of the help overlay.


2 comments
@JimmyDeveloper5 months ago

Fixed in next preview!

@Ecconia6 months ago

Reproduced in 0.91.0.608