Search Issue Tracker

Won't Fix

Votes

0

Found in [Package]

1.7.7

Issue ID

UVSB-2155

Regression

No

Argument out of Range Exception error

Package: Visual Scripting

-

*Reproducible on:*
* VS version: 1.7.7
* Editor version: 2021.2.08f1
* Platform: Win 10

*Steps to Reproduce:*
# Create a game object with a Script machine and a script graph attached to it.
# On the blackboard create a saved variable
# On the Project window click on Unity.VisualScripting.Generated/VisualScripting.Flow/UnitOptions

*Actual Outcome:*
* ArgumentOutOfRangeException error appears in the console
{code:java}
ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
System.Collections.Generic.List`1[T].get_Item (System.Int32 index) (at <47ab72e0328040438980f9c23608e1ec>:0)
System.Collections.ObjectModel.Collection`1[T].System.Collections.IList.get_Item (System.Int32 index) (at <47ab72e0328040438980f9c23608e1ec>:0)
Unity.VisualScripting.IndexMetadata.get_rawValue () (at Library/PackageCache/com.unity.visualscripting@25c3f2766ac1-1643047596481/Editor/VisualScripting.Core/Meta/IndexMetadata.cs:34)
Unity.VisualScripting.Metadata.get_instantiatedValue () (at Library/PackageCache/com.unity.visualscripting@25c3f2766ac1-1643047596481/Editor/VisualScripting.Core/Meta/Metadata.cs:281)
Unity.VisualScripting.Metadata.get_rawValueType () (at Library/PackageCache/com.unity.visualscripting@25c3f2766ac1-1643047596481/Editor/VisualScripting.Core/Meta/Metadata.cs:430)
Unity.VisualScripting.Metadata.get_valueType () (at Library/PackageCache/com.unity.visualscripting@25c3f2766ac1-1643047596481/Editor/VisualScripting.Core/Meta/Metadata.cs:446)
Unity.VisualScripting.MemberMetadata.Reflect (System.Boolean throwOnFail) (at Library/PackageCache/com.unity.visualscripting@25c3f2766ac1-1643047596481/Editor/VisualScripting.Core/Meta/MemberMetadata.cs:67)
Unity.VisualScripting.MemberMetadata..ctor (System.String name, System.Reflection.BindingFlags bindingFlags, Unity.VisualScripting.Metadata parent) (at Library/PackageCache/com.unity.visualscripting@25c3f2766ac1-1643047596481/Editor/VisualScripting.Core/Meta/MemberMetadata.cs:19)
Unity.VisualScripting.Metadata+DigMember.<.ctor>b__0_0 (Unity.VisualScripting.Metadata parent) (at Library/PackageCache/com.unity.visualscripting@25c3f2766ac1-1643047596481/Editor/VisualScripting.Core/Meta/Metadata.cs:1339)
Unity.VisualScripting.Metadata.Dig[TSubpath,TMetadata] (TSubpath subpath, System.Func`2[T,TResult] constructor, System.Boolean createInPrefab, Unity.VisualScripting.Metadata prefabInstance) (at Library/PackageCache/com.unity.visualscripting@25c3f2766ac1-1643047596481/Editor/VisualScripting.Core/Meta/Metadata.cs:648)
Unity.VisualScripting.Metadata.Member (System.String name, System.Reflection.BindingFlags bindingFlags) (at Library/PackageCache/com.unity.visualscripting@25c3f2766ac1-1643047596481/Editor/VisualScripting.Core/Meta/Metadata.cs:1456)
Unity.VisualScripting.Metadata.get_Item (System.String name) (at Library/PackageCache/com.unity.visualscripting@25c3f2766ac1-1643047596481/Editor/VisualScripting.Core/Meta/Metadata.cs:774)
Unity.VisualScripting.ValueInspector.get_typeMetadata () (at Library/PackageCache/com.unity.visualscripting@25c3f2766ac1-1643047596481/Editor/VisualScripting.Core/Inspection/Special/SystemObjectInspector.cs:17)
Unity.VisualScripting.ValueInspector.Dispose () (at Library/PackageCache/com.unity.visualscripting@25c3f2766ac1-1643047596481/Editor/VisualScripting.Core/Inspection/Special/SystemObjectInspector.cs:27)
Unity.VisualScripting.SystemObjectInspector.Dispose () (at Library/PackageCache/com.unity.visualscripting@25c3f2766ac1-1643047596481/Editor/VisualScripting.Core/Inspection/Special/SystemObjectInspector.cs:370)
Unity.VisualScripting.SingleDecoratorProvider`3[TDecorated,TDecorator,TAttribute].Free (TDecorator decorator) (at Library/PackageCache/com.unity.visualscripting@25c3f2766ac1-1643047596481/Editor/VisualScripting.Core/Decorators/SingleDecoratorProvider.cs:305)
Unity.VisualScripting.SingleDecoratorProvider`3[TDecorated,TDecorator,TAttribute].Free (System.Collections.Generic.IEnumerable`1[T] decorators) (at Library/PackageCache/com.unity.visualscripting@25c3f2766ac1-1643047596481/Editor/VisualScripting.Core/Decorators/SingleDecoratorProvider.cs:317)
Unity.VisualScripting.SingleDecoratorProvider`3[TDecorated,TDecorator,TAttribute].FreeAll () (at Library/PackageCache/com.unity.visualscripting@25c3f2766ac1-1643047596481/Editor/VisualScripting.Core/Decorators/SingleDecoratorProvider.cs:348)
Unity.VisualScripting.EditorApplicationUtility.OnSelectionChange () (at Library/PackageCache/com.unity.visualscripting@25c3f2766ac1-1643047596481/Editor/VisualScripting.Core/Utilities/EditorApplicationUtility.cs:135)
UnityEditor.Selection.Internal_CallSelectionChanged () (at <13c5ad68fffb46969f1ca1df233d1e4d>:0)
{code}

  1. Resolution Note:

    Could not reproduce issue

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.