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
- [Android] Stage information is not logged when Log Shader Compilation is enabled
- [Vulkan] The memory allocation increases rapidly when there are multiple (three or more) Real-Time Reflection Probes in the Scene
- [macOS] Library folder of the opened project can be deleted which leads to the crash
- “Default Scene” dropdown field contains a spelling mistake “Default Builtin”
- Editor crashes on PPtr<Mesh> after adding Text Mesh and Cloth Components to the same GameObject
This is a duplicate of issue #1234461