- Home /
Memory leak when editing terrain
Any time I try to edit the terrain in a project I'm working on I keep getting an error after exiting play mode that ALLOC_TEMP_MAIN has unfreed allocations which takes my frame rate from around 150 fps to 0.1 fps. I've tried unchecking static on the terrain like I read some people online said might be the issue but that hasn't helped. None of the lights in the scene are baked and the only program that is open is Unity and sometimes Task Manager or Visual Studio. Is there any way to prevent this other than not going into play mode? My unity version is 2021.2.7f1 and the exact warning I'm getting is: "Internal: Stack allocator ALLOC_TEMP_MAIN has unfreed allocations, size (continuously increasing number)
Answer by Mr_Banana12344 · Mar 14 at 04:40 PM
I submitted a bug report and Unity said that it is a known issue and is fixed in Unity 2021.2.10f1 and 2022.1.0a13.
Answer by NaturedOne · Feb 26 at 07:29 AM
Have you tried:
Assets -> Reimport All
Your answer
![](https://koobas.hobune.stream/wayback/20220613053502im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
A List of all Property Drawers 1 Answer
Set MinWidth for EditorWindow 1 Answer
The problem of making large terrains 0 Answers
Help with Missing Monobehaviours and Asset Serialization? 0 Answers
Left Click Up Event in Editor 4 Answers