I have a bug that is preventing me from opening my project. I was editing a custom action to include an additional variable using my IDE. Afterwards, I noticed that there was a way to do it in the editor. So when I corrected it in the editor it had a duplicate variable name. I went on to delete the duplicate, and then tried to change the name of the class (in the IDE). At that point Unity threw a fatal error and will not reopen the project. The error is:
Input stream uses a type without including its layout information (type tree): data stream is corrupt!
UnityEditor.AssetDatabase:LoadAllAssetsAtPath (string)
Unity.Behavior.BehaviorAuthoringGraph:EnsureAssetHasBlackboard () (at ./Library/PackageCache/com.unity.behavior/Authoring/Asset/BehaviorAuthoringGraph.cs:417)
Unity.Behavior.GraphFramework.GraphAsset:OnEnable () (at ./Library/PackageCache/com.unity.behavior/Tools/Graph/Asset/GraphAsset.cs:99)
I deleted the custom action and even the referencing behavior tree, but I am still unable to open the project even with deleting and rebuilding Library.
Full trace:
Input stream uses a type without including its layout information (type tree): data stream is corrupt!
UnityEngine.Debug:ExtractStackTraceNoAlloc (byte*,int,string)
UnityEngine.StackTraceUtility:ExtractStackTrace ()
UnityEditor.AssetDatabase:LoadAllAssetsAtPath (string)
Unity.Behavior.BehaviorAuthoringGraph:EnsureAssetHasBlackboard () (at ./Library/PackageCache/com.unity.behavior/Authoring/Asset/BehaviorAuthoringGraph.cs:417)
Unity.Behavior.BehaviorGraphEditor:Load (Unity.Behavior.GraphFramework.GraphAsset) (at ./Library/PackageCache/com.unity.behavior/Authoring/UI/AssetEditor/BehaviorGraphEditor.cs:107)
Unity.Behavior.BehaviorWindow:OnEnable () (at ./Library/PackageCache/com.unity.behavior/Editor/Windows/BehaviorWindow.cs:54)
UnityEditorInternal.InternalEditorUtility:LoadSerializedFileAndForget (string)
UnityEditor.WindowLayout:LoadWindowLayout (string,UnityEditor.WindowLayout/LoadWindowLayoutFlags)
UnityEditor.WindowLayout:LoadWindowLayout (string,bool,bool,bool,bool)
UnityEditor.WindowLayout:LoadLastUsedLayoutForCurrentMode (bool)
UnityEditor.WindowLayout:LoadCurrentModeLayout (bool)
UnityEditor.WindowLayout:LoadDefaultWindowPreferences ()
[./Library/PackageCache/com.unity.behavior/Authoring/Asset/BehaviorAuthoringGraph.cs line 417]
Full dialog message :
Input stream uses a type without including its layout information (type tree): data stream is corrupt!
UnityEditor.AssetDatabase:LoadAllAssetsAtPath (string)
Unity.Behavior.BehaviorAuthoringGraph:EnsureAssetHasBlackboard () (at ./Library/PackageCache/com.unity.behavior/Authoring/Asset/BehaviorAuthoringGraph.cs:417)
Unity.Behavior.BehaviorGraphEditor:Load (Unity.Behavior.GraphFramework.GraphAsset) (at ./Library/PackageCache/com.unity.behavior/Authoring/UI/AssetEditor/BehaviorGraphEditor.cs:107)
Unity.Behavior.BehaviorWindow:OnEnable () (at ./Library/PackageCache/com.unity.behavior/Editor/Windows/BehaviorWindow.cs:54)
UnityEditorInternal.InternalEditorUtility:LoadSerializedFileAndForget (string)
UnityEditor.WindowLayout:LoadDefaultWindowPreferences ()
UnityEngine.Debug:ExtractStackTraceNoAlloc (byte*,int,string)
UnityEngine.StackTraceUtility:ExtractStackTrace ()
UnityEditor.AssetDatabase:LoadAllAssetsAtPath (string)
Unity.Behavior.BehaviorAuthoringGraph:EnsureAssetHasBlackboard () (at ./Library/PackageCache/com.unity.behavior/Authoring/Asset/BehaviorAuthoringGraph.cs:417)
Unity.Behavior.BehaviorGraphEditor:Load (Unity.Behavior.GraphFramework.GraphAsset) (at ./Library/PackageCache/com.unity.behavior/Authoring/UI/AssetEditor/BehaviorGraphEditor.cs:107)
Unity.Behavior.BehaviorWindow:OnEnable () (at ./Library/PackageCache/com.unity.behavior/Editor/Windows/BehaviorWindow.cs:54)
UnityEditorInternal.InternalEditorUtility:LoadSerializedFileAndForget (string)
UnityEditor.WindowLayout:LoadWindowLayout (string,UnityEditor.WindowLayout/LoadWindowLayoutFlags)
UnityEditor.WindowLayout:LoadWindowLayout (string,bool,bool,bool,bool)
UnityEditor.WindowLayout:LoadLastUsedLayoutForCurrentMode (bool)
UnityEditor.WindowLayout:LoadCurrentModeLayout (bool)
UnityEditor.WindowLayout:LoadDefaultWindowPreferences ()
[./Library/PackageCache/com.unity.behavior/Authoring/Asset/BehaviorAuthoringGraph.cs line 417]