Search Issue Tracker
Duplicate
Votes
0
Found in
2019.3.0b10
2019.4.3f1
2020.1.0a6
2020.2
Issue ID
1267846
Regression
Yes
IndexOutOfRangeException is thrown from Selectable.OnEnable/OnDisable when manually throwing exceptions in Awake functions
How to reproduce:
1. Open user-submitted project (SelectableException.zip)
2. Open the SampleScene
3. Enter Play Mode
4. Click the 'Error' button and see the Console window
Expected result: no IndexOutOfRange exceptions are thrown
Actual result: an IndexOutOfRange exception is thrown
Reproducible with: 2019.3.0b10, 2019.4.7f1, 2020.1.0a6, 2020.1.1f1, 2020.2.0a20
Not reproducible with: 2018.4.26f1, 2019.3.0b9, 2020.1.0a1, 2020.1.0a5
Notes:
Spawning an 'OK Element' by clicking the 'No Error' button, then clicking the 'Error' button and finally clicking the 'OK Element' toggle also corrupts the toggle with the same IndexOutOfRange exception
Exiting and entering Play Mode after the 4th step prints 2 more of these errors
Clicking the 'Error' button 3 times will make any subsequent 'No Error' button presses print the same exception
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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
This is a duplicate of issue #1234461