Search Issue Tracker
Fixed
Fixed in 2022.3.40f1
Votes
0
Found in
2022.3.38f1
Issue ID
UUM-75917
Regression
Yes
"ArgumentOutOfRangeException" error appears when selecting multiple GameObjects with Sprite Renderer Component attached and changing the script
How to reproduce:
1. Open the “Test2023_2_20f1“ project
2. Open the “SampleScene“
3. In the Hierarchy, select all “40x40_Circle_0” GameObjects
4. Open the “TestScript” in the Assets folder
5. Change the script to trigger the compilation process (e.g. add {{Debug.Log("Test")}})
6. Observe the Console
Expected result: No error is thrown
Actual result: The “ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection” error is thrown
Reproducible in: 2022.3.30f1, 2022.3.38f1, 2023.2.20f1
Not reproducible in: 2021.3.40f1, 2022.3.29f1, 6000.0.11f1
Fixed in: 6000.0.0f1
Reproducible on: Windows 10
Not reproducible on: No other environment tested
Notes:
- The full error is provided in the internal comments
- In the first few versions prior to the Fixed In one, the error is “NullReferenceException: Object reference not set to an instance of an object”
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Console shows Exception: {"error":"not found","detail":["not found"]} after opening Build History window
- [HDRP] Volumetric cloud shadows disappear when there is no directional light shadows
- “Selector” column names in the Search window are lowercase when added
- Install List Project Counter Panel can be right clicked through and Install Context Menu can be opened disabling Project Counter Panel's buttons
- [MacOS] Scene is marked/flickering as dirty (with asterisk) when dragging a Material on a GameObject in Scene view
Add comment