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
- Duplicate External Textures start appearing when a Texture created with "CreateExternalTexture" is modified causing Memory Usage spikes on VisionOS
- Silent crash when using a "Blend Shape" in a "Skinned Mesh Renderer" to move vertices to Vector3.positiveInfinity, and "Occlusion Culling" is baked
- Some Prefab Source and Override content bounds are misaligned
- The Package Manager's "install packages by..." panels break when Domain Reload is triggered, and the panel is open
- Crash with multiple stack traces when leaving a docked VFX Graph open
RaventurnPatrick
Aug 17, 2022 12:11
Why was this not fixed for Unity 2020 LTS?