Out of memory exception freezes unity

Mondain

New member
Hi

I have some issues with behavior designer.

If I modify a behavior tree (prefab in project view) and I click on a instance of this prefab (in scene view), unity is freezing.

Strange stuff is also happening:
- Behavior tree branches disappear.
- Made changes revert suddenly.
- Behaviour tree of same prefab are different.

Sometimes I can't start again my project, because if I start unity, it freezes immediately (because the prefab is selected).
I closed unity more than 15 times with task manager in the last days and I deleted the library multiple times (to revert selection and get control over my project).

I found this error:
behavior_angry.jpg

Hope you can help me.

Best regards!
 

Justin

Administrator
Staff member
Did you just leave a review on the Asset Store? There was a recent review left and it looks similar to the error that you are getting.

Can you send me a repro scene so I can take a closer look at that error?
 

Mondain

New member
Yes you're right.

While I was creating a repro scene, I recognized: I only can edit behaviour trees of prefabs if I edit the prefab instance (click "Open Prefab" in project view). But in my case, I can edit the prefab in project view directly :eek:

Perhaps this is the reason for all my problems...

behavior_angry2.jpg
 

Justin

Administrator
Staff member
Do you have "Allow Edit of Prefab Instances" enabled within the Behavior Designer preferences? This preference exists because I've seen Unity corrupt prefab values as it is trying to merge the prefab instance data.
 

Mondain

New member
No, I changed nothing.

I will clean up my scene and solve all exceptions and warnings. Perhaps some magic will happen.

behavior_angry3.jpg
 

Mondain

New member
The problem is still not solved.
The out of memory issue is still happening, also if I modify the prefab in prefab editing mode.

You cannot get a clue from the error?
 

Justin

Administrator
Staff member
If you can send me a repro scene I can take a closer look at the cause, but I haven't seen that error before so I'll need some type of a repro scene.
 

skakun

New member
Hello Justin. I have a similar problem. Please provide me your GitHub username so I can share to you my project.
 

Justin

Administrator
Staff member
If you can send me a zipped up project that would be great - it'll be quicker than having to download a local copy of the entire repository :)
 

nRedux

Member
I have the same problem when applying a prefab which I've changed a behavior on. This is an extremely disruptive problem at the moment.
 

nRedux

Member
You can clear the startup scene in Library/LastSceneManagerSetup.txt as a workaround. Open the offending scene, create a new scene (multi edit) move everything except for the offending object into that new scene, save over existing scene.

It's a pain in the ass but it lets you get back into your project. Is there any progress on the cause of this issue? It's happened to me twice in the span of a week.
 

Justin

Administrator
Staff member
I haven't gotten a repro scene that shows the out of memory error so there hasn't been any progress. This is also likely project/machine dependent so it'll be tough to reproduce across all machines.

In general though there really isn't much that can be done for out of memory other than to use less of it in your game. If you look at the profiler you can see what assets are using the most memory and then reduce from there.
 

nRedux

Member
This happens as a result of saving a prefab after changing some things in a behavior designer tree. I'll see if I can send a repro case. I've never had anything like this other than UCC/BD, pretty positive it has something to do with your assets.
 
Top