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. We’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

Bug TLS Allocator ALLOC_TEMP_DBG_TLS

Discussion in 'Editor & General Support' started by Michal_Stangel, May 8, 2023.

  1. Michal_Stangel

    Michal_Stangel

    Joined:
    Apr 17, 2017
    Posts:
    141
    Hello,

    I'm getting a lot of these errors in console when game is running. It probably started with an upgrade to Unity 2022.2. Currently running 2022.2.16 and 2022.2.18, HDRP.
    Editor restart doesn't help. I also tried to delete Library folder and let Unity rebuild it.

    TLS Allocator ALLOC_TEMP_DBG_TLS, underlying allocator ALLOC_TEMP_MAIN has unfreed allocations, size 40
    Internal: Stack allocator ALLOC_TEMP_MAIN has unfreed allocations, size 40

    Allocation of 40 bytes at 0000022660D06A70
    0x00007ff7ce7c8def (Unity) keywords::LocalKeywordState::AssignFromOther
    0x00007ff7ce7c7a46 (Unity) keywords::LocalKeywordState::eek:perator=
    0x00007ff7cf4b21df (Unity) CreateJobData
    0x00007ff7cf4b4cc5 (Unity) GetSubProgramForShaderSnippet
    0x00007ff7ce7d82f8 (Unity) ShaderLab::program::CompileShaderSubProgram
    0x00007ff7ce7d9c58 (Unity) ShaderLab::program::GetMatchingSubProgram
    0x00007ff7ce7e0a86 (Unity) ShaderLab::ShaderState::FindSubProgramsToUse
    0x00007ff7ce7df290 (Unity) ShaderLab::ShaderState::ApplyShaderState
    0x00007ff7ce7d04a7 (Unity) ShaderLab::pass::ApplyPass
    0x00007ff7ce77ab15 (Unity) ApplyMaterialPass
    0x00007ff7ce5f62c0 (Unity) ScriptableBatchRenderer::ApplyShaderPass
    0x00007ff7ce61149e (Unity) ScriptableRenderLoopDrawSRPBatcher
    0x00007ff7ce6117ca (Unity) ScriptableRenderLoopJob
    0x00007ff7ce9227c3 (Unity) GfxDevice::ExecuteAsync
    0x00007ff7cec04eae (Unity) GfxDeviceClient::ExecuteAsync
    0x00007ff7ce60ed75 (Unity) ScheduleRenderJobs
    0x00007ff7ce60b549 (Unity) ExecuteDrawRenderersCommand
    0x00007ff7ce5f94e7 (Unity) ScriptableRenderContext::ExecuteRendererList
    0x00007ff7ce58552e (Unity) RenderingCommandBuffer::ExecuteCommandBufferWithState
     

    Attached Files:

    fukaken5050 likes this.
  2. fukaken5050

    fukaken5050

    Joined:
    Feb 3, 2016
    Posts:
    4
    Unity2022.3.1f1
    This bug occurs when "Project Settings > Editor > Shader Compilation > Asynchronous Shader Compilation" is ON.
    In order to see Michal_Stangel's call stack above, you need to start UnityEditor with the "-diag-temp-memory-leak-validation" argument.
    https://light11.hatenadiary.com/entry/2021/09/01/193709