andrew-raphael-lukasik / Prefab-System

`com.unity.entities 1.0`-compatible way to find (lookup) prefab entities
MIT License
4 stars 1 forks source link

SingletonCreationSystem.cs:19 detected as leak #1

Closed andrew-raphael-lukasik closed 11 months ago

andrew-raphael-lukasik commented 1 year ago
Leak Detected : Persistent allocates 2 individual allocations.
0x000002474e9d6f13 (Mono JIT Code) Unity.Collections.Memory/Unmanaged/Array:Resize (void*,long,long,Unity.Collections.AllocatorManager/AllocatorHandle,long,int) (at ./Library/PackageCache/com.unity.collections@2.1.4/Unity.Collections/Memory.cs:79)
0x000002474e9d6b23 (Mono JIT Code) Unity.Collections.Memory/Unmanaged:Allocate (long,int,Unity.Collections.AllocatorManager/AllocatorHandle) (at ./Library/PackageCache/com.unity.collections@2.1.4/Unity.Collections/Memory.cs:20)
0x000002484f2042ab (Mono JIT Code) Unity.Collections.LowLevel.Unsafe.HashMapHelper`1<Unity.Collections.FixedString64Bytes>:Init (int,int,int,Unity.Collections.AllocatorManager/AllocatorHandle) (at ./Library/PackageCache/com.unity.collections@2.1.4/Unity.Collections/UnsafeHashMap.cs:92)
0x000002484f203b23 (Mono JIT Code) Unity.Collections.LowLevel.Unsafe.HashMapHelper`1<Unity.Collections.FixedString64Bytes>:Alloc (int,int,int,Unity.Collections.AllocatorManager/AllocatorHandle) (at ./Library/PackageCache/com.unity.collections@2.1.4/Unity.Collections/UnsafeHashMap.cs:114)
0x000002484f2035d3 (Mono JIT Code) Unity.Collections.NativeHashMap`2<Unity.Collections.FixedString64Bytes, Unity.Entities.Entity>:.ctor (int,Unity.Collections.AllocatorManager/AllocatorHandle) (at ./Library/PackageCache/com.unity.collections@2.1.4/Unity.Collections/NativeHashMap.cs:152)
0x000002484f202c1b (Mono JIT Code) PrefabSystem/SingletonCreationSystem:OnCreate (Unity.Entities.SystemState&) (at ./Library/PackageCache/com.andrewraphaellukasik.prefab-system@5f54214f0d/Scripts/SingletonCreationSystem.cs:19)
0x000002484f2027e3 (Mono JIT Code) PrefabSystem/SingletonCreationSystem:__codegen__OnCreate$BurstManaged (intptr,intptr)
0x000002484f202683 (Mono JIT Code) PrefabSystem/SingletonCreationSystem/__codegen__OnCreate_00000095$BurstDirectCall:Invoke (intptr,intptr)
0x000002484f20252b (Mono JIT Code) PrefabSystem/SingletonCreationSystem:__codegen__OnCreate (intptr,intptr)
0x000002484f202443 (Mono JIT Code) (wrapper native-to-managed) PrefabSystem/SingletonCreationSystem:__codegen__OnCreate (intptr,intptr)
0x0000024802bce67d (Mono JIT Code) (wrapper managed-to-native) object:wrapper_native_000002474FFC0DC0 (intptr,intptr)
0x00000248030b9d21 (Mono JIT Code) Unity.Entities.SystemBaseRegistry:ForwardToManaged (intptr,Unity.Entities.SystemState*,void*) (at ./Library/PackageCache/com.unity.entities@1.0.11/Unity.Entities/SystemBaseRegistry.cs:371)
0x00000248030b9803 (Mono JIT Code) Unity.Entities.SystemBaseRegistry:CallForwardingFunction (Unity.Entities.SystemState*,Unity.Entities.UnmanagedSystemFunctionType) (at ./Library/PackageCache/com.unity.entities@1.0.11/Unity.Entities/SystemBaseRegistry.cs:340)
0x00000248030bdb23 (Mono JIT Code) Unity.Entities.SystemBaseRegistry:CallOnCreate (Unity.Entities.SystemState*) (at ./Library/PackageCache/com.unity.entities@1.0.11/Unity.Entities/SystemBaseRegistry.cs:377)
0x00000248030b89bb (Mono JIT Code) Unity.Entities.WorldUnmanagedImpl:CallSystemOnCreateWithCleanup (Unity.Entities.SystemState*) (at ./Library/PackageCache/com.unity.entities@1.0.11/Unity.Entities/WorldUnmanaged.cs:617)
0x00000248030325e3 (Mono JIT Code) Unity.Entities.World:GetOrCreateSystemsAndLogException (Unity.Collections.NativeList`1<Unity.Entities.SystemTypeIndex>,int,Unity.Collections.AllocatorManager/AllocatorHandle) (at ./Library/PackageCache/com.unity.entities@1.0.11/Unity.Entities/World.cs:1309)
0x0000024803030b6b (Mono JIT Code) Unity.Entities.World:GetOrCreateSystemsAndLogException (Unity.Collections.NativeList`1<Unity.Entities.SystemTypeIndex>,Unity.Collections.AllocatorManager/AllocatorHandle) (at ./Library/PackageCache/com.unity.entities@1.0.11/Unity.Entities/World.cs:1348)
0x000002480302de0b (Mono JIT Code) Unity.Entities.DefaultWorldInitialization:AddSystemToRootLevelSystemGroupsInternal<Unity.Entities.DefaultWorldInitialization/DefaultRootGroups> (Unity.Entities.World,Unity.Collections.NativeList`1<Unity.Entities.SystemTypeIndex>,Unity.Entities.ComponentSystemGroup,Unity.Entities.DefaultWorldInitialization/DefaultRootGroups) (at ./Library/PackageCache/com.unity.entities@1.0.1
Found 1 leak(s) from callstack:
0x000002474e9d6f13 (Mono JIT Code) Unity.Collections.Memory/Unmanaged/Array:Resize (void*,long,long,Unity.Collections.AllocatorManager/AllocatorHandle,long,int) (at ./Library/PackageCache/com.unity.collections@2.1.4/Unity.Collections/Memory.cs:79)
0x000002474e9d6b23 (Mono JIT Code) Unity.Collections.Memory/Unmanaged:Allocate (long,int,Unity.Collections.AllocatorManager/AllocatorHandle) (at ./Library/PackageCache/com.unity.collections@2.1.4/Unity.Collections/Memory.cs:20)
0x000002484f203a9b (Mono JIT Code) Unity.Collections.LowLevel.Unsafe.HashMapHelper`1<Unity.Collections.FixedString64Bytes>:Alloc (int,int,int,Unity.Collections.AllocatorManager/AllocatorHandle) (at ./Library/PackageCache/com.unity.collections@2.1.4/Unity.Collections/UnsafeHashMap.cs:113)
0x000002484f2035d3 (Mono JIT Code) Unity.Collections.NativeHashMap`2<Unity.Collections.FixedString64Bytes, Unity.Entities.Entity>:.ctor (int,Unity.Collections.AllocatorManager/AllocatorHandle) (at ./Library/PackageCache/com.unity.collections@2.1.4/Unity.Collections/NativeHashMap.cs:152)
0x000002484f202c1b (Mono JIT Code) PrefabSystem/SingletonCreationSystem:OnCreate (Unity.Entities.SystemState&) (at ./Library/PackageCache/com.andrewraphaellukasik.prefab-system@5f54214f0d/Scripts/SingletonCreationSystem.cs:19)
0x000002484f2027e3 (Mono JIT Code) PrefabSystem/SingletonCreationSystem:__codegen__OnCreate$BurstManaged (intptr,intptr)
0x000002484f202683 (Mono JIT Code) PrefabSystem/SingletonCreationSystem/__codegen__OnCreate_00000095$BurstDirectCall:Invoke (intptr,intptr)
0x000002484f20252b (Mono JIT Code) PrefabSystem/SingletonCreationSystem:__codegen__OnCreate (intptr,intptr)
0x000002484f202443 (Mono JIT Code) (wrapper native-to-managed) PrefabSystem/SingletonCreationSystem:__codegen__OnCreate (intptr,intptr)
0x0000024802bce67d (Mono JIT Code) (wrapper managed-to-native) object:wrapper_native_000002474FFC0DC0 (intptr,intptr)
0x00000248030b9d21 (Mono JIT Code) Unity.Entities.SystemBaseRegistry:ForwardToManaged (intptr,Unity.Entities.SystemState*,void*) (at ./Library/PackageCache/com.unity.entities@1.0.11/Unity.Entities/SystemBaseRegistry.cs:371)
0x00000248030b9803 (Mono JIT Code) Unity.Entities.SystemBaseRegistry:CallForwardingFunction (Unity.Entities.SystemState*,Unity.Entities.UnmanagedSystemFunctionType) (at ./Library/PackageCache/com.unity.entities@1.0.11/Unity.Entities/SystemBaseRegistry.cs:340)
0x00000248030bdb23 (Mono JIT Code) Unity.Entities.SystemBaseRegistry:CallOnCreate (Unity.Entities.SystemState*) (at ./Library/PackageCache/com.unity.entities@1.0.11/Unity.Entities/SystemBaseRegistry.cs:377)
0x00000248030b89bb (Mono JIT Code) Unity.Entities.WorldUnmanagedImpl:CallSystemOnCreateWithCleanup (Unity.Entities.SystemState*) (at ./Library/PackageCache/com.unity.entities@1.0.11/Unity.Entities/WorldUnmanaged.cs:617)
0x00000248030325e3 (Mono JIT Code) Unity.Entities.World:GetOrCreateSystemsAndLogException (Unity.Collections.NativeList`1<Unity.Entities.SystemTypeIndex>,int,Unity.Collections.AllocatorManager/AllocatorHandle) (at ./Library/PackageCache/com.unity.entities@1.0.11/Unity.Entities/World.cs:1309)
0x0000024803030b6b (Mono JIT Code) Unity.Entities.World:GetOrCreateSystemsAndLogException (Unity.Collections.NativeList`1<Unity.Entities.SystemTypeIndex>,Unity.Collections.AllocatorManager/AllocatorHandle) (at ./Library/PackageCache/com.unity.entities@1.0.11/Unity.Entities/World.cs:1348)
0x000002480302de0b (Mono JIT Code) Unity.Entities.DefaultWorldInitialization:AddSystemToRootLevelSystemGroupsInternal<Unity.Entities.DefaultWorldInitialization/DefaultRootGroups> (Unity.Entities.World,Unity.Collections.NativeList`1<Unity.Entities.SystemTypeIndex>,Unity.Entities.ComponentSystemGroup,Unity.Entities.DefaultWorldInitialization/DefaultRootGroups) (at ./Library/PackageCache/com.unity.entities@1.0.11/Unity.Entities/DefaultWorldInitialization.cs:261)
0x0000024803015b6b (Mono JIT Code) Unity.Entities.DefaultWorldInitialization:AddSystemToRootLevelSystemGroupsInternal (Unity.Entities.World,Unity.Collections.NativeList`1<Unity.Entities.SystemTypeIndex>) (at ./Library/PackageCache/com.