Search Unity

Error: ArgumentException: index and count exceed length of list

Discussion in 'World Building' started by Hyzn, Jul 24, 2018.

  1. Hyzn

    Hyzn

    Joined:
    Jul 20, 2018
    Posts:
    1
    I'm receiving this error as a result of the select holes tool. Is this fixable?

    ArgumentException: index and count exceed length of list
    System.Collections.Generic.List`1[ProBuilder2.Common.pb_WingedEdge].CheckRange (Int32 idx, Int32 count) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/List.cs:112)
    System.Collections.Generic.List`1[ProBuilder2.Common.pb_WingedEdge].GetRange (Int32 index, Int32 count) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/List.cs:371)
    ProBuilder2.MeshOperations.pb_AppendPolygon.FindHoles (System.Collections.Generic.List`1 wings, System.Collections.Generic.HashSet`1 common)
    ProBuilder2.MeshOperations.pb_AppendPolygon.FindHoles (.pb_Object pb, IList`1 indices)
    ProBuilder2.Actions.SelectHole.DoAction ()
    ProBuilder2.EditorCommon.pb_MenuAction.DoButton (Boolean isHorizontal, Boolean showOptions, UnityEngine.Rect& optionsRect, UnityEngine.GUILayoutOption[] layoutOptions)
    ProBuilder2.EditorCommon.pb_EditorToolbar.OnGUI ()
    ProBuilder2.EditorCommon.pb_Editor.OnGUI ()
    System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
    Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
    System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
    System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
    UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:295)
    UnityEditor.HostView.Invoke (System.String methodName) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:288)
    UnityEditor.HostView.InvokeOnGUI (Rect onGUIPosition) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:255)