To Debug, enable the define: TLA_DEBUG_STACK_LEAK in ThreadsafeLinearAllocator.cpp. This will output the callstacks of the leaked allocations
(Filename: C:\buildslave\unity\build\Runtime/Allocator/ThreadsafeLinearAllocator.cpp Line: 541)
Internal: JobTempAlloc has allocations that are more than 4 frames old - this is not allowed and likely a leak
This message is spamming my log every second on a build or in Unity.
The game crashes as soon as I start it (Unity 2019.1.9f1 and previous versions as well).
The game is running on windows using steam api.
I assume this happens specifically on your project and not every project on your machine?
Do you have a callstack for the crash in the build?
@Tautvydas-Zilys No I don’t, I will try to give you a stack trace from a build.
This happens for me and has been happening @Tautvydas-Zilys since I installed 2019 and all the entities packages. It is definitely an internal leak from Unity’s side from what I can gather.
Can you file a bug report then with a repro of this?
I believe there is already a bug report about this. I found it going back to 2017.2. Do you need another post then?
There used to be an active bug, but it got fixed in 2019.1:
If you can reproduce it still in 2019.1, you should report it as it’s likely a different issue with the same symptoms.
hmmm, okay thanks @Tautvydas-Zilys . Is there anyway to find anymore information as to why that call is coming in? The only way I can think to debug it is by loading a brand new project and slowly importing everything in. That will be a huge pain in the butt. I have SteamVR installed as well.
Unfortunately not :(. May I suggest making a copy of your project, and deleting half a scene at a time (like a binary search) to find the culprit?
@Tautvydas-Zilys So sorry, I am an idiot and was having a temp job leak. Details are here.
[Jobs][Lags] JobTempAlloc has allocations that are more than 4 frames old page-3
Was creating 4 TempJob NativeArrays (in an OnCreate) that would normally be disposed every frame if the system was updating. However that OnUpdate wasn’t being fired cause the query on that system was zero so these temp Native Arrays were not being disposed properly.
Sorry for being accusing or if I came off as a dick. I would love a better stack trace if a TempJob is created and then not disposed.