Search Issue Tracker

Fixed in 2017.2.0f3

Votes

2

Found in

2017.2.0b6

Issue ID

940928

Regression

Yes

Memory leak in Editor

Themes

-

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.

Comments (6)

  1. 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 !!!!!

  2. Abuthar

    Feb 17, 2018 04:42

    Definitely Still happening on 2017.3.1p1

  3. tigershan

    Jan 17, 2018 06:04

    Confirmed with unity 2017.2.1f1

  4. OmarVectorX

    Dec 06, 2017 08:31

    I'm just like CHRTELLEFSEN , I'm confirming this at 2017.2.0f3.

  5. vladk

    Oct 23, 2017 21:07

    It's getting worse! 2017.2 it's GETTING WORSE!!!

  6. 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.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.