Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Bug 2020 startup errors ReleaseAllScriptCaches/UIelements

Discussion in 'Editor & General Support' started by andyz, Sep 30, 2020.

  1. andyz

    andyz

    Joined:
    Jan 5, 2010
    Posts:
    2,363
    Every other time my 2020 (HDRP) project loads I get a load of UIElements related errors

    Quite a mess on a simple project - log below, but many more errors continue and you have to restart the editor

    Code (CSharp):
    1. Symbol file LoadedFromMemory doesn't match image D:\work\project\Library\PackageCache\com.unity.ext.nunit@1.0.0\net35\unity-custom\nunit.framework.dll
    2. ReleaseAllScriptCaches did not release all script caches!
    3. (Filename: C:\buildslave\unity\build\Runtime/Mono/MonoManager.cpp Line: 1455)
    4.  
    5. Remaining caches:
    6.    UnityEngine.UIElementsModule:UnityEngine.UIElements:StyleSheet
    7. Native extension for WindowsStandalone target not found
    8. Native extension for WebGL target not found
    9. Refreshing native plugins compatible for Editor in 69.53 ms, found 8 plugins.
    10. Preloading 0 native plugins for Editor in 0.00 ms.
    11. NullReferenceException: Object reference not set to an instance of an object
    12.  at UnityEditor.UIElements.UIElementsEditorUtility..cctor () [0x0003d] in <6d0b5326886a4f0e8ed4ea356b37330b>:0
    13. Rethrow as TypeInitializationException: The type initializer for 'UnityEditor.UIElements.UIElementsEditorUtility' threw an exception.
    14.  at UnityEditor.UIElements.UIElementsEntryPoint.CreateRoot () [0x00045] in <6d0b5326886a4f0e8ed4ea356b37330b>:0
    15.  at UnityEditor.UIElements.UIElementsEntryPoint.GetRootVisualElement (UnityEditor.EditorWindow window) [0x00011] in <6d0b5326886a4f0e8ed4ea356b37330b>:0
    16.  at UnityEditor.UIElements.DefaultEditorWindowBackend.OnRegisterWindow () [0x0000d] in <6d0b5326886a4f0e8ed4ea356b37330b>:0
    17.  at UnityEditor.UIElements.DefaultEditorWindowBackend.OnCreate (UnityEditor.IWindowModel model) [0x000fe] in <6d0b5326886a4f0e8ed4ea356b37330b>:0
    18.  at UnityEditor.GUIView.set_windowBackend (UnityEditor.IWindowBackend value) [0x0002e] in <6d0b5326886a4f0e8ed4ea356b37330b>:0
    19.  at UnityEditor.GUIView.OnEnable () [0x00008] in <6d0b5326886a4f0e8ed4ea356b37330b>:0
    20.  at UnityEditor.HostView.OnEnable () [0x0001a] in <6d0b5326886a4f0e8ed4ea356b37330b>:0
     
    RSin11 likes this.
  2. Mal_Duffin

    Mal_Duffin

    Joined:
    Jan 22, 2015
    Posts:
    71
    Same (non HDRP or URP )


    NullReferenceException: Object reference not set to an instance of an object
    UnityEditor.UIElements.UIElementsEditorUtility..cctor () (at <67055f1be3654e2a987254d5437ee5b8>:0)
    Rethrow as TypeInitializationException: The type initializer for 'UnityEditor.UIElements.UIElementsEditorUtility' threw an exception.
    UnityEditor.EditorToolbar.CreateRoot () (at <67055f1be3654e2a987254d5437ee5b8>:0)
    UnityEditor.EditorToolbar.get_rootVisualElement () (at <67055f1be3654e2a987254d5437ee5b8>:0)
    UnityEditor.Toolbar.PositionChanged (UnityEditor.GUIView view) (at <67055f1be3654e2a987254d5437ee5b8>:0)
    UnityEditor.GUIView.SetPosition (UnityEngine.Rect newPos) (at <67055f1be3654e2a987254d5437ee5b8>:0)
    UnityEditor.View.set_position (UnityEngine.Rect value) (at <67055f1be3654e2a987254d5437ee5b8>:0)
    UnityEditor.TooltipView.Setup (System.String tooltip, UnityEngine.Rect rect, UnityEditor.GUIView hostView) (at <67055f1be3654e2a987254d5437ee5b8>:0)
    UnityEditor.TooltipView.Show (System.String tooltip, UnityEngine.Rect rect, UnityEditor.GUIView hostView) (at <67055f1be3654e2a987254d5437ee5b8>:0)
     
  3. huulong

    huulong

    Joined:
    Jul 1, 2013
    Posts:
    226
    Same on 2D project. The inspector won't even show.

    @andyz @Mal_Duffin did you send a bug report already?
     
  4. andyz

    andyz

    Joined:
    Jan 5, 2010
    Posts:
    2,363
    So this eased off, but in general UIElements seemed to be the root of (or maybe just surface of) a lot of errors in 2020, not a good sign. However I have not had consistency to make a bug report and run into other more pressing ones
     
  5. Tom4nt

    Tom4nt

    Joined:
    Sep 27, 2017
    Posts:
    1
    Same here on a project that was updated directly from 2017 to 2020. UI errors on startup and sometimes when I try to open a window.
    Error when I tried to open the Project Settings window:
    Code (CSharp):
    1. NullReferenceException: Object reference not set to an instance of an object
    2. UnityEditor.UIElements.UIElementsEditorUtility..cctor () (at <67055f1be3654e2a987254d5437ee5b8>:0)
    3. Rethrow as TypeInitializationException: The type initializer for 'UnityEditor.UIElements.UIElementsEditorUtility' threw an exception.
    4. UnityEditor.EditorToolbar.CreateRoot () (at <67055f1be3654e2a987254d5437ee5b8>:0)
    5. UnityEditor.EditorToolbar.get_rootVisualElement () (at <67055f1be3654e2a987254d5437ee5b8>:0)
    6. UnityEditor.Toolbar.PositionChanged (UnityEditor.GUIView view) (at <67055f1be3654e2a987254d5437ee5b8>:0)
    7. UnityEditor.GUIView.SetPosition (UnityEngine.Rect newPos) (at <67055f1be3654e2a987254d5437ee5b8>:0)
    8. UnityEditor.View.set_position (UnityEngine.Rect value) (at <67055f1be3654e2a987254d5437ee5b8>:0)
    9. UnityEditor.MainView.SetPosition (UnityEngine.Rect newPos) (at <67055f1be3654e2a987254d5437ee5b8>:0)
    10. UnityEditor.View.set_position (UnityEngine.Rect value) (at <67055f1be3654e2a987254d5437ee5b8>:0)
    11. UnityEditor.ContainerWindow.OnResize () (at <67055f1be3654e2a987254d5437ee5b8>:0)
     
  6. enistoja

    enistoja

    Joined:
    Jan 26, 2013
    Posts:
    3
    I am also having issues on startup, and opening/closing the project reduces the amount of errors randomly but the errors remain the same.

    My project has no running codes and yet I have a list of 15 to 24 errors (double line break separating each error message):

    Code (CSharp):
    1.  
    2. ReleaseAllScriptCaches did not release all script caches!
    3.  
    4. NullReferenceException: Object reference not set to an instance of an object
    5. UnityEditor.UIElements.UIElementsEditorUtility..cctor () (at <67055f1be3654e2a987254d5437ee5b8>:0)
    6. Rethrow as TypeInitializationException: The type initializer for 'UnityEditor.UIElements.UIElementsEditorUtility' threw an exception.
    7. UnityEditor.UIElements.UIElementsEntryPoint.CreateRoot () (at <67055f1be3654e2a987254d5437ee5b8>:0)
    8. UnityEditor.UIElements.UIElementsEntryPoint.GetRootVisualElement (UnityEditor.EditorWindow window) (at <67055f1be3654e2a987254d5437ee5b8>:0)
    9. UnityEditor.UIElements.DefaultEditorWindowBackend.OnRegisterWindow () (at <67055f1be3654e2a987254d5437ee5b8>:0)
    10. UnityEditor.UIElements.DefaultEditorWindowBackend.OnCreate (UnityEditor.IWindowModel model) (at <67055f1be3654e2a987254d5437ee5b8>:0)
    11. UnityEditor.GUIView.set_windowBackend (UnityEditor.IWindowBackend value) (at <67055f1be3654e2a987254d5437ee5b8>:0)
    12. UnityEditor.GUIView.OnEnable () (at <67055f1be3654e2a987254d5437ee5b8>:0)
    13. UnityEditor.HostView.OnEnable () (at <67055f1be3654e2a987254d5437ee5b8>:0)
    14.  
    15. NullReferenceException: Object reference not set to an instance of an object
    16. UnityEngine.UIElements.StyleSheets.StyleSelectorHelper.FastLookup (System.Collections.Generic.IDictionary`2[TKey,TValue] table, System.Collections.Generic.List`1[T] matchedSelectors, UnityEngine.UIElements.StyleMatchingContext context, System.String input, UnityEngine.UIElements.StyleSheets.SelectorMatchRecord& record) (at <e11cddb636f444f68eec62123764f018>:0)
    17. UnityEngine.UIElements.StyleSheets.StyleSelectorHelper.FindMatches (UnityEngine.UIElements.StyleMatchingContext context, System.Collections.Generic.List`1[T] matchedSelectors) (at <e11cddb636f444f68eec62123764f018>:0)
    18. UnityEngine.UIElements.VisualTreeStyleUpdaterTraversal.TraverseRecursive (UnityEngine.UIElements.VisualElement element, System.Int32 depth) (at <e11cddb636f444f68eec62123764f018>:0)
    19. UnityEngine.UIElements.StyleSheets.HierarchyTraversal.Recurse (UnityEngine.UIElements.VisualElement element, System.Int32 depth) (at <e11cddb636f444f68eec62123764f018>:0)
    20. UnityEngine.UIElements.VisualTreeStyleUpdaterTraversal.TraverseRecursive (UnityEngine.UIElements.VisualElement element, System.Int32 depth) (at <e11cddb636f444f68eec62123764f018>:0)
    21. UnityEngine.UIElements.StyleSheets.HierarchyTraversal.Traverse (UnityEngine.UIElements.VisualElement element) (at <e11cddb636f444f68eec62123764f018>:0)
    22. UnityEngine.UIElements.VisualTreeStyleUpdater.ApplyStyles () (at <e11cddb636f444f68eec62123764f018>:0)
    23. UnityEngine.UIElements.VisualTreeStyleUpdater.Update () (at <e11cddb636f444f68eec62123764f018>:0)
    24. UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase phase) (at <e11cddb636f444f68eec62123764f018>:0)
    25. UnityEngine.UIElements.Panel.UpdateForRepaint () (at <e11cddb636f444f68eec62123764f018>:0)
    26. UnityEngine.UIElements.Panel.Repaint (UnityEngine.Event e) (at <e11cddb636f444f68eec62123764f018>:0)
    27. UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <e11cddb636f444f68eec62123764f018>:0)
    28. UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <e11cddb636f444f68eec62123764f018>:0)
    29. UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <e11cddb636f444f68eec62123764f018>:0)
    30. UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <e11cddb636f444f68eec62123764f018>:0)
    31. UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <2500dd078a544a69b6c923861af6cd15>:0)
    32. //this error shows up multiple times
    33.  
    34. NullReferenceException: Object reference not set to an instance of an object
    35. UnityEngine.UIElements.StyleSheets.StyleSelectorHelper.FastLookup (System.Collections.Generic.IDictionary`2[TKey,TValue] table, System.Collections.Generic.List`1[T] matchedSelectors, UnityEngine.UIElements.StyleMatchingContext context, System.String input, UnityEngine.UIElements.StyleSheets.SelectorMatchRecord& record) (at <e11cddb636f444f68eec62123764f018>:0)
    36. UnityEngine.UIElements.StyleSheets.StyleSelectorHelper.FindMatches (UnityEngine.UIElements.StyleMatchingContext context, System.Collections.Generic.List`1[T] matchedSelectors) (at <e11cddb636f444f68eec62123764f018>:0)
    37. UnityEngine.UIElements.VisualTreeStyleUpdaterTraversal.TraverseRecursive (UnityEngine.UIElements.VisualElement element, System.Int32 depth) (at <e11cddb636f444f68eec62123764f018>:0)
    38. UnityEngine.UIElements.StyleSheets.HierarchyTraversal.Traverse (UnityEngine.UIElements.VisualElement element) (at <e11cddb636f444f68eec62123764f018>:0)
    39. UnityEngine.UIElements.VisualTreeStyleUpdater.ApplyStyles () (at <e11cddb636f444f68eec62123764f018>:0)
    40. UnityEngine.UIElements.VisualTreeStyleUpdater.Update () (at <e11cddb636f444f68eec62123764f018>:0)
    41. UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase phase) (at <e11cddb636f444f68eec62123764f018>:0)
    42. UnityEngine.UIElements.Panel.UpdateForRepaint () (at <e11cddb636f444f68eec62123764f018>:0)
    43. UnityEngine.UIElements.Panel.Repaint (UnityEngine.Event e) (at <e11cddb636f444f68eec62123764f018>:0)
    44. UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <e11cddb636f444f68eec62123764f018>:0)
    45. UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <e11cddb636f444f68eec62123764f018>:0)
    46. UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <e11cddb636f444f68eec62123764f018>:0)
    47. UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <e11cddb636f444f68eec62123764f018>:0)
    48. UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <2500dd078a544a69b6c923861af6cd15>:0)
    49. //this error also appears multiple times
    50.  
    51. EndLayoutGroup: BeginLayoutGroup must be called first.
    52. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
    53.  
    54.  
    55. //then more of the two long errors
    56.  
    57.  
    no idea where to even begin with this
     
  7. FloaterTS

    FloaterTS

    Joined:
    Sep 29, 2019
    Posts:
    2
    I am also having this problem whenever I'm opening the project, sometimes I have to replace the default layout in the project library to even get to access the project (otherwise it forces me to quit). I am not using any custom windows or layouts.

    If anyone finds a solution please post it here.

    Code (CSharp):
    1. ReleaseAllScriptCaches did not release all script caches!
    2.  
    3. NullReferenceException: Object reference not set to an instance of an object
    4. UnityEditor.UIElements.UIElementsEditorUtility..cctor () (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    5. Rethrow as TypeInitializationException: The type initializer for 'UnityEditor.UIElements.UIElementsEditorUtility' threw an exception.
    6. UnityEditor.UIElements.UIElementsEntryPoint.CreateRoot () (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    7. UnityEditor.UIElements.UIElementsEntryPoint.GetRootVisualElement (UnityEditor.EditorWindow window) (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    8. UnityEditor.UIElements.DefaultEditorWindowBackend.OnRegisterWindow () (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    9. UnityEditor.UIElements.DefaultEditorWindowBackend.OnCreate (UnityEditor.IWindowModel model) (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    10. UnityEditor.GUIView.set_windowBackend (UnityEditor.IWindowBackend value) (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    11. UnityEditor.GUIView.OnEnable () (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    12. UnityEditor.HostView.OnEnable () (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    13.  
    14. NullReferenceException: Object reference not set to an instance of an object
    15. UnityEditor.UIElements.UIElementsEditorUtility..cctor () (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    16. Rethrow as TypeInitializationException: The type initializer for 'UnityEditor.UIElements.UIElementsEditorUtility' threw an exception.
    17. UnityEditor.UIElements.UIElementsEntryPoint.CreateRoot () (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    18. UnityEditor.UIElements.UIElementsEntryPoint.GetRootVisualElement (UnityEditor.EditorWindow window) (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    19. UnityEditor.UIElements.DefaultEditorWindowBackend.OnRegisterWindow () (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    20. UnityEditor.UIElements.DefaultEditorWindowBackend.OnCreate (UnityEditor.IWindowModel model) (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    21. UnityEditor.GUIView.set_windowBackend (UnityEditor.IWindowBackend value) (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    22. UnityEditor.GUIView.OnEnable () (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    23. UnityEditor.HostView.OnEnable () (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    24. UnityEditor.DockArea.OnEnable () (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    25. UnityEditorInternal.InternalEditorUtility:LoadSerializedFileAndForget(String)
    26. UnityEditor.WindowLayout:LoadDefaultWindowPreferences()
    27.  
    28. NullReferenceException: Object reference not set to an instance of an object
    29. UnityEditor.UIElements.UIElementsEditorUtility..cctor () (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    30. Rethrow as TypeInitializationException: The type initializer for 'UnityEditor.UIElements.UIElementsEditorUtility' threw an exception.
    31. UnityEditor.UIElements.UIElementsEntryPoint.CreateRoot () (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    32. UnityEditor.UIElements.UIElementsEntryPoint.GetRootVisualElement (UnityEditor.EditorWindow window) (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    33. UnityEditor.UIElements.DefaultEditorWindowBackend.OnRegisterWindow () (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    34. UnityEditor.UIElements.DefaultEditorWindowBackend.OnCreate (UnityEditor.IWindowModel model) (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    35. UnityEditor.GUIView.set_windowBackend (UnityEditor.IWindowBackend value) (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    36. UnityEditor.GUIView.OnEnable () (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    37. UnityEditor.HostView.OnEnable () (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    38. UnityEditor.DockArea.OnEnable () (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    39. UnityEditorInternal.InternalEditorUtility:LoadSerializedFileAndForget(String)
    40. UnityEditor.WindowLayout:LoadDefaultWindowPreferences()
    41.  
    42. NullReferenceException: Object reference not set to an instance of an object
    43. UnityEditor.UIElements.UIElementsEditorUtility..cctor () (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    44. Rethrow as TypeInitializationException: The type initializer for 'UnityEditor.UIElements.UIElementsEditorUtility' threw an exception.
    45. UnityEditor.UIElements.UIElementsEntryPoint.CreateRoot () (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    46. UnityEditor.UIElements.UIElementsEntryPoint.GetRootVisualElement (UnityEditor.EditorWindow window) (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    47. UnityEditor.UIElements.DefaultEditorWindowBackend.OnRegisterWindow () (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    48. UnityEditor.UIElements.DefaultEditorWindowBackend.OnCreate (UnityEditor.IWindowModel model) (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    49. UnityEditor.GUIView.set_windowBackend (UnityEditor.IWindowBackend value) (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    50. UnityEditor.GUIView.OnEnable () (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    51. UnityEditor.HostView.OnEnable () (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    52. UnityEditor.DockArea.OnEnable () (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    53. UnityEditorInternal.InternalEditorUtility:LoadSerializedFileAndForget(String)
    54. UnityEditor.WindowLayout:LoadDefaultWindowPreferences()
    55.  
    56. NullReferenceException: Object reference not set to an instance of an object
    57. UnityEditor.UIElements.UIElementsEditorUtility..cctor () (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    58. Rethrow as TypeInitializationException: The type initializer for 'UnityEditor.UIElements.UIElementsEditorUtility' threw an exception.
    59. UnityEditor.EditorToolbar.CreateRoot () (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    60. UnityEditor.EditorToolbar.get_rootVisualElement () (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    61. UnityEditor.Toolbar.OnEnable () (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    62. UnityEditorInternal.InternalEditorUtility:LoadSerializedFileAndForget(String)
    63. UnityEditor.WindowLayout:LoadDefaultWindowPreferences()
    64.  
    65. NullReferenceException: Object reference not set to an instance of an object
    66. UnityEditor.UIElements.UIElementsEditorUtility..cctor () (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    67. Rethrow as TypeInitializationException: The type initializer for 'UnityEditor.UIElements.UIElementsEditorUtility' threw an exception.
    68. UnityEditor.UIElements.UIElementsEntryPoint.CreateRoot () (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    69. UnityEditor.UIElements.UIElementsEntryPoint.GetRootVisualElement (UnityEditor.EditorWindow window) (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    70. UnityEditor.UIElements.DefaultEditorWindowBackend.OnRegisterWindow () (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    71. UnityEditor.UIElements.DefaultEditorWindowBackend.OnCreate (UnityEditor.IWindowModel model) (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    72. UnityEditor.GUIView.set_windowBackend (UnityEditor.IWindowBackend value) (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    73. UnityEditor.GUIView.OnEnable () (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    74. UnityEditor.HostView.OnEnable () (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    75. UnityEditor.DockArea.OnEnable () (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    76. UnityEditorInternal.InternalEditorUtility:LoadSerializedFileAndForget(String)
    77. UnityEditor.WindowLayout:LoadDefaultWindowPreferences()
    78.  
    79. NullReferenceException: Object reference not set to an instance of an object
    80. UnityEditor.UIElements.UIElementsEditorUtility..cctor () (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    81. Rethrow as TypeInitializationException: The type initializer for 'UnityEditor.UIElements.UIElementsEditorUtility' threw an exception.
    82. UnityEditor.UIElements.UIElementsEntryPoint.CreateRoot () (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    83. UnityEditor.UIElements.UIElementsEntryPoint.GetRootVisualElement (UnityEditor.EditorWindow window) (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    84. UnityEditor.EditorWindow.get_rootVisualElement () (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    85. UnityEditor.PropertyEditor.LoadVisualTreeFromUxml () (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    86. UnityEditor.InspectorWindow.OnEnable () (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    87. UnityEditorInternal.InternalEditorUtility:LoadSerializedFileAndForget(String)
    88. UnityEditor.WindowLayout:LoadDefaultWindowPreferences()
    89.  
    90. NullReferenceException: Object reference not set to an instance of an object
    91. UnityEditor.UIElements.UIElementsEditorUtility..cctor () (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    92. Rethrow as TypeInitializationException: The type initializer for 'UnityEditor.UIElements.UIElementsEditorUtility' threw an exception.
    93. UnityEditor.SceneView.CreateCameraRectVisualElement () (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    94. UnityEditor.SceneView.OnEnable () (at <3b1af5075b0340cfb428dfcef292b2ea>:0)
    95. UnityEditorInternal.InternalEditorUtility:LoadSerializedFileAndForget(String)
    96. UnityEditor.WindowLayout:LoadDefaultWindowPreferences()
    97.  
    98.  
    And when I get this I can't choose any of the first two, it forces me to quit and I have to recopy the CurrentLayout-default dwlt in the project library folder to get it to work again.
     
    Last edited: Oct 14, 2020
    tyrrr110 and Rayeloy like this.
  8. Mal_Duffin

    Mal_Duffin

    Joined:
    Jan 22, 2015
    Posts:
    71
    FloaterTS, that end .dwlt issue is a whole other known problem, unfortunately.

    Hopefully both of them get solved soon, I ran into both within days of upgrading to Unity 2020.
     
  9. EpicAsMe

    EpicAsMe

    Joined:
    Sep 10, 2017
    Posts:
    4
    If this helps.
    I also encounter this problem last night, and I just did Assets/Reimport All and the error just gone.
     
  10. VolatileCoder

    VolatileCoder

    Joined:
    Sep 21, 2014
    Posts:
    18
    @EpicAsMe your solution worked for me, thanks.
     
  11. ehudcandivore

    ehudcandivore

    Joined:
    Jul 18, 2018
    Posts:
    12
    2020 is a horrible release, stay away until it's in a better state...
     
  12. EpicAsMe

    EpicAsMe

    Joined:
    Sep 10, 2017
    Posts:
    4
    Glad it helps you :)
     
  13. Zergling103

    Zergling103

    Joined:
    Aug 16, 2011
    Posts:
    392
    I've got this problem too:

    Code (CSharp):
    1. NullReferenceException: Object reference not set to an instance of an object
    2. UnityEditor.UIElements.UIElementsEditorUtility..cctor () (at <9ddd600ae5964fe0b21a870e08c53748>:0)
    3. Rethrow as TypeInitializationException: The type initializer for 'UnityEditor.UIElements.UIElementsEditorUtility' threw an exception.
    4. UnityEditor.UIElements.UIElementsEntryPoint.CreateRoot () (at <9ddd600ae5964fe0b21a870e08c53748>:0)
    5. UnityEditor.UIElements.UIElementsEntryPoint.GetRootVisualElement (UnityEditor.EditorWindow window) (at <9ddd600ae5964fe0b21a870e08c53748>:0)
    6. UnityEditor.EditorWindow.get_rootVisualElement () (at <9ddd600ae5964fe0b21a870e08c53748>:0)
    7. UnityEditor.PropertyEditor.RebuildContentsContainers () (at <9ddd600ae5964fe0b21a870e08c53748>:0)
    8. UnityEditor.InspectorWindow.RedrawFromNative () (at <9ddd600ae5964fe0b21a870e08c53748>:0)
    P.S. null check your stuff lmao.
     
  14. Alison_Czarnietzki

    Alison_Czarnietzki

    Joined:
    Jul 23, 2013
    Posts:
    189
    Also starting to see this randomly. Whole editor layout starts getting unstable.
     
  15. numbercrunchee

    numbercrunchee

    Joined:
    Feb 12, 2018
    Posts:
    4
    Our team has the same issue. Most of the time a restart solves it, but could randomly happen again.
     
  16. Zergling103

    Zergling103

    Joined:
    Aug 16, 2011
    Posts:
    392
    Reimport All does NOT fix this in my case.
     
  17. J_Lewis_

    J_Lewis_

    Joined:
    Sep 22, 2020
    Posts:
    3
    Hey all! I am late to the party but figured I would offer up what worked for me to see if it helps you. All I did was go into my game files "(Game Folder) -> Library and delete the folder titled "UIElements." By doing this, unity automatically remade the elements folder fresh, and my UI in-game was not harmed and worked perfectly. Let me know if this quick fix works for you as well as me. Have a great day!
     
    cromai likes this.
  18. davidcox70

    davidcox70

    Joined:
    Oct 19, 2016
    Posts:
    33
    I thought this worked at first, but then the error returned later. As previously reported, the errors appear every other time the project is loaded. So effectively, I need to load a project twice before I can work.
    DC
     
  19. J_Lewis_

    J_Lewis_

    Joined:
    Sep 22, 2020
    Posts:
    3
    Yep, I have to reload twice to get it to work, but it is honestly worth it. Would hate to restart a whole game for a dumb bug like this. Unity should look into fixing this, as it is very nerve-racking. The fix I gave you was just temporary. Make sure to check your files for the "UIElements" folder, as I have had it return multiple times, and had to delete it before build + running it. Have a great day!
     
    Ruslank100 and Bakamono like this.
  20. davidcox70

    davidcox70

    Joined:
    Oct 19, 2016
    Posts:
    33
    ...the issue seemed to be fixed after I reset the UI window layout to factory settings. I previously had a number of windows in tabs, such as project settings, profiler, shadergraph etc, so perhaps one or more of those window settings are incompatible with the 2020 version.
    DC
     
  21. Skilious

    Skilious

    Joined:
    Feb 12, 2020
    Posts:
    1
    I currently have this issue and its annoying to have this ongoing especially when working with a group for an assessment.
    However, no other group members have this issue and its only causing it on my side.

    Reverting to Factory settings sometimes create a white window. Closing that window will close the whole project. To get rid of it, switch the layout to "Default".

    I am going to reinstall Unity and see how it goes from there on. I feel like its just on my side as I re-cloned the project again and it still gives out the same error.
     
    Last edited: Nov 18, 2020
  22. enistoja

    enistoja

    Joined:
    Jan 26, 2013
    Posts:
    3
    Coming back a little later to report that the mystery errors abound still.
     
    Fadroni likes this.
  23. M_as

    M_as

    Joined:
    Nov 18, 2018
    Posts:
    1
    try remove "Unity UI" in the package manager and reinstall
     
  24. Yuri1976

    Yuri1976

    Joined:
    Mar 23, 2016
    Posts:
    8
    I hope they fix this mess...since 2020 version this has been a major annoyance.
     
  25. Revvick

    Revvick

    Joined:
    Apr 27, 2019
    Posts:
    1
    I have found that deleting all folders except Assets/Packages/Project Settings/gitignore before loading up the project helps. This forces Unity to reimport a bunch of stuff but it works for me.
     
  26. Thomukas1

    Thomukas1

    Joined:
    Sep 29, 2014
    Posts:
    31
    Same issue, pls help
     
  27. walaber_entertainment

    walaber_entertainment

    Joined:
    Jul 10, 2017
    Posts:
    30
    Just posting to report I'm seeing the same thing here on a nearly empty Unity 2020.2.0b13
     
    ingridsl likes this.
  28. amitpariz

    amitpariz

    Joined:
    Sep 14, 2020
    Posts:
    1
    same here, even when starting a new project...
     
    mysticvalleycsa likes this.
  29. WhiteRussianTony

    WhiteRussianTony

    Joined:
    Nov 25, 2020
    Posts:
    1
    I'm using unity version 2019.4.15f1. I used to start a new project from 2D template without a problem. Lately, I'm getting the same problem as well when I started a new project. It's weird 'cause i did not update the version with newer one at all. I tried @EpicAsMe 's solution and worked for me. Still needs to be solved, its so annoying.
     
  30. oobartez

    oobartez

    Joined:
    Oct 12, 2016
    Posts:
    168
    We're seeing the same problem on Unity 2020.1.13f1. After deleting the Library folder Unity launches once without errors but then the next launch crashes again which in practice forces you to delete Library every time before you start Unity, which makes it impossible to work on the project.

    Is anyone from Unity aware of the problem?
     
  31. Matt-Cranktrain

    Matt-Cranktrain

    Joined:
    Sep 10, 2013
    Posts:
    132
    I get this error on first open of my project and I have to close Unity and open it again until it goes away and I have a working Inspector.
     
  32. Diamondmeh000

    Diamondmeh000

    Joined:
    Sep 18, 2020
    Posts:
    1
    Extremely annoying issue, just keeps popping up when I start unity editor in 2020.1.8f1 loads of them too. has this error been fixed in 2020.2?
     
    mysticvalleycsa likes this.
  33. xxluky

    xxluky

    Joined:
    Dec 4, 2014
    Posts:
    19
    Same problem here. Using 2020.1.13f1
    Running Unity on Windows
     
    Last edited: Jan 2, 2021
  34. oobartez

    oobartez

    Joined:
    Oct 12, 2016
    Posts:
    168
    Our team is seeing the same or similar problem on Unity 2020.2.0f1. We have to constantly delete the layout files.

    Here is a portion of the log file:
    Code (csharp):
    1. Invoked RoslynAnalysisRunner static constructor.
    2. RoslynAnalysisRunner will not be running.
    3. RoslynAnalysisRunner has terminated.
    4. NullReferenceException: Object reference not set to an instance of an object
    5.   at UnityEditor.UIElements.UIElementsEditorUtility..cctor () [0x0005c] in /Users/bokken/buildslave/unity/build/External/MirroredPackageSources/com.unity.ui/Editor/UIElementsEditorUtility.cs:59
    6. Rethrow as TypeInitializationException: The type initializer for 'UnityEditor.UIElements.UIElementsEditorUtility' threw an exception.
    7.   at UnityEditor.EditorUIServiceImpl.AddDefaultEditorStyleSheets (UnityEngine.UIElements.VisualElement ve) [0x00000] in /Users/bokken/buildslave/unity/build/Modules/UIServiceEditor/EditorUIService.cs:45
    8.   at UnityEditor.EditorWindow.CreateRoot () [0x00045] in /Users/bokken/buildslave/unity/build/Editor/Mono/EditorWindow.cs:1222
    9.   at UnityEditor.EditorWindow.get_rootVisualElement () [0x00000] in /Users/bokken/buildslave/unity/build/Editor/Mono/EditorWindow.cs:45
    10.   at UnityEditor.UIElements.DefaultEditorWindowBackend.RegisterWindow () [0x0001c] in /Users/bokken/buildslave/unity/build/External/MirroredPackageSources/com.unity.ui/Editor/WindowBackends/DefaultEditorWindowBackend.cs:87
    11.   at UnityEditor.UIElements.DefaultEditorWindowBackend.OnCreate (UnityEditor.IWindowModel model) [0x000a6] in /Users/bokken/buildslave/unity/build/External/MirroredPackageSources/com.unity.ui/Editor/WindowBackends/DefaultEditorWindowBackend.cs:42
    12. UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
    13. UnityEngine.DebugLogHandler:LogException(Exception, Object)
    14. UnityEngine.Logger:LogException(Exception, Object)
    15. UnityEngine.Debug:LogException(Exception)
    16. UnityEditor.UIElements.DefaultEditorWindowBackend:OnCreate(IWindowModel) (at /Users/bokken/buildslave/unity/build/External/MirroredPackageSources/com.unity.ui/Editor/WindowBackends/DefaultEditorWindowBackend.cs:48)
    17. UnityEditor.GUIView:set_windowBackend(IWindowBackend) (at /Users/bokken/buildslave/unity/build/Editor/Mono/GUIView.cs:142)
    18. UnityEditor.GUIView:OnEnable() (at /Users/bokken/buildslave/unity/build/Editor/Mono/GUIView.cs:154)
    19. UnityEditor.HostView:OnEnable() (at /Users/bokken/buildslave/unity/build/Editor/Mono/HostView.cs:149)
    20.  
     
  35. jarmick

    jarmick

    Joined:
    Dec 3, 2015
    Posts:
    12
    There seems to be a few variations of the problem discussed here, but what worked for me was to close the 'Asset Store' tab in the Editor. I think Unity has decided to discontinue access to the asset store via the editor, so having the tab open was throwing a null reference...

    EDIT: The above worked a few times, but problem appeared again. Opening the Package Manager and updating all the assets/packages worked for me.
     
    Last edited: Jan 20, 2021
    AltIns420 likes this.
  36. xxluky

    xxluky

    Joined:
    Dec 4, 2014
    Posts:
    19
    Hi, to follow up my reply...
    With my team we are running Unity on three computers. I was seeing this error only on one of them after Unity Upgrade. So I reinstalled the Unity to same version and this problem is suddenly gone. Wish you good luck on this annoying issue.
     
  37. FIFTYTWO

    FIFTYTWO

    Joined:
    Oct 21, 2014
    Posts:
    50
    The same in our team, only one machine has the issue and it disappears after reinstalling Unity. But the issue seems to come back after some days of work. Currently we're using Unity 2020.2.0f1
     
  38. BlippyBlooppy

    BlippyBlooppy

    Joined:
    Feb 29, 2020
    Posts:
    1
    I've been getting this error ever since I upgraded to 2020.2.0f1. Deleting the [ProjectDirectory]/Library directory works most of the time for me (keeps editor layout). Sometimes I'll delete Library and Unity still will refuse to load. When that happens I have to load a project with an older version of Unity, open an exiting project in 2020.2.0f1, or create a new blank project in 2020.2.0f1. After doing that and removing the Library directory, I can load into the original project. Super annoying.

    Here the last chunk of the editor log
    Code (CSharp):
    1. (Filename: /home/bokken/buildslave/unity/build/Runtime/Export/Scripting/StackTrace.cs Line: 37)
    2.  
    3. NullReferenceException: Object reference not set to an instance of an object
    4.   at UnityEditor.UIElements.UIElementsEditorUtility..cctor () [0x0005c] in /home/bokken/buildslave/unity/build/External/MirroredPackageSources/com.unity.ui/Editor/UIElementsEditorUtility.cs:59
    5. Rethrow as TypeInitializationException: The type initializer for 'UnityEditor.UIElements.UIElementsEditorUtility' threw an exception.
    6.   at UnityEditor.EditorUIServiceImpl.AddDefaultEditorStyleSheets (UnityEngine.UIElements.VisualElement ve) [0x00000] in /home/bokken/buildslave/unity/build/Modules/UIServiceEditor/EditorUIService.cs:45
    7.   at UnityEditor.EditorWindow.CreateRoot () [0x00045] in /home/bokken/buildslave/unity/build/Editor/Mono/EditorWindow.cs:1222
    8.   at UnityEditor.EditorWindow.get_rootVisualElement () [0x00000] in /home/bokken/buildslave/unity/build/Editor/Mono/EditorWindow.cs:45
    9.   at UnityEditor.UIElements.DefaultEditorWindowBackend.UpdateStyleMargins () [0x0000d] in /home/bokken/buildslave/unity/build/External/MirroredPackageSources/com.unity.ui/Editor/WindowBackends/DefaultEditorWindowBackend.cs:61
    10.   at UnityEditor.UIElements.DefaultEditorWindowBackend.UnityEditor.IEditorWindowBackend.ViewMarginsChanged () [0x00001] in /home/bokken/buildslave/unity/build/External/MirroredPackageSources/com.unity.ui/Editor/WindowBackends/DefaultEditorWindowBackend.cs:55
    11.   at UnityEditor.HostView.UpdateViewMargins (UnityEditor.EditorWindow view) [0x0000e] in /home/bokken/buildslave/unity/build/Editor/Mono/HostView.cs:117
    12.   at UnityEditor.HostView.SetActualViewPosition (UnityEngine.Rect newPos) [0x0001e] in /home/bokken/buildslave/unity/build/Editor/Mono/HostView.cs:131
    13.   at UnityEditor.DockArea.SetActualViewPosition (UnityEngine.Rect newPos) [0x0000e] in /home/bokken/buildslave/unity/build/Editor/Mono/GUI/DockArea.cs:602
    14.   at UnityEditor.HostView.SetPosition (UnityEngine.Rect newPos) [0x00009] in /home/bokken/buildslave/unity/build/Editor/Mono/HostView.cs:123
    15.   at UnityEditor.View.set_position (UnityEngine.Rect value) [0x00001] in /home/bokken/buildslave/unity/build/Editor/Mono/View.cs:119
    16.   at UnityEditor.SplitView.PlaceView (System.Int32 i, System.Single pos, System.Single size) [0x0009b] in /home/bokken/buildslave/unity/build/Editor/Mono/GUI/SplitView.cs:179
    17.   at UnityEditor.SplitView.SetupRectsFromSplitter () [0x000be] in /home/bokken/buildslave/unity/build/Editor/Mono/GUI/SplitView.cs:106
    18.   at UnityEditor.SplitView.Reflow () [0x00072] in /home/bokken/buildslave/unity/build/Editor/Mono/GUI/SplitView.cs:156
    19.   at UnityEditor.SplitView.SetPosition (UnityEngine.Rect newPos) [0x00009] in /home/bokken/buildslave/unity/build/Editor/Mono/GUI/SplitView.cs:732
    20.   at UnityEditor.View.set_position (UnityEngine.Rect value) [0x00001] in /home/bokken/buildslave/unity/build/Editor/Mono/View.cs:119
    21.   at UnityEditor.SplitView.PlaceView (System.Int32 i, System.Single pos, System.Single size) [0x0009b] in /home/bokken/buildslave/unity/build/Editor/Mono/GUI/SplitView.cs:179
    22.   at UnityEditor.SplitView.SetupRectsFromSplitter () [0x000be] in /home/bokken/buildslave/unity/build/Editor/Mono/GUI/SplitView.cs:106
    23.   at UnityEditor.SplitView.Reflow () [0x00072] in /home/bokken/buildslave/unity/build/Editor/Mono/GUI/SplitView.cs:156
    24.   at UnityEditor.SplitView.SetPosition (UnityEngine.Rect newPos) [0x00009] in /home/bokken/buildslave/unity/build/Editor/Mono/GUI/SplitView.cs:732
    25.   at UnityEditor.View.set_position (UnityEngine.Rect value) [0x00001] in /home/bokken/buildslave/unity/build/Editor/Mono/View.cs:119
    26.   at UnityEditor.MainView.SetPosition (UnityEngine.Rect newPos) [0x00085] in /home/bokken/buildslave/unity/build/Editor/Mono/GUI/MainView.cs:47
    27.   at UnityEditor.View.set_position (UnityEngine.Rect value) [0x00001] in /home/bokken/buildslave/unity/build/Editor/Mono/View.cs:119
    28.   at UnityEditor.ContainerWindow.OnResize () [0x00013] in /home/bokken/buildslave/unity/build/Editor/Mono/ContainerWindow.cs:446
    29. UnityEditor.EditorUtility:DisplayDialogComplex(String, String, String, String, String)
    30. UnityEditor.WindowLayout:LoadWindowLayout(String, Boolean, Boolean, Boolean) (at /home/bokken/buildslave/unity/build/Editor/Mono/GUI/WindowLayout.cs:1179)
    31. UnityEditor.WindowLayout:LoadProjectLayout(Boolean) (at /home/bokken/buildslave/unity/build/Editor/Mono/GUI/WindowLayout.cs:352)
    32. UnityEditor.WindowLayout:LoadCurrentModeLayout(Boolean) (at /home/bokken/buildslave/unity/build/Editor/Mono/GUI/WindowLayout.cs:94)
    33. UnityEditor.WindowLayout:LoadDefaultWindowPreferences() (at /home/bokken/buildslave/unity/build/Editor/Mono/GUI/WindowLayout.cs:84)
     
  39. HugeWill

    HugeWill

    Joined:
    Nov 4, 2016
    Posts:
    27
    Our team is experiencing this problem too in 2020.1.11f1. Not all of our team has it, but a good handful. Only solution at the moment is to restart unity. Every other time restarting Unity it's fixed.
     
  40. a4chteam

    a4chteam

    Joined:
    Dec 22, 2020
    Posts:
    22
    upload_2021-1-24_6-31-28.png

    Only Quit has work.
     
  41. andiCR

    andiCR

    Joined:
    Sep 6, 2012
    Posts:
    27
    This is happening to me on 2020.1.13f1, and it's comes and goes. So frustating. Any word from Unity?
     
  42. lclemens

    lclemens

    Joined:
    Feb 15, 2020
    Posts:
    785
    upload_2021-1-31_11-34-53.png

    I love this window. It brings peace and harmony to my life. Every time I see it, it reminds me of a warm summer day with butterflies, fluffy bunnies, and unicorns. This window is such a blessing to our lives. It teaches us that Unity is a benevolent application that unites us all with love and blissful ecstasy. Whenever we are feeling sad we simply need to launch Unity and we will instantly be comforted by this window of happiness and joy. We must embrace this window and never let it go. We hold it dear to our hearts as we ponder the deep meanings in life such as which of the three buttons to press. Always remember that this window is here to assist us and whisper soothing words of wisdom into our souls, such as failed to load window layout.
     
    triple_why, Lohaz, Jimaniki and 2 others like this.
  43. Shizola

    Shizola

    Joined:
    Jun 29, 2014
    Posts:
    486
    Someone on my team has run into this, has anyone filed a bug report?
     
  44. blackmask86

    blackmask86

    Joined:
    Apr 22, 2020
    Posts:
    7
    I have some error. Its not good
    Code (CSharp):
    1. ReleaseAllScriptCaches did not release all script caches!
    2. 0x00007FF7B09907EC (Unity) StackWalker::GetCurrentCallstack
    3. 0x00007FF7B0994811 (Unity) StackWalker::ShowCallstack
    4. 0x00007FF7B1C08A15 (Unity) GetStacktrace
    5. 0x00007FF7B2AAFC9E (Unity) DebugStringToFile
    6. 0x00007FF7B2AAF9B2 (Unity) AssertImplementation
    7. 0x00007FF7B07FBA45 (Unity) ReleaseAllScriptCaches
    8. 0x00007FF7B07F536B (Unity) MonoManager::EndReloadAssembly
    9. 0x00007FF7B07FBD49 (Unity) MonoManager::ReloadAssembly
    10. 0x00007FF7B1990CD7 (Unity) LoadDomainAndUserAssemblies
    11. 0x00007FF7B1993BA6 (Unity) RegisterScriptsAndTryLoadingExistingUserAssemblies
    12. 0x00007FF7B1D5F1CA (Unity) ImportAndPostprocessOutOfDateAssets
    13. 0x00007FF7B1D66A9C (Unity) RefreshInternalV2
    14. 0x00007FF7B1D6A45B (Unity) StopAssetImportingV2
    15. 0x00007FF7B1D613B4 (Unity) InitialScriptRefreshV2
    16. 0x00007FF7B141FC91 (Unity) Application::InitializeProject
    17. 0x00007FF7B1C3899B (Unity) WinMain
    18. 0x00007FF7B38B97B6 (Unity) __scrt_common_main_seh
    19. 0x00007FFCC4457C24 (KERNEL32) BaseThreadInitThunk
    20. 0x00007FFCC464D4D1 (ntdll) RtlUserThreadStart
    21.  
     
  45. Jimaniki

    Jimaniki

    Joined:
    Nov 9, 2017
    Posts:
    20
    Allooooooo Unity's Team are you alive ??
    When will you solve this problem ? Or maybe communicate about that.. ?
     
  46. RSin11

    RSin11

    Joined:
    Jun 9, 2020
    Posts:
    4
    Try closing the Project and reopening it again. All the errors goes away. It works for me every time.
     
  47. bryanosborne

    bryanosborne

    Joined:
    Feb 25, 2019
    Posts:
    1
    Have a lab with 13 identical iMacs. When opening the exact same project file, two of the iMacs give the following:

    ArgumentException: The Object you want to instantiate is null.
    UnityEngine.Object.Instantiate[T] (T original) (at /Users/bokken/buildslave/unity/build/Runtime/Export/Scripting/UnityEngineObject.bindings.cs:277)
    Gamekit2D.VFXController.CreateDefault () (at Assets/2DGamekit/Scripts/Character/MonoBehaviours/VFXController.cs:110)
    Gamekit2D.VFXController.get_Instance () (at Assets/2DGamekit/Scripts/Character/MonoBehaviours/VFXController.cs:101)
    Gamekit2D.TriggerVFX.Trigger (UnityEngine.Transform transform) (at Assets/2DGamekit/Scripts/Character/StateMachineBehaviours/Player/TriggerVFX.cs:39)
    Gamekit2D.TriggerVFX.OnStateExit (UnityEngine.Animator animator, UnityEngine.AnimatorStateInfo stateInfo, System.Int32 layerIndex) (at Assets/2DGamekit/Scripts/Character/StateMachineBehaviours/Player/TriggerVFX.cs:29)

    - close/reopen the project does not fix it.
    - reinstalling Unity does not fix it
    - reimporting the Asset Pack (using 2D
    - there is no user named bokken on the machine, nor is there a /user/bokken directory.
     
  48. lclemens

    lclemens

    Joined:
    Feb 15, 2020
    Posts:
    785
    I updated from 2020.2.0 to 2020.2.4 and haven't seen the problem since. Previously, it happened like clockwork - every other time I opened my project.

    The upgrade was not smooth - for a while it would crash whenever I hit play, but after deleting everything auto-generated (Library folder, Temp folder, all the caches, etc), and messing around which a bunch of stuff (to this day, I'm not sure which thing fixed it), it started to play nice. I had tried deleting all the auto-generated stuff when I was using 2020.2.0, but that did not make a difference - it still coughed up the failed-to-load-layout error every other time. So I'm fairly convinced that it had something to do with the upgrade to 2020.2.4.
     
  49. BigMood42069

    BigMood42069

    Joined:
    Nov 28, 2022
    Posts:
    1
    the day is November 27, 2022, and I still cannot use unity 2020, nor any later versions without a crash and 20+ errors, which is odd, considering everything was fine in the early 2020.3 versions... so what the hell did they do to UNFIX the problem???

    edit: apparently removing a semicolon from my project's name fixed the issue, I feel like an idiot but at the same time I feel like it used to stop you from using invalid characters like that (but it doesn't feel like it should be an invalid character, renaming folders lets you use that character), but the strangest thing is that it never mentions anything like this in the console in any clear way so you'd never know otherwise. Hope this helped, if it didn't, then I hope you find the answer.
     
    Last edited: Nov 28, 2022