Search Issue Tracker

Active

Votes

5

Found in

2021.2.0a9

2022.1

2022.1.0a10

Issue ID

1367688

Regression

Yes

'Internal: JobTempAlloc has allocations that are more than 4 frames old' spam warnings when Profiling with Live Timeline enabled

IMGUI

-

How to reproduce:
1. Open attached project
2. Open Profiler and enable Live Timeline
3. Enter Play mode
4. Observe console

Warnings:
Internal: JobTempAlloc has allocations that are more than 4 frames old - this is not allowed and likely a leak
Internal: deleting an allocation that is older than its permitted lifetime of 4 frames (age = 5)

Reproduced with: 2021.2.0a9, 2021.2.0b14, 2022.1.0a10
Does not reproduce with: 2021.1.22f1, 2021.2.0a8 (project fails to load due to errors)

Comments (3)

  1. Yany

    Oct 13, 2025 17:07

    Stack Trace of the very same issue with Unity v6.2.7f2

    Allocation of 152 bytes at b01e3cb0 in block 0 (frameIndex=2, lifetime=4, age=3, state=OK)
    0x00007ffb98ebc5d8 (Unity) UnsafeUtility_CUSTOM_MallocTracked
    0x0000015af3bf12ed (Mono JIT Code) (wrapper managed-to-native) Unity.Collections.LowLevel.Unsafe.UnsafeUtility:MallocTracked (long,int,Unity.Collections.Allocator,int)
    0x0000015b775499bb (Mono JIT Code) Unity.Collections.NativeArray`1<long>:Allocate (int,Unity.Collections.Allocator,Unity.Collections.NativeArray`1<long>&)
    0x0000015b775498a3 (Mono JIT Code) Unity.Collections.NativeArray`1<long>:.ctor (int,Unity.Collections.Allocator,Unity.Collections.NativeArrayOptions)
    0x0000015b77549793 (Mono JIT Code) UnityEngine.Rendering.ParallelBitArray:.ctor (int,Unity.Collections.Allocator,Unity.Collections.NativeArrayOptions) (at ./Library/PackageCache/com.unity.render-pipelines.core@67f868dbad82/Runtime/GPUDriven/Utilities/ParallelBitArray.cs:26)
    0x0000015b6f05357b (Mono JIT Code) UnityEngine.Rendering.InstanceCuller:CreateSceneViewHiddenObjectsCullingJob_EditorOnly (UnityEngine.Rendering.BatchCullingContext&,UnityEngine.Rendering.CPUInstanceData/ReadOnly&,UnityEngine.Rendering.CPUSharedInstanceData/ReadOnly&,Unity.Collections.NativeArray`1<byte>,Unity.Jobs.JobHandle) (at ./Library/PackageCache/com.unity.render-pipelines.core@67f868dbad82/Runtime/GPUDriven/InstanceCuller.cs:2167)
    0x0000015b6f045e03 (Mono JIT Code) UnityEngine.Rendering.InstanceCuller:CreateCullJobTree (UnityEngine.Rendering.BatchCullingContext&,UnityEngine.Rendering.BatchCullingOutput,UnityEngine.Rendering.CPUInstanceData/ReadOnly&,UnityEngine.Rendering.CPUSharedInstanceData/ReadOnly&,UnityEngine.Rendering.CPUPerCameraInstanceData&,UnityEngine.Rendering.GPUInstanceDataBuffer/ReadOnly&,Unity.Collections.NativeList`1<UnityEngine.Rendering.LODGroupCullingData>,UnityEngine.Rendering.CPUDrawInstanceData,Unity.Collections.NativeParallelHashMap`2<uint, UnityEngine.Rendering.BatchID>,single,UnityEngine.Rendering.OcclusionCullingCommon) (at ./Library/PackageCache/com.unity.render-pipelines.core@67f868dbad82/Runtime/GPUDriven/InstanceCuller.cs:1989)
    0x0000015b775b15eb (Mono JIT Code) UnityEngine.Rendering.InstanceCullingBatcher:OnPerformCulling (UnityEngine.Rendering.BatchRendererGroup,UnityEngine.Rendering.BatchCullingContext,UnityEngine.Rendering.BatchCullingOutput,intptr) (at ./Library/PackageCache/com.unity.render-pipelines.core@67f868dbad82/Runtime/GPUDriven/InstanceCullingBatcher.cs:680)
    0x0000015b775b1b58 (Mono JIT Code) (wrapper delegate-invoke) <Module>:invoke_JobHandle_BatchRendererGroup_BatchCullingContext_BatchCullingOutput_intptr (UnityEngine.Rendering.BatchRendererGroup,UnityEngine.Rendering.BatchCullingContext,UnityEngine.Rendering.BatchCullingOutput,intptr)
    0x0000015b775af31f (Mono JIT Code) UnityEngine.Rendering.BatchRendererGroup:InvokeOnPerformCulling (UnityEngine.Rendering.BatchRendererGroup,UnityEngine.Rendering.BatchRendererCullingOutput&,UnityEngine.Rendering.LODParameters&,intptr)
    0x0000015b775afd07 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_object_intptr&_intptr&_intptr (object,intptr,intptr,intptr)
    0x00007ffb8c736e7e (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)
    0x00007ffb8c678874 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3068)
    0x00007ffb8c678960 (mono-2.0-bdwgc) mono_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3115)
    0x00007ffb99d9aa44 (Unity) scripting_method_invoke
    0x00007ffb99d72fe3 (Unity) ScriptingInvocation::Invoke
    0x00007ffb99d6e6e5 (Unity) ScriptingInvocation::Invoke<void>
    0x00007ffb99eff05f (Unity) Scripting::UnityEngine::Rendering::BatchRendererGroupProxy::InvokeOnPerformCulling
    0x00007ffb996ce661 (Unity) BatchRendererGroup::OnBeforeCulling

    After years, this is still an issue.

  2. nalex66

    May 22, 2024 15:11

    I get this warning constantly when Timelines are running. I'm using the latest LTS (2022.3.29f1), but this has gone on since I started using Timelines over a year ago in 2021 LTS.

  3. StaceyFreeland

    Apr 09, 2022 17:07

    I have this exact issue

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.