Search Unity

JobTempAlloc has allocations that are more than 4 frames old

Discussion in 'Editor & General Support' started by george_playbite, May 14, 2019.

  1. george_playbite

    george_playbite

    Joined:
    Sep 27, 2018
    Posts:
    38
    Hello,

    Game Analytics reports that some users are sending the following warning messages:

    Internal: JobTempAlloc has allocations that are more than 4 frames old - this is not allowed and likely a leak at GameAnalyticsSDK.Events.GA_Debug.HandleLog (System.String logString, System.String stackTrace, UnityEngine.LogType type) <0x00000 + 0xffffffff> 0 in <00000000000000000000000000000000>:0 at UnityEngine.Application+LogCallback.Invoke (System.String condition, System.String stackTrace, UnityEngine.LogType type) <0x00000 + 0xffffffff> 0 in <00000000000000000000000000000000>:0 at UnityEngine.Application.CallLogCallback (System.String logString, System.String stackTrace, UnityEngine.LogType type, System.Boolean invokedOnMainThread) <0x00000 + 0xffffffff> 0 in <00000000000000000000000000000000>:0

    To Debug, enable the define: TLA_DEBUG_STACK_LEAK in ThreadsafeLinearAllocator.cpp. This will output the callstacks of the leaked allocations at GameAnalyticsSDK.Events.GA_Debug.HandleLog (System.String logString, System.String stackTrace, UnityEngine.LogType type) <0x00000 + 0xffffffff> 0 in <00000000000000000000000000000000>:0 at UnityEngine.Application+LogCallback.Invoke (System.String condition, System.String stackTrace, UnityEngine.LogType type) <0x00000 + 0xffffffff> 0 in <00000000000000000000000000000000>:0 at UnityEngine.Application.CallLogCallback (System.String logString, System.String stackTrace, UnityEngine.LogType type, System.Boolean invokedOnMainThread) <0x00000 + 0xffffffff> 0 in <00000000000000000000000000000000>:0
    I'm not using Jobs anywhere on my app. I've searched for any script (in case any of my plugins do) that contains code using jobs and I can't find any. Unless something's using them within a DLL, I'm at a loss here.

    Does anyone know if getting these warnings means that the app crashed or would cause a game to stop responding? I've never experienced it myself on any of my devices, but I'm concerned other users are getting crashed out of the game.

    I've looked for other answers and they mostly address people that are actually using jobs in their game.

    Any pointers would be greatly appreciated.
     
  2. george_playbite

    george_playbite

    Joined:
    Sep 27, 2018
    Posts:
    38
  3. george_playbite

    george_playbite

    Joined:
    Sep 27, 2018
    Posts:
    38
  4. ArshakKroyan

    ArshakKroyan

    Joined:
    Mar 4, 2015
    Posts:
    32
    Hi @george_playbite
    I have similar issue and seems it is because of Async Scene loading in my case.
    Don't you use async scene loading?