Search Unity

Bug when I load specific scene I get editor crash

Discussion in 'Editor & General Support' started by showway1, Mar 25, 2023.

  1. showway1

    showway1

    Joined:
    Jul 25, 2021
    Posts:
    1
    When I load specific scene I get editor crash

    Obtained 77 stack frames



    0x00007ff71f42aa75 (Unity) GameObject::ActivateAwakeRecursivelyInternal

    0x00007ff71f42a7f9 (Unity) GameObject::ActivateAwakeRecursively

    0x00007ff71f42a776 (Unity) GameObject::Activate

    0x00007ff7209fa64c (Unity) DanglingComponentManager::ResolveDanglingComponents

    0x00007ff71fb52696 (Unity) AwakeFromLoadQueue::persistentManagerAwakeFromLoad

    0x00007ff71f7981f5 (Unity) LoadSceneOperation::CompleteAwakeSequence

    0x00007ff71f798d52 (Unity) LoadSceneOperation::CompletePreloadManagerLoadSceneEditor

    0x00007ff71f7998fb (Unity) LoadSceneOperation::IntegrateMainThread

    0x00007ff71f79d4f1 (Unity) PreloadManager::UpdatePreloadingSingleStep

    0x00007ff71f79dacf (Unity) PreloadManager::WaitForAllAsyncOperationsToComplete

    0x00007ff72097843c (Unity) EditorSceneManager::RestoreSceneBackups

    0x00007ff720975e54 (Unity) EditorSceneManager::OpenSceneLoaded

    0x00007ff720974818 (Unity) EditorSceneManager::OpenScene

    0x00007ff72068fe8f (Unity) Application::OpenFileGeneric

    0x00007ff720588d9d (Unity) OpenAsset

    0x00007ff71f0fa26f (Unity) AssetDatabase_CUSTOM_OpenAsset

    0x0000023ac0d3df48 (Mono JIT Code) (wrapper managed-to-native) UnityEditor.AssetDatabase:OpenAsset (int,int,int)

    0x0000023ac0d3de5b (Mono JIT Code) UnityEditor.AssetDatabase:OpenAsset (int,int)

    0x0000023ac0d3dde3 (Mono JIT Code) UnityEditor.AssetDatabase:OpenAsset (int)

    0x0000023ac0d3dbd3 (Mono JIT Code) UnityEditor.ProjectBrowser:OpenAssetSelection (int[])

    0x0000023ac0d3612b (Mono JIT Code) UnityEditor.ProjectBrowser:OpenListAreaSelection ()

    0x0000023ac0d0a693 (Mono JIT Code) UnityEditor.ProjectBrowser:ListAreaItemSelectedCallback (bool)

    0x0000023ac0d0a4ed (Mono JIT Code) UnityEditor.ObjectListArea:SetSelection (int[],bool)

    0x0000023a7aebc13b (Mono JIT Code) UnityEditor.ObjectListArea/LocalGroup:HandleMouseWithDragging (UnityEditorInternal.InternalEditorUtility/AssetReference&,int,UnityEngine.Rect)

    0x0000023a7aebb5cb (Mono JIT Code) UnityEditor.ObjectListArea/LocalGroup:DrawItem (UnityEngine.Rect,UnityEditor.FilteredHierarchy/FilterResult,UnityEditor.BuiltinResource,bool)

    0x0000023a7aeb6e63 (Mono JIT Code) UnityEditor.ObjectListArea/LocalGroup:DrawInternal (int,int,single)

    0x0000023a7aeb650a (Mono JIT Code) UnityEditor.ObjectListArea/Group:Draw (single,UnityEngine.Vector2,int&)

    0x0000023a7aeb5b23 (Mono JIT Code) UnityEditor.ObjectListArea:HandleListArea ()

    0x0000023a7aeb463b (Mono JIT Code) UnityEditor.ObjectListArea:OnGUI (UnityEngine.Rect,int)

    0x0000023a7ae92f3b (Mono JIT Code) UnityEditor.ProjectBrowser:OnGUI ()

    0x0000023a724a015a (Mono JIT Code) UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect)

    0x0000023a7249fe63 (Mono JIT Code) UnityEditor.DockArea:DrawView (UnityEngine.Rect)

    0x0000023a724934cb (Mono JIT Code) UnityEditor.DockArea:OldOnGUI ()

    0x00000237977b9caf (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool)

    0x0000023a70fe439b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,System.Action,bool)

    0x0000023a9cce8e9b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,System.Action,bool)

    0x0000023a9ccee353 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,bool)

    0x0000023a9ccedeab (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase,bool,bool)

    0x0000023a9ccedd93 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUI (UnityEngine.UIElements.EventBase,bool,bool)

    0x0000023a4cdfc31b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleEvent (UnityEngine.UIElements.EventBase)

    0x0000023a4cde48c9 (Mono JIT Code) UnityEngine.UIElements.EventDispatchUtilities:propagateEvent (UnityEngine.UIElements.EventBase)

    0x0000023a9cce88db (Mono JIT Code) UnityEngine.UIElements.MouseEventDispatchingStrategy:SendEventToRegularTarget (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.BaseVisualElementPanel)

    0x0000023a9cce87eb (Mono JIT Code) UnityEngine.UIElements.MouseEventDispatchingStrategy:SendEventToTarget (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.BaseVisualElementPanel)

    0x0000023a9cce81a3 (Mono JIT Code) UnityEngine.UIElements.MouseEventDispatchingStrategy:DispatchEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)

    0x0000023a4cde371e (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,bool)

    0x0000023a4cde321b (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:processEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)

    0x0000023a4cde9ebb (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:processEventQueue ()

    0x0000023a4cde8223 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:OpenGate ()

    0x0000023a4cde815b (Mono JIT Code) UnityEngine.UIElements.EventDispatcherGate:Dispose ()

    0x0000023a4cde34a3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:processEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)

    0x0000023a4cde2c23 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:Dispatch (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,UnityEngine.UIElements.DispatchMode)

    0x0000023a4cde2a9b (Mono JIT Code) UnityEngine.UIElements.BaseVisualElementPanel:SendEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.DispatchMode)

    0x0000023a4fef8d8b (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel)

    0x0000023a4fef8833 (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (int,intptr,bool&)

    0x0000023a4fef85ef (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration:processEvent (int,intptr)

    0x0000023a4fef850b (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration/<>c:<.cctor>b__1_2 (int,intptr)

    0x0000023a4fef836d (Mono JIT Code) UnityEngine.GUIUtility:processEvent (int,intptr,bool&)

    0x0000023a4fef8426 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_intptr_intptr& (object,intptr,intptr,intptr)

    0x00007ffd856cfe24 (mono-2.0-bdwgc) [mini-runtime.c:3445] mono_jit_runtime_invoke

    0x00007ffd8560e764 (mono-2.0-bdwgc) [object.c:3066] do_runtime_invoke

    0x00007ffd8560e8fc (mono-2.0-bdwgc) [object.c:3113] mono_runtime_invoke

    0x00007ff71fa9bf84 (Unity) scripting_method_invoke

    0x00007ff71fa7b824 (Unity) ScriptingInvocation::Invoke

    0x00007ff71fa76435 (Unity) ScriptingInvocation::Invoke<void>

    0x00007ff71fbbea6a (Unity) Scripting::UnityEngine::GUIUtilityProxy::processEvent

    0x00007ff7205c6508 (Unity) GUIView::processRetainedMode

    0x00007ff720b1157b (Unity) GUIView::OnInputEvent

    0x00007ff7205c631a (Unity) GUIView::processInputEvent

    0x00007ff720b1254b (Unity) GUIView::processEventMessages

    0x00007ff720b0c11f (Unity) GUIView::GUIViewWndProc

    0x00007ffdad80e7e8 (USER32) CallWindowProcW

    0x00007ffdad80e229 (USER32) DispatchMessageW

    0x00007ff720ae7043 (Unity) MainMessageLoop

    0x00007ff720aeba6b (Unity) WinMain

    0x00007ff721e8b91e (Unity) __scrt_common_main_seh

    0x00007ffdad9f7614 (KERNEL32) BaseThreadInitThunk

    0x00007ffdaf0626a1 (ntdll) RtlUserThreadStart
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,727
    Import stuck, reimport-all, deleting Library/ folder, Library/ScriptAssemblies, etc:

    https://forum.unity.com/threads/stu...rst-time-after-a-reboot.1143368/#post-7341272

    PROPERLY CONFIGURING AND USING ENTERPRISE SOURCE CONTROL

    I'm sorry you've had this issue. Please consider using proper industrial-grade enterprise-qualified source control in order to guard and protect your hard-earned work.

    Personally I use git (completely outside of Unity) because it is free and there are tons of tutorials out there to help you set it up as well as free places to host your repo (BitBucket, Github, Gitlab, etc.).

    You can also push git repositories to other drives: thumb drives, USB drives, network drives, etc., effectively putting a complete copy of the repository there.

    As far as configuring Unity to play nice with git, keep this in mind:

    https://forum.unity.com/threads/prefab-links-keep-getting-dumped-on-git-pull.646600/#post-7142306

    I usually make a separate repository for each game, but I have some repositories with a bunch of smaller test games.

    Here is how I use git in one of my games, Jetpack Kurt:

    https://forum.unity.com/threads/2-steps-backwards.965048/#post-6282497

    Using fine-grained source control as you work to refine your engineering:

    https://forum.unity.com/threads/whe...grammer-example-in-text.1048739/#post-6783740

    Share/Sharing source code between projects:

    https://forum.unity.com/threads/your-techniques-to-share-code-between-projects.575959/#post-3835837

    Setting up an appropriate .gitignore file for Unity3D:

    https://forum.unity.com/threads/removing-il2cpp_cache-from-project.1084607/#post-6997067

    Generally setting Unity up (includes above .gitignore concepts):

    https://thoughtbot.com/blog/how-to-git-with-unity

    It is only simple economics that you must expend as much effort into backing it up as you feel the work is worth in the first place. Digital storage is so unbelievably cheap today that you can buy gigabytes of flash drive storage for about the price of a cup of coffee. It's simply ridiculous not to back up.

    If you plan on joining the software industry, you will be required and expected to know how to use source control.

    "Use source control or you will be really sad sooner or later." - StarManta on the Unity3D forum boards