Search Unity

Bug error in Runtime mode

Discussion in 'UGUI & TextMesh Pro' started by unclejey34, Mar 21, 2022.

  1. unclejey34

    unclejey34

    Joined:
    Dec 21, 2017
    Posts:
    53
    unity3d 2019.4.36 on Android runtime

    Code (csharp):
    1. Non-fatal Exception: java.lang.Exception: IndexOutOfRangeException : Index was outside the bounds of the array.
    2.        at System.Collections.Generic.Dictionary`2[TKey,TValue].FindEntry(System.Collections.Generic.Dictionary`2[TKey,TValue])
    3.        at System.Collections.Generic.Dictionary`2[TKey,TValue].TryGetValue(System.Collections.Generic.Dictionary`2[TKey,TValue])
    4.        at UnityEngine.UI.Collections.IndexedSet`1[T].Remove(UnityEngine.UI.Collections.IndexedSet`1[T])
    5.        at UnityEngine.UI.GraphicRegistry.UnregisterGraphicForCanvas(UnityEngine.UI.GraphicRegistry)
    6.        at UnityEngine.UI.Graphic.OnDisable(UnityEngine.UI.Graphic)
    7.        at UnityEngine.UI.MaskableGraphic.OnDisable(UnityEngine.UI.MaskableGraphic)
    8.        at UnityEngine.UI.Image.OnDisable(UnityEngine.UI.Image)