News › Forums › RAIN › General Discussion and Troubleshooting › Behavior Tree Unity Crash
This topic contains 19 replies, has 4 voices, and was last updated by prime 1 year, 4 months ago.
-
AuthorPosts
-
October 25, 2022 at 11:28 pm #4679
Hello I am new to RAIN. It looks like a great platform and I can’t wait to get started, however, whenever I drag a newly created behavior tree into the behavior tree property on the Mind section of the AIRig component, Unity crashes and the two exceptions below are thrown.
[IMG]http://i41.tinypic.com/2m47rzo.png[/IMG]
October 25, 2022 at 11:29 pm #4680October 26, 2022 at 12:12 am #4681Does that happen every time, or just once? What version of Unity are you running?
October 26, 2022 at 1:37 am #4690It happens everytime. I am using the 4.2.2 build which is the latest as of right now.
October 26, 2022 at 2:27 am #4692Hmm. Does your behavior tree use tree bindings?
October 26, 2022 at 1:22 pm #4701No it does not. It is a simple tree with just a root selector node. I am using Unity Pro as well. I don’t know if that helps you or not. Is there anything else I could get you that would help you debug this with me?
October 26, 2022 at 2:07 pm #4704Would it be possible for you to send us the project that this is crashing on? We’re unable to reproduce the crash - and its something we’ve tested probably thousands of times, so it must just be something unusual about the setup that we haven’t seen before, or a strange state that Unity has gotten itself into.
October 26, 2022 at 3:34 pm #4707The project is rather large, but here is the stack trace for the first exception. Looks like it is coming from RAINBasicMindEditor.DrawInspector method in the dll arising out of the RAINComponentEditor.OnInspectorGUI “filename unknown”.
October 26, 2022 at 4:20 pm #4708I tried removing RAIN from the project entirely, and re-importing, but the issue is still there whenever I click on the Behavior Tree Asset property selector, those exceptions are thrown and no trees show up in the finder. When I drag a behavior tree to the property on the AIRig then Unity crashes.
October 26, 2022 at 4:43 pm #4709Unfortunately, some issue with the forums is keeping me from seeing the stack trace. Can you cut and paste the text out of the unity editor console?
Thanks
October 26, 2022 at 4:49 pm #4711Here is the url to the image on tinypic
October 26, 2022 at 5:48 pm #4714For clarification, when you say Unity “crashes” do you mean that it exits completely and gives you the crash log window, or do you mean that the drag and drop fails and you see the errors in the console?
October 26, 2022 at 5:52 pm #4715It gives the crash log window and then becomes unresponsive. This happens about a second or two after the drag and drop.
The errors come up in the console if I click on the selector to the right of the drag and drop portion of the property. Then the finder comes up and shows no possible behavior trees to select, even though I have made a few with the editor.
October 27, 2022 at 5:51 pm #4736I’m experiencing the same thing, here is a video of it happening:
http://www.youtube.com/watch?v=xZIjmRYHEjY
Specifically it seems if I drag a node outside the behaviour tree window it crashes.
- This reply was modified 1 year, 8 months ago by Maskawanian.
- This reply was modified 1 year, 8 months ago by Maskawanian.
October 27, 2022 at 7:42 pm #4739Ahh… OK. Thanks @Ignis and @Maskawanian. We’ll see if we can get that fixed. That’s a pretty harsh exception being thrown.
In the meantime, the workaround is… don’t do that.
You should drag the BTAsset - which is an Asset that shows up in your Project tab under AI/BehaviorTrees - onto the Behavior Tree field of the Mind. You don’t want to drag and drop out of the editor.
-
AuthorPosts
You must be logged in to reply to this topic.