Search Issue Tracker
Fixed in 2017.2.0f3
Votes
2
Found in
2017.2.0b6
Issue ID
940928
Regression
Yes
Memory leak in Editor
1. What happened
Attached project reports value returned by Profiler.GetTotalAllocatedMemoryLong(). That value steadily increasing. Happens only in Editor and not in Player (tried also with Player dev mode). The same happens if turning the UI off, reporting the values only to console with Debug.Log.
Opening other Editor windows show immediate memory increase. The most obvious one is Profiler - after opening it memory usage would 'jump' by ~7 MB and won't go down after the window is closed, continuing to grow.
I was leaving the Editor running for about an hour and the behaviour didn't change - steady growth continues.
Haven't witnessed any side effects of it though.
2. How we can reproduce it using the example you attached
- Scene 1
- Play
>>> Observe that 'Total allocated' is increasing
- Open Profiler
>>> Total increased by ~7 MBs
- Close Profiler
>>> Memory remains at about the same level and continues to grow.
This is a regression from 5.6.3f1.
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
- [Dragon Crashers] Build fails in U6
- [Dragon Crashers] 4 Shader error messages on import
- [Dragon Crashers] Readme text is white on light grey
- Cursor stays in front of the first character when entering text in the TextMeshPro field
- Searching in Hierarchy causes unwanted component calls
CloudyVR
Dec 23, 2018 14:52
2018.1.0f2 still must restart Unity after every 5 plays. What is going on?? Cant Use UNITY ANYMORE ITS STEALS ALL MY MEMORY !!!!!
Abuthar
Feb 17, 2018 04:42
Definitely Still happening on 2017.3.1p1
tigershan
Jan 17, 2018 06:04
Confirmed with unity 2017.2.1f1
OmarVectorX
Dec 06, 2017 08:31
I'm just like CHRTELLEFSEN , I'm confirming this at 2017.2.0f3.
vladk
Oct 23, 2017 21:07
It's getting worse! 2017.2 it's GETTING WORSE!!!
ChrTellefsen
Aug 16, 2017 13:31
I can confirm that this is happening in 2017.1.0f3. As far as I can tell, Shared UI Mesh keeps allocating memory rapidly in play mode until the Unity Editor crashes.