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
- LocalizationSettings.InitializationOperation hangs when re-entering Play Mode with Domain Reload disabled
- [UI Toolkit] Delete key deletes the incorrect character and allows for an extra character deletion when language direction is set to RTL
- Dropdown property is cut off and adds unnecessary side padding when a Sub Graph is used as a node in Shader Graph
- All text in the Project Settings Window is still Tinted White after deleting Text in the Search Window
- "WebGL Template" icons disappear when building the project with the Project Settings opened
RaventurnPatrick
Aug 17, 2022 12:11
Why was this not fixed for Unity 2020 LTS?