0
Fixed

Problem with behavior panel locking

crelus 1 month ago in Behavior updated by Marti (Lead Developer) 4 weeks ago 2

Hi,

I purchased game creator and a couple of modules yesterday including the behavior module. When I try to use it, it locks up.  I created a brand new unity 2019 project and added game creator, updated to the latest version (1.19), then added and activated the behavior module and the shooter module.

When I open the GUI for working with behaviors, I add a root, then go to add a task node and everything stops responding.

I went through, made sure my cahce's were cleaned up, my drives had plenty of free space, etc.. Then I again created a new unity 2019 project. I added Game creator and upgrade to 1.19.  I then added the behavior module and enabled it. I created a graph, added a root, and again, when I added a task node everything locked up.   (See second log below)

Can you please advise on what I could do to fix this please?

-- FROM FIRST PROJECT---

StackOverflowException: The requested operation caused a stack overflow.

at (wrapper managed-to-native) UnityEditor.AssetDatabase.SaveAssets()
at GameCreator.Behavior.BehaviorGraphEditor.CreateNode[T] (GameCreator.Behavior.Node parent) [0x00085] in C:\txx.vol\txx.work\Unity\AI2\Assets\Plugins\GameCreator\Behavior\Editor\BehaviorTree\BehaviorGraphEditor.cs:233
at GameCreator.Behavior.BehaviorGraphEditor.CreateTask (System.Object parent) [0x00001] in C:\txx.vol\txx.work\Unity\AI2\Assets\Plugins\GameCreator\Behavior\Editor\BehaviorTree\BehaviorGraphEditor.cs:171
at UnityEditor.GenericMenu.CatchMenu (System.Object userData, System.String[] options, System.Int32 selected) [0x00020] in :0

(Filename: Assets/Plugins/GameCreator/Behavior/Editor/BehaviorTree/BehaviorGraphEditor.cs Line: 233)

--FROM SECOND PROJECT--

StackOverflowException: The requested operation caused a stack overflow.
at (wrapper managed-to-native) UnityEditor.AssetDatabase.SaveAssets()
at GameCreator.Behavior.BehaviorGraphEditor.CreateNode[T] (GameCreator.Behavior.Node parent) [0x00085] in C:\txx.vol\txx.work\Unity\AI2\Assets\Plugins\GameCreator\Behavior\Editor\BehaviorTree\BehaviorGraphEditor.cs:233
at GameCreator.Behavior.BehaviorGraphEditor.CreateTask (System.Object parent) [0x00001] in C:\txx.vol\txx.work\Unity\AI2\Assets\Plugins\GameCreator\Behavior\Editor\BehaviorTree\BehaviorGraphEditor.cs:171
at UnityEditor.GenericMenu.CatchMenu (System.Object userData, System.String[] options, System.Int32 selected) [0x00020] in :0

(Filename: Assets/Plugins/GameCreator/Behavior/Editor/BehaviorTree/BehaviorGraphEditor.cs Line: 233)

Unity version:
2019.4.1f1
Game Creator version:
1.19

Tried with Unity 2020 and it works fine.  I can live with that.

Thanks

Fixed

Yeah, this is a bug that occurred with the first versions of Unity 2019.4 (up until 2019.4.3f). There was a bug in the Asset Pipeline v2 but it now has been fixed by Unity.

Simply update your Unity 2019.4 version to the latest one and it should work just fine.