Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

TLS Allocator Unfreed Allocations

Discussion in 'Editor & General Support' started by ThirdHorizon, Dec 11, 2021.

  1. ThirdHorizon

    ThirdHorizon

    Joined:
    Jan 21, 2021
    Posts:
    1
    Hey there, I have searched Google and the forum already, but couldnt find a solution that worked for me. After some troubleshooting i figured that the problem seems to have to do with terrain layers. When I add a 3rd or 4th layer the errors pop up. What I get are hundreds of error and warning notes of unfreed allocations. "TLS Allocator ALLOC_TEMP_TLS".

    I already tried the stuff I found on the internet, but nothing seems to solve the problem. (The game runs perfectly fine in gameview, but the editor gets laggy when the errors appear)

    I'm really desperate at this point.. Please help me :(
     

    Attached Files:

  2. NWHCoding

    NWHCoding

    Joined:
    Jul 12, 2012
    Posts:
    1,655
    I am getting similar messages as soon as I add a layer to a terrain.
     
  3. gewl

    gewl

    Joined:
    May 19, 2016
    Posts:
    95
    I'm getting this error too on 2021.2.8 URP and HDRP 12, although not from adding a layer to terrain. Not sure what the cause is.
     
  4. WildStyle69

    WildStyle69

    Joined:
    Jul 20, 2016
    Posts:
    317
    I'm also running into this problem. Took me a while to track back and find out that it's happening once I assign a material with Better Lit Shaders 2021 (BLS2021) in Unity 2021.2.7f1 with URP 12+. It's a big problem right now, and really slowing things down.

    From the Unity console.
    2022-01-15_21h57_37.png

    Bug activates after playing one time with a BLS2021 material in the scene. Then keeps spamming every time I move the camera.

    Reloading the editor it goes away, until next time I play.
     
  5. Deshalsky

    Deshalsky

    Joined:
    Nov 16, 2013
    Posts:
    57
    Hi. Did you find a solution for this? I don't understand rendering pipelines well enough to work it out.
     
  6. WildStyle69

    WildStyle69

    Joined:
    Jul 20, 2016
    Posts:
    317
    Good news - this issue has been fixed in Unity 2021.2.9f1!

    // Wildstyle
     
  7. Nanon413

    Nanon413

    Joined:
    Apr 5, 2016
    Posts:
    7
    Hi, this problem isn't fixed in 2021.29f1, i'm getting same error in adding 5th layer, i explain me, if you got 4 layer, you launch the play mode, and stop the play mode, when you click on the terrain in hierachy with 4layer nothing happen, but when you add the 5th layer, the TLS ALLOCATION spam in the consol, in unity 2020 version i never get the problem of TLS ALLOCATION ,with more than 4layer.
     
  8. Nanon413

    Nanon413

    Joined:
    Apr 5, 2016
    Posts:
    7
    Hi, after update unity to 2021.2.10f1 it seem like fixed.
     
    WildStyle69 likes this.