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
- Editor crashes on StoredGraphicsBuffer::GetGfxBufferID when VFX Graph property is modified during Play Mode and Application.targetFrameRate is used to limit FPS
- Crash on NVAPI_Thunk when changing Player resolution while HDR display is used and Direct3D12 is set as the graphics API
- Only one out of multiple cameras is shown in the Play Mode while HDR display is used and Direct3D12 is set as the graphics API
- The "Paste Component as New" option is incorrectly displayed as active despite the action being prohibited
- "TLS Allocator ALLOC_TEMP_TLS" errors are thrown when unsuccessfully importing an FBX file
Add comment