Search Issue Tracker

Fixed in 2019.2.X



Found in


Issue ID




Memory leak if only one display device is connected when game is using multiple displays



How to reproduce:
1. Open the "DisplayProject_New" project
2. Open the "scene" scene
3. Make sure your computer has only one display device connected
4. Select "Run In Background" in Player Settings
5. Build & Run the project
6. Check the memory usage (memory is leaking faster in user's project)

Actual result: The game's memory usage is increasing all the time.

Reproducible with: 2017.3.0a7, 2017.2.0b9, 2017.1.0p5, 5.6.3f1, 5.5.4p4.

When a computer has two or more display devices the leak is not present.
The Unity Profiler doesn't show what is leaking the memory, only "Total Allocated" is growing.
The Canvas that is not shown must have UI elements to reproduce this leak.

Fixed in 2019.2.0a8.

  1. karl_jones

    Jan 17, 2019

    Hi. We are investigating the bug. For now the workaround is to disable any cameras that are not rendering to a display.

Comments (4)

  1. Topher_CGT

    Nov 16, 2020 16:15

    This is happening in 2018.4.27f LTS version.

  2. EduardBosch

    Nov 06, 2018 16:10

    I'm having the same issue on 2018.2.11f1

    I've solved the issue by disabling the second camera in case the second display is not present.

  3. RobMalvern

    Sep 06, 2018 14:33

    I've observed this in 2018.2.4f1

    In my case the profiler showed that the memory is being leaked here: Other->MemoryPool->CanvasBatchRenderers

    In addition it happens if there is a Camera targeting Display 2 and Display 2 has not been activated.

  4. arkano22

    May 01, 2018 20:23

    Hi there,

    Any updates on this? We're developing a multidisplay app, and once we upgraded to 2017.4.1, it leaks memory like crazy and crashes within a couple minutes if not all screens are plugged in. If we disable all cameras that render to any display other than the main one, things work fine.

    In the detailed memory profiler, Other->MemoryPool->CanvasBatchRenderers seems to be the culprit: it grows non-stop until the OS kills the app.

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.