Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Bug 43GB of ram because of Procedural Sky

Discussion in '2019.3 Beta' started by Bastienre4, Jan 17, 2020.

  1. Bastienre4

    Bastienre4

    Joined:
    Jul 8, 2014
    Posts:
    191
    Hello!

    We've updated on the Unity 2019.3.0f5. That updated the HDRP version and we also updated the Procedural Sky "sample".
    upload_2020-1-17_11-9-15.png

    Now the memory increase super fast when the sky is enabled (no limits, my record is 43GB of ram before Unity -and the computer- crash).
    In this screenshot the horizontal arrow is the curve to follow, the vertical arrow is the moment where I disabled the sky in the volume. As you can see, it stop growing when I disable it.
    upload_2020-1-17_11-1-20.png

    Here's the memory details. I can see two suspect things :
    Under Not Saved/RenderTextures:
    upload_2020-1-17_11-7-31.png

    Under Not Saved/CubemapArray
    upload_2020-1-17_11-7-58.png

    More infos
    upload_2020-1-17_11-11-15.png

    Any ideas? This is a critical bug for us :(
    Thanks and have a nice day!

    EDIT : The issue seem to be related to the fact that the directional light is rotating at each frame, thus regenerating the sky everytime. In the previous version this was fine and produced no memory leaks.

    EDIT2 : It seem to bug only when we have the scene view and the game view opened and visible.
     
    Last edited: Jan 17, 2020
    Bordeaux_Fox likes this.
  2. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,136
    Could you please submit a bug report with a reproduction project for this issue?
     
  3. Bastienre4

    Bastienre4

    Joined:
    Jul 8, 2014
    Posts:
    191
    The issue seem to be related to the fact that the directional light is rotating at each frame, thus regenerating the sky everytime. In the previous version this was fine and produced no memory leaks.
     
  4. Bastienre4

    Bastienre4

    Joined:
    Jul 8, 2014
    Posts:
    191
    I posted a bug report with a repro project: Case 1212191
     
  5. Bastienre4

    Bastienre4

    Joined:
    Jul 8, 2014
    Posts:
    191
    Another interesting discovery : It seem to bug only when we have the scene view and the game view opened and visible.
     
  6. Grimreaper358

    Grimreaper358

    Joined:
    Apr 8, 2013
    Posts:
    789
  7. konsic

    konsic

    Joined:
    Oct 19, 2015
    Posts:
    995
    Is LatestGreen the same as 7.2.0 ?
     
  8. Bastienre4

    Bastienre4

    Joined:
    Jul 8, 2014
    Posts:
    191
    Updating packages to 7.1.8 does NOT fix the issue. ;)
     
  9. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,136
    Bastienre4 and Tanner555 like this.
  10. konsic

    konsic

    Joined:
    Oct 19, 2015
    Posts:
    995
    I'm getting crash with procedural sky. I don't have 43 GB of ram. So I wonder if the crash is happening out of memory.
     
  11. Bastienre4

    Bastienre4

    Joined:
    Jul 8, 2014
    Posts:
    191
    If you have a moving directional light, probably. Send your editor log so we can check.

    Thank you for the update.
     
    LeonhardP likes this.