Search Issue Tracker
Fixed in 2022.1.X
Fixed in 2021.2.X
Votes
0
Found in
2021.2.0a17
2021.2.0b1
2022.1
Issue ID
1347205
Regression
Yes
IndexOutOfRangeException raised in Module Editor when updating a module after a domain reload
How to reproduce:
1. Create a new project using the default 3D template
2. Open the Profiler window (Window->Analysis->Profiler)
3. In the Profiler window, select the 'Profiler Modules' dropdown menu
4. In the dropdown menu, click the cog icon
5. In the opened Profiler Module Editor, add a new module (by clicking the bottom-left 'Add' button)
6. Add a single counter from the 'Available Counters' list
7. Click 'Save Changes'
8. Navigate to the Profiler Module Editor again
9. Enter the Play Mode
10. Add a counter again to the previously created module
Expected result: There are no errors thrown
Actual result: "IndexOutOfRangeException: Unable to update module 'New Profiler Module 1' at index '-1'." error is thrown
Reproducible with: 2021.2.0a17, 2021.2.0b2, 2022.1.0a2
Not reproducible with: 2019.4.28f1, 2020.3.14f1, 2021.1.14f1, 2021.2.0a16
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on D3D12CommonShader::ApplyGpuProgram when attaching material which samples "_UnityFBInput0" to "Full Screen Pass Renderer Feature" Component
- SpeedTree meshes and objects count differs when comparing the numbers in the Player with the Editor
- Model and Prefab Preview icons are not updated after upgrading associated Materials to URP
- Game view is rendered white when viewing the Editor with HDR display and Post Proccesing is enabled on the Main Camera with 2D URP
- UI Builder doesn't update the style sheet when using "Extract inline style" right-click option
Resolution Note (fix version 2022.1):
Fixed in Unity 2022.1.0a3 and above
Resolution Note (fix version 2021.2):
Fixed in Unity 2021.2.0b6