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
- [Quest] Pitch Shifter causes audio degradation on Quest 2 devices when sped up
- "GUI Error: Invalid GUILayout" and "NullReferenceException" are thrown when adding Scenes to "Scenes in Baking Set" in Adaptive Probe Volumes
- Inspector window not updating when switching GameObjects in Play Mode while having a VR headset connected
- "UnityException: GetName can only be called from the main thread." erors are thrown when the Shortcuts window is opened and entering Play Mode with a shortcut
- [Android] Light2D visuals stacking over frames when using RenderGraph
This is a duplicate of issue #1234461