Search Issue Tracker
Active
Votes
0
Found in [Package]
1.0.2
Issue ID
MLA-1623
Regression
No
[MLAgents] Errors are thrown on setting negative 'Branches-Size' value in Behaviour Parameters Component
On setting negative 'Branches-Size' in Behaviour Parameters MLAgents-Component, console flooded with 'Array size must be non-negative' errors. Refer attached video.
Steps to repro:
1. Create a new Project
2. Package Manager > MLAgents > Install.
3. Hierarchy > Create a Cube > Inspector
4. Cube > Add Component > ML-Agents >Behaviour Parameters
5. Vector Action > Branches Size > Drag Mouse to set negative value.
Actual Result:
Console flooded with 'Array size must be non-negative' errors, On setting negative 'Branches-Size' value.
Expected Result:
No errors in the console and Setting a negative value for 'Branches-Size' should be restricted.
Reproducible in:
2021.1.0a7, 2020.2.0b13, 2020.1.12f1, 2019.4.14f1, 2018.4.29f1 with package version (1.0.6-1.0.2)
Environment:
Windows10 and macOS 10.15
Stack trace:
Array size must be non-negative.
UnityEditor.SerializedProperty:set_arraySize(Int32)
Unity.MLAgents.Editor.BrainParametersDrawer:DrawDiscreteVectorAction(Rect, SerializedProperty) (at Library/PackageCache/com.unity.ml-agents@1.0.2/Editor/BrainParametersDrawer.cs:160)
Unity.MLAgents.Editor.BrainParametersDrawer:DrawVectorAction(Rect, SerializedProperty) (at Library/PackageCache/com.unity.ml-agents@1.0.2/Editor/BrainParametersDrawer.cs:114)
Unity.MLAgents.Editor.BrainParametersDrawer:OnGUI(Rect, SerializedProperty, GUIContent) (at Library/PackageCache/com.unity.ml-agents@1.0.2/Editor/BrainParametersDrawer.cs:44)
UnityEditor.EditorGUILayout:PropertyField(SerializedProperty, Boolean, GUILayoutOption\[])
Unity.MLAgents.Editor.BehaviorParametersEditor:OnInspectorGUI() (at Library/PackageCache/com.unity.ml-agents@1.0.2/Editor/BehaviorParametersEditor.cs:40)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- An image bleeds out of the borders of a Mask when the project is opened with the iOS Build Support module
- Shadows do not appear on the Material with a custom shader which uses screen space shadow map in HDRP when Ray Traced Shadows are enabled
- An emoji is not shown in the UI Builder Viewport and the Game view when it is placed in the Labels text attribute and Usage Hints is set to Dynamic Color
- The Sprite Renderers are looking for Secondary Textures from the wrong page within the Sprite Atlas when the Sprite Atlas has a large amount of textures for packing
- [URP] Invalid update of shader stripping settings
Add comment