Search Unity

how to enable TLA_DEBUG_STACK_LEAK in ThreadsafeLinearAllocator.cpp?

Discussion in 'Editor & General Support' started by EssencyStudios, Jan 7, 2019.

  1. EssencyStudios

    EssencyStudios

    Joined:
    May 18, 2018
    Posts:
    6
    I've received multiple crash logs which spam until the user's game freezes

    (Filename: C:\buildslave\unity\build\Runtime/Allocator/ThreadsafeLinearAllocator.cpp Line: 539)
    Internal: deleting an allocation that is older than its permitted lifetime of 4 frames (age = 9)


    hidden between hundreds of these lines lies another message

    To Debug, enable the define: TLA_DEBUG_STACK_LEAK in ThreadsafeLinearAllocator.cpp. This will output the callstacks of the leaked allocations

    I cannot for the life of me find out how to enable this thing, google wont give me any answers!
    For anyone interested here are the crash logs as well:

    one dude: https://pastebin.com/CcjPkuHj
    other dude: https://pastebin.com/Ce0TL821
     
  2. echeg

    echeg

    Joined:
    Aug 1, 2012
    Posts:
    60
    Same question. How know what a system have leak?
     
  3. SunnyChow777

    SunnyChow777

    Joined:
    Nov 17, 2016
    Posts:
    2
    see this log in Xcode. Google tells me nothing either
     
  4. Kobald-Klaus

    Kobald-Klaus

    Joined:
    Jun 20, 2014
    Posts:
    29
    Getting thousands of that errors since update to 2019.1

    There is no such file where I can turn on that #define !!!
    (Filename: ./Runtime/Allocator/ThreadsafeLinearAllocator.cpp Line: 541)
     
  5. Blackx_xCat

    Blackx_xCat

    Joined:
    Aug 8, 2017
    Posts:
    1
    me too
     
  6. EssencyStudios

    EssencyStudios

    Joined:
    May 18, 2018
    Posts:
    6
    Its been a few months and still can't find a solution!