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
- Some UXML Template Asset foldouts appear enabled when all fields inside are disabled
- URP Terrain Demo crash on burst_signal_handler after Generating lighting
- Project window button icons are poorly visible and their shades differ in Light theme
- GC.Alloc called by HDRenderPipeline.LensFlareMergeOcclusionDataDrivenPass() when playing the default HDRP Sample Template project
- Automatic LOD fails and SRP Batcher incompatibility occurs when using spline-based quad-topology meshes
This is a duplicate of issue #1234461