Search Issue Tracker
Won't Fix
Votes
0
Found in
2017.4.0f1
2017.4.20f2
2018.3.0a1
2019.1.0a1
2019.2.0a1
Issue ID
1136993
Regression
No
GUILayout.Window never releases old windows which causes a memory leak
How to reproduce:
1. Open the attached project "GUILayoutWindowMemLeak.zip" and scene "TestScene"
2. Enter Play Mode
3. Observe the Profiler Window's memory summary
Expected result: the memory used by mono and unity does not continue to increase over time indefinitely (as seen in the profiler's memory summary)
Actual result: used memory increases indefinitely (0.5GB for mono after ~40 minutes)
Reproducible with: 2017.4.24f1, 2018.3.10f1, 2019.1.0b8, 2019.2.0a9
Note: the demo uses windows with different IDs every frame
-
B16B0SS
Nov 11, 2021 13:02
We use a third party tool that makes heavy use of GUILayout.Window to render a canvas. Needless to say, this issue is a problem for us as our computers run out of memory withing a days work. Would be nice for it to be fixed or would like to know of a workaround as this low-priority issue causes a loss of time for us on a daily basis.
-
LT23Live
Sep 16, 2021 15:02
I am also receiving this issue for Unity 2020.3.12 LTS and my coworker reported this with Unity 2020.3.16 LTS. This is really bad for making custom editor windows.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on BatchRendererCullingOutputs::SyncFences when navigating through a Scene via the Scene view
- [Android][Vulkan] Crash on /system/lib/libandroid.so (ANativeWindow_setBuffersGeometry+4) when the Vulkan Graphics API is used
- Event handlers are preventing operations when trying to copy or paste HTML text in the WebGL Player
- [macOS] Crash on __pthread_kill when Exporting a Package while another export is in progress
- Crash on TransformAccessDestroyCallback when removing a URP Decal Projector component from a parent GameObject that had a URP Decal Projector child GameObject
Resolution Note (2019.3.X):
low priority defects for the moment and unlikely to be fixed for the moment. it's staying in our DB.