Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Enter the 2020.2 Beta Sweepstakes for a chance to win an Oculus Quest 2.
    Dismiss Notice

How to enable TLA_DEBUG_STACK_LEAK?

Discussion in 'Data Oriented Technology Stack' started by davenirline, Feb 4, 2019.

  1. davenirline

    davenirline

    Joined:
    Jul 7, 2010
    Posts:
    668
    I got these from the logs:

    (Filename: Line: 390)

    Internal: JobTempAlloc has allocations that are more than 4 frames old - this is not allowed and likely a leak

    (Filename: Line: 388)

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

    I'm looking to fix a crash that might be caused by this. I tried adding TLA_DEBUG_STACK_LEAK in Define Symbols but the logs are still the same. Usually this "JobTempAlloc has allocations that are more than 4 frames old" error is caught while in the editor but I don't see it now. The error above only shows up in built game. I've also disabled Burst if that helps.
     
  2. tertle

    tertle

    Joined:
    Jan 25, 2011
    Posts:
    2,556
    You can't.

    Have you updated to 2018.3.4f1? It finally fixes a lot of internal JobTempAlloc leaks so will at least eliminate those.
     
    Rs likes this.
  3. davenirline

    davenirline

    Joined:
    Jul 7, 2010
    Posts:
    668
    Downloading it. Hopefully it fixes the crash.

    Edit: Yes, it did fix the crash. Thanks!
     
    Last edited: Feb 4, 2019
unityunity