Leak Detected – Not sure if Aron or Unity issue

Recently started seeing leak detected:

  • Unity v2023.2.14f1
  • A* v5.2.4
  • Collections 1.4.0
  • Burst 1.8.12
Found 1 leak(s) from callstack:
 #0  (Mono JIT Code) [BinaryHeap.cs:90] Pathfinding.BinaryHeap:.ctor (int)
 #1  (Mono JIT Code) [PathHandler.cs:191] Pathfinding.PathHandler:.ctor (Pathfinding.GlobalNodeStorage,int,int)
 #2  (Mono JIT Code) [PathProcessor.cs:99] Pathfinding.PathProcessor:SetThreadCount (int,bool)
 #3  (Mono JIT Code) [AstarPath.cs:1202] AstarPath:InitializePathProcessor ()
 #4  (Mono JIT Code) [AstarPath.cs:1299] AstarPath:OnEnable ()
 #5  (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
 #6 mono_jit_runtime_invoke
 #7 do_runtime_invoke
 #8 mono_runtime_invoke
 #9 scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool)
 #10 ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool)
 #11 MonoBehaviour::CallMethodIfAvailable(int)
 #12 MonoBehaviour::AddToManager()
 #13 SerializableManagedRefsUtilities::AwakeInstancesAfterBackupRestoration(DomainReloadingData const&)
 #14 MonoManager::FinalizeReload()
 #15 ScriptingInitializer::FinalizeReload()
 #16 RefreshInternalV2(AssetDatabase::UpdateAssetOptions, ScanFilter const&, InternalRefreshFlagsV2)
 #17 StopAssetImportingV2Internal(AssetDatabase::UpdateAssetOptions, InternalRefreshFlagsV2, ScanFilter const*, char const*)
 #18 ???
 #19 ???

Similar;

Found 1 leak(s) from callstack:
0x000001bf7345fdc3 (Mono JIT Code) Pathfinding.BinaryHeap:.ctor (int) (at ./Packages/com.arongranberg.astar/Core/Collections/BinaryHeap.cs:90)
0x000001bf7345fba3 (Mono JIT Code) Pathfinding.PathHandler:.ctor (Pathfinding.GlobalNodeStorage,int,int) (at ./Packages/com.arongranberg.astar/Core/Pathfinding/PathHandler.cs:191)
0x000001bf7345f92b (Mono JIT Code) Pathfinding.PathProcessor:SetThreadCount (int,bool) (at ./Packages/com.arongranberg.astar/Core/Pathfinding/PathProcessor.cs:99)
0x000001bf7345f0ab (Mono JIT Code) AstarPath:InitializePathProcessor () (at ./Packages/com.arongranberg.astar/Core/AstarPath.cs:1202)
0x000001bf733e714b (Mono JIT Code) AstarPath:OnEnable () (at ./Packages/com.arongranberg.astar/Core/AstarPath.cs:1299)
0x000001bfd1d4c828 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
0x00007ffb1b78697e (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)
0x00007ffb1b6c8444 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3068)
0x00007ffb1b6c8530 (mono-2.0-bdwgc) mono_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3115)
0x00007ffb0b7be154 (Unity) scripting_method_invoke
0x00007ffb0b798cf3 (Unity) ScriptingInvocation::Invoke
0x00007ffb0b784164 (Unity) MonoBehaviour::CallMethodIfAvailable
0x00007ffb0b782855 (Unity) MonoBehaviour::AddToManager
0x00007ffb0b83cce9 (Unity) SerializableManagedRefsUtilities::AwakeInstancesAfterBackupRestoration
0x00007ffb0b787189 (Unity) MonoManager::FinalizeReload
0x00007ffb0cc2477a (Unity) ScriptingInitializer::FinalizeReload
0x00007ffb0cc67579 (Unity) ImportOutOfDateAssets
0x00007ffb0cc7108f (Unity) RefreshInternalV2
0x00007ffb0cc7a50a (Unity) StopAssetImportingV2Internal

but also;

Found 2 leak(s) from callstack:
0x000001bf7345fdc3 (Mono JIT Code) Pathfinding.BinaryHeap:.ctor (int) (at ./Packages/com.arongranberg.astar/Core/Collections/BinaryHeap.cs:90)
0x000001bf7345fba3 (Mono JIT Code) Pathfinding.PathHandler:.ctor (Pathfinding.GlobalNodeStorage,int,int) (at ./Packages/com.arongranberg.astar/Core/Pathfinding/PathHandler.cs:191)
0x000001bf7345f92b (Mono JIT Code) Pathfinding.PathProcessor:SetThreadCount (int,bool) (at ./Packages/com.arongranberg.astar/Core/Pathfinding/PathProcessor.cs:99)
0x000001bf7345f0ab (Mono JIT Code) AstarPath:InitializePathProcessor () (at ./Packages/com.arongranberg.astar/Core/AstarPath.cs:1202)
0x000001bf733e714b (Mono JIT Code) AstarPath:OnEnable () (at ./Packages/com.arongranberg.astar/Core/AstarPath.cs:1299)
0x000001bfd1d4c828 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
0x00007ffb1b78697e (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)
0x00007ffb1b6c8444 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3068)
0x00007ffb1b6c8530 (mono-2.0-bdwgc) mono_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3115)
0x00007ffb0b7be154 (Unity) scripting_method_invoke
0x00007ffb0b798cf3 (Unity) ScriptingInvocation::Invoke
0x00007ffb0b784164 (Unity) MonoBehaviour::CallMethodIfAvailable
0x00007ffb0b782855 (Unity) MonoBehaviour::AddToManager
0x00007ffb0b78342b (Unity) MonoBehaviour::AwakeFromLoad
0x00007ffb0b87de71 (Unity) AwakeFromLoadQueue::InvokePersistentManagerAwake
0x00007ffb0b87eec3 (Unity) AwakeFromLoadQueue::PersistentManagerSingleQueueAwakeFromLoad
0x00007ffb0b87eb0d (Unity) AwakeFromLoadQueue::PersistentManagerAwakeFromLoad_NoChecks
0x00007ffb0b45a459 (Unity) LoadSceneOperation::CompleteAwakeSequence
0x00007ffb0b45b155 (Unity) LoadSceneOperation::CompletePreloadManagerLoadSceneEditor

See Leak Detected : Persistent allocates 3 individual allocations - #6 by Scichopath

1 Like

@aron_granberg thank you! upgrading Collections (2.1.4) worked ◡̈

Confirmed Unity 2023.2.20f1 (version with soft shadows!) and collections 2.1.4 no longer has burst error.

You are such a freaking champ.