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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
This is a duplicate of issue #1234461