Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Bug error in Runtime mode

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

  1. unclejey34


    Dec 21, 2017
    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)