Search Issue Tracker
Fixed in 2021.2.X
Fixed in 2021.3.X
Votes
0
Found in
2019.4
2020.1.10f1
2021.1
Issue ID
1288443
Regression
No
"ArgumentException: The scene is not loaded" when test runs and the editor does not have focus
How to reproduce:
1. Open the attached project("test-failure.zip")
2. In the Test Runner window click Run All
3. Quickly minimize Unity
Expected results: No exception is thrown
Actual results: ArgumentException: The scene is not loaded is thrown
Reproducible with: 2019.4.14f1, 2020.1.13f1, 2020.2.0b11, 2021.1.0a5
Couldn't test with: 2018.4.29f1 (Couldn't downgrade)
First lines of the Exception thrown:
ArgumentException: The scene is not loaded.
UnityEngine.SceneManagement.Scene.GetRootGameObjects (System.Collections.Generic.List`1[T] rootGameObjects) (at <052502435982472d92da7f939c7f8164>:0)
UnityEditor.SceneVisibilityManager.AreAllDescendantsHidden (UnityEngine.SceneManagement.Scene scene) (at <3037c1046402403280ab8b0782ca806f>:0)
UnityEditor.SceneVisibilityManager.GetSceneVisibilityState (UnityEngine.SceneManagement.Scene scene) (at <3037c1046402403280ab8b0782ca806f>:0)
UnityEditor.SceneVisibilityHierarchyGUI.DrawSceneItemVisibility (UnityEngine.Rect rect, UnityEngine.SceneManagement.Scene scene, System.Boolean isItemHovered, System.Boolean isIconHovered) (at <3037c1046402403280ab8b0782ca806f>:0)
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
- [Dragon Crashers] Build fails in U6
- [Dragon Crashers] 4 Shader error messages on import
- [Dragon Crashers] Readme text is white on light grey
- Cursor stays in front of the first character when entering text in the TextMeshPro field
- Searching in Hierarchy causes unwanted component calls
RaventurnPatrick
Aug 17, 2022 12:11
Why was this not fixed for Unity 2020 LTS?