Assertion failed on expression: 'manager != NULL' error

Hey I’m getting this error and I was wondering if anyone could tell me how to fix it. Unity version is 2019.1.0f2. I’ve tried reopening the project and reinstalling unity but it does not seem to help the issue.

It occurs when the game is switching scenes. A plugin loads up a saved terrain and a character is spawned before this error occurs. Everything seems fine for a second or two, but then this error shows up and blanks the screen. I’m not sure what has caused this issue to come up as these systems and scene switches were working fine previously.

Additional info - This problem only occurs when the scene is loaded from a specific scene but not from another (Scene A > Affected Scene results in error, Scene B > Affected Scene no problem)

Thanks for any help in advance

0x00007FF75C5493CC (Unity) StackWalker::GetCurrentCallstack
0x00007FF75C54C881 (Unity) StackWalker::ShowCallstack
0x00007FF75ACB8695 (Unity) GetStacktrace
0x00007FF75CF66C60 (Unity) DebugStringToFile
0x00007FF75CF669CB (Unity) AssertImplementation
0x00007FF75A650A1D (Unity) CollectAllSceneManagerAndObjectIDs
0x00007FF75A65D5E8 (Unity) GenerateSceneFileIDsForLoadedScenes
0x00007FF75CC21F5F (Unity) ObjectIdentifierHash::Create
0x00007FF75CC253AE (Unity) InstanceIDToObjectIdentifierHash
0x00007FF75C6D91B1 (Unity) TerrainManager::CullAllTerrains
0x00007FF75B8103BB (Unity) Camera::CustomCull
0x00007FF75B81A401 (Unity) RenderManager::RenderCameras
0x00007FF75AAABD1E (Unity) RepaintController::RenderGameViewCameras
0x00007FF75B4D9CA2 (Unity) EditorGUIUtility_CUSTOM_RenderGameViewCamerasInternal_Injected
0x0000018FB1AFF431 (Mono JIT Code) (wrapper managed-to-native) UnityEditor.EditorGUIUtility:RenderGameViewCamerasInternal_Injected (UnityEngine.RenderTexture,int,UnityEngine.Rect&,UnityEngine.Vector2&,bool,bool)
0x0000018FB1AFF2DB (Mono JIT Code) UnityEditor.EditorGUIUtility:RenderGameViewCamerasInternal (UnityEngine.RenderTexture,int,UnityEngine.Rect,UnityEngine.Vector2,bool,bool)
0x0000018FAA3631F3 (Mono JIT Code) [GameView.cs:910] UnityEditor.GameView:OnGUI ()
0x0000018FB1B53F10 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
0x00007FFE0ED4BBCB (mono-2.0-bdwgc) [mini-runtime.c:2809] mono_jit_runtime_invoke
0x00007FFE0ECD2252 (mono-2.0-bdwgc) [object.c:2919] do_runtime_invoke
0x00007FFE0ECDB432 (mono-2.0-bdwgc) [object.c:3071] mono_runtime_invoke_checked
0x00007FFE0ECDBBC9 (mono-2.0-bdwgc) [object.c:5262] mono_runtime_try_invoke_array
0x00007FFE0ECDB3C6 (mono-2.0-bdwgc) [object.c:5140] mono_runtime_invoke_array_checked
0x00007FFE0EC80254 (mono-2.0-bdwgc) [icall.c:3358] ves_icall_InternalInvoke
0x0000018FA3BF8226 (Mono JIT Code) (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
0x0000018FA3BF6C2B (Mono JIT Code) System.Reflection.MonoMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
0x0000018FA478FF7F (Mono JIT Code) System.Reflection.MethodBase:Invoke (object,object[])
0x0000018FA9F26363 (Mono JIT Code) [HostView.cs:345] UnityEditor.HostView:Invoke (string,object)
0x0000018FA9F261B3 (Mono JIT Code) [HostView.cs:340] UnityEditor.HostView:Invoke (string)
0x0000018FAA35CCFB (Mono JIT Code) [HostView.cs:308] UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect,UnityEngine.Rect)
0x0000018FAA35C1AB (Mono JIT Code) [DockArea.cs:374] UnityEditor.DockArea:smile:rawView (UnityEngine.Rect,UnityEngine.Rect,bool,bool)
0x0000018FAA0A89D3 (Mono JIT Code) [DockArea.cs:346] UnityEditor.DockArea:OldOnGUI ()
0x0000018FAA038BC1 (Mono JIT Code) [IMGUIContainer.cs:278] UnityEngine.UIElements.IMGUIContainer:smile:oOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect)
0x0000018FAA036BAB (Mono JIT Code) [IMGUIContainer.cs:483] UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect)
0x0000018FB18E6D63 (Mono JIT Code) [IMGUIContainer.cs:455] UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent ()
0x0000018FB18E61F2 (Mono JIT Code) [UIRenderers.cs:447] UnityEngine.UIElements.UIR.ImmediateRenderer:smile:raw (UnityEngine.UIElements.UIR.DrawChainState)
0x0000018FB18E4D60 (Mono JIT Code) [UIRenderDevice.cs:842] UnityEngine.UIElements.UIR.UIRenderDevice:ContinueChain (UnityEngine.UIElements.UIR.RendererBase,UnityEngine.UIElements.UIR.DrawChainState,bool)
0x0000018FB18DDB5B (Mono JIT Code) [UIRenderDevice.cs:825] UnityEngine.UIElements.UIR.UIRenderDevice:smile:rawChain (UnityEngine.UIElements.UIR.RendererBase,UnityEngine.Rect,UnityEngine.Matrix4x4,UnityEngine.Texture)
0x0000018FB18DB227 (Mono JIT Code) [UIRRepaintUpdater.cs:219] UnityEngine.UIElements.UIRRepaintUpdater:smile:rawChain (UnityEngine.Rect,UnityEngine.Matrix4x4)
0x0000018FB18C8785 (Mono JIT Code) [UIRRepaintUpdater.cs:191] UnityEngine.UIElements.UIRRepaintUpdater:Update ()
0x0000018FB18C599F (Mono JIT Code) [VisualTreeUpdater.cs:71] UnityEngine.UIElements.VisualTreeUpdater:UpdateVisualTree ()
0x0000018FB18C5463 (Mono JIT Code) [Panel.cs:591] UnityEngine.UIElements.Panel:Repaint (UnityEngine.Event)
0x0000018FAA00AE93 (Mono JIT Code) [UIElementsUtility.cs:246] UnityEngine.UIElements.UIElementsUtility:smile:oDispatch (UnityEngine.UIElements.BaseVisualElementPanel)
0x0000018FAA00A9DB (Mono JIT Code) [UIElementsUtility.cs:78] UnityEngine.UIElements.UIElementsUtility:ProcessEvent (int,intptr)
0x0000018FAA00A33E (Mono JIT Code) [GUIUtility.cs:179] UnityEngine.GUIUtility:ProcessEvent (int,intptr)
0x0000018FAA00A563 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_bool_int_intptr (object,intptr,intptr,intptr)
0x00007FFE0ED4BBCB (mono-2.0-bdwgc) [mini-runtime.c:2809] mono_jit_runtime_invoke
0x00007FFE0ECD2252 (mono-2.0-bdwgc) [object.c:2919] do_runtime_invoke
0x00007FFE0ECDB25F (mono-2.0-bdwgc) [object.c:2966] mono_runtime_invoke
0x00007FF75C4DB036 (Unity) scripting_method_invoke
0x00007FF75C4D5335 (Unity) ScriptingInvocation::Invoke
0x00007FF75C4D05AA (Unity) ScriptingInvocation::Invoke<bool>
0x00007FF759C61C79 (Unity) Scripting::UnityEngine::GUIUtilityProxy::ProcessEvent
0x00007FF75AB615EC (Unity) GUIView::ProcessRetainedMode
0x00007FF75AFC4B6D (Unity) GUIView::OnInputEvent
0x00007FF75AB614FC (Unity) GUIView::ProcessInputEvent
0x00007FF75AFBBC8C (Unity) GUIView::smile:oPaint
0x00007FF75AFC75AD (Unity) GUIView::RepaintAll
0x00007FF75AD06E52 (Unity) PlayerLoopController::UpdateScene
0x00007FF75AD03CA9 (Unity) Application::TickTimer
0x00007FF75AFC3943 (Unity) MainMessageLoop
0x00007FF75AFCD347 (Unity) WinMain
0x00007FF75D8FDD8E (Unity) __scrt_common_main_seh
0x00007FFE6B844034 (KERNEL32) BaseThreadInitThunk
0x00007FFE6BC53691 (ntdll) RtlUserThreadStart

First I would say report it to Unity so they can be aware … assertion failed is not a useful message even if you are doing something to cause this message and its not simply a bug … it isn’t useful and Unity should look throw a more meaningful exception.

If you really want to try and debug it, best your going to do is narrow down the cause but it might help Unity support understand what is going on.
You could save Scene ‘A’ as Scene C … the objective here is to give you a deep coppy that you can start pickign apart to see what if anything seems to effect rather or not it all goes bits up on load of ‘Affected scene’

Once you have that deep copy start simplifying it slowly your goal here is to find that 1 thing (if ther is a 1 thing) that is making Scene A crash ‘affected’ scene that Scene B doesn’t have.
Odds are however that its going to be a few minor factors putting the engine into such a state that goes sideways in this one conditon and its liekly that it has nothing to do with a scene so dont beat your self up to hard … send that Unity bug report then enjoy the experance of bug hunting … it can be fun

Little bit of a continuation to this post but I have tried duplicating and renaming the affected scene and this does fix the problem. However, after putting the scene into the build menu the problem popups up again in that scene.

Just want to cap this thread out with the solution. Somehow some cache data corrupted itself and kept causing the problem to reoccur even when the project was completely redownloaded or when an old version was reinstalled. For anyone having this problem in the future, the 3 sets of cache data can be found at C:/Users/USERNAME/AppData/. There are 3 files inside of that directory which will each have their own Unity folders containing cache data. I simply deleted those files, reinstalled Unity, and opened the project again.