Search Issue Tracker


Fixed in 2021.3.30f1



Found in


Issue ID




Crash on GetManagerFromContext when exiting the Prefab Mode



Reproduction steps:
1. Open the attached project “CrashRepro“
2. Open the Scene view
3. Double click on “Assets/Packages/Simple Mouse Flight/Prefabs/Simple Mouse Flight Camera Rig“ prefab
4. Click the back arrow in the Hierarchy window

Expected result: Editor goes back to Scene View
Actual result: The Editor throws a fatal error (GetManagerFromContext: Pointer to object of manager 'RenderSettngs' is NULL (table index 21) UnityEngine.GUILItility:ProcessEvent (int,intptr,bool)) window and crashes

Reproducible with: 2020.3.48f1, 2021.3.22f1, 2022.1.24f1
Not reproducible with: 2022.2.0a1, 2022.2.161f, 2023.1.0b12, 2023.2.0a12

Reproducible on: Windows 10

First few lines of stack trace:
0x00007FF6E2D5B204 (Unity) GetManagerFromContext
0x00007FF6E272D134 (Unity) RenderSettings_Get_Custom_PropFog
0x000001E7DCAF4687 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.RenderSettings:get_fog ()
0x000001E7DCAF444B (Mono JIT Code) UnityEditor.SceneView:SetupFogAndShadowDistance (bool&,single&)
0x000001E7DCAF06AB (Mono JIT Code) UnityEditor.SceneView:DoOnGUI ()
0x000001E7DCAAF9EB (Mono JIT Code) UnityEditor.SceneView:OnSceneGUI (){noformat}

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.