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)
Comments (1)
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
- Entities Systems window has a “Show Full Player Loop” dropdown which does nothing when clicked after enabling “Show Full Player Loop”
- Entities Hierarchy Search “Show/Hide” button’s Lens Icon is blurry when the Editor is on an external monitor
- Inconsistent value calculations between Operating Systems when casting rigidbody.transform.localScale = Vector3.zero
- Last Prefab changes are reverted when tests on EditMode are executed while Prefab mode is open
- Build and Run button greyed out for locally invalid architecture, despite remote build is specified
RaventurnPatrick
Aug 17, 2022 12:11
Why was this not fixed for Unity 2020 LTS?