Unity-Technologies / EntityComponentSystemSamples

Other
7.24k stars 1.62k forks source link

update to 1.0.16 ,Boids sample can't work! #287

Closed zhengOscar closed 7 months ago

zhengOscar commented 8 months ago

update to 1.0.16, run the Boids sample .

Leak Detected : Persistent allocates 6 individual allocation Found 2 leak(s) from callstack: 0x00000218ca747653 (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) 0x00000218ff92ffa3 (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) 0x00000218ff92fce3 (Mono JIT Code) Unity.Collections.AllocatorManager:TryLegacy (Unity.Collections.AllocatorManager/Block&) (at ./Library/PackageCache/com.unity.collections@2.1.4/Unity.Collections/AllocatorManager.cs:1023) 0x00000218ff92fa1b (Mono JIT Code) Unity.Collections.AllocatorManager:Try (Unity.Collections.AllocatorManager/Block&) (at ./Library/PackageCache/com.unity.collections@2.1.4/Unity.Collections/AllocatorManager.cs:1055) 0x00000218ff92f97b (Mono JIT Code) Unity.Collections.AllocatorManager/AllocatorHandle:Try (Unity.Collections.AllocatorManager/Block&) (at ./Library/PackageCache/com.unity.collections@2.1.4/Unity.Collections/AllocatorManager.cs:540) 0x00000218ff92f683 (Mono JIT Code) Unity.Collections.AllocatorManager:AllocateBlock<Unity.Collections.AllocatorManager/AllocatorHandle> (Unity.Collections.AllocatorManager/AllocatorHandle&,int,int,int) (at ./Library/PackageCache/com.unity.collections@2.1.4/Unity.Collections/AllocatorManager.cs:32) 0x00000218ff92f52b (Mono JIT Code) Unity.Collections.AllocatorManager:Allocate<Unity.Collections.AllocatorManager/AllocatorHandle> (Unity.Collections.AllocatorManager/AllocatorHandle&,int,int,int) (at ./Library/PackageCache/com.unity.collections@2.1.4/Unity.Collections/AllocatorManager.cs:53) 0x00000218ffa7a09b (Mono JIT Code) Unity.Collections.LowLevel.Unsafe.UnsafeList1<Unity.Entities.BakerEntityUsage/ReferencedEntityUsage>:ResizeExact<Unity.Collections.AllocatorManager/AllocatorHandle> (Unity.Collections.AllocatorManager/AllocatorHandle&,int) (at ./Library/PackageCache/com.unity.collections@2.1.4/Unity.Collections/UnsafeList.cs:354) 0x00000218ffa79fb3 (Mono JIT Code) Unity.Collections.LowLevel.Unsafe.UnsafeList1<Unity.Entities.BakerEntityUsage/ReferencedEntityUsage>:SetCapacity<Unity.Collections.AllocatorManager/AllocatorHandle> (Unity.Collections.AllocatorManager/AllocatorHandle&,int) (at ./Library/PackageCache/com.unity.collections@2.1.4/Unity.Collections/UnsafeList.cs:390) 0x00000218ffa79ecb (Mono JIT Code) Unity.Collections.LowLevel.Unsafe.UnsafeList1<Unity.Entities.BakerEntityUsage/ReferencedEntityUsage>:SetCapacity (int) (at ./Library/PackageCache/com.unity.collections@2.1.4/Unity.Collections/UnsafeList.cs:399) 0x00000218ffa79dfb (Mono JIT Code) Unity.Collections.LowLevel.Unsafe.UnsafeList1<Unity.Entities.BakerEntityUsage/ReferencedEntityUsage>:.ctor (int,Unity.Collections.AllocatorManager/AllocatorHandle,Unity.Collections.NativeArrayOptions) (at ./Library/PackageCache/com.unity.collections@2.1.4/Unity.Collections/UnsafeList.cs:181) 0x00000218ffa79c93 (Mono JIT Code) Unity.Entities.BakerEntityUsage:.ctor (Unity.Entities.Entity,int,Unity.Collections.Allocator) (at ./Library/PackageCache/com.unity.entities@1.0.16/Unity.Entities.Hybrid/Baking/BakerEntityUsage.cs:36) 0x00000218ffa7c313 (Mono JIT Code) Unity.Entities.BakerState:.ctor (Unity.Entities.Entity,Unity.Collections.Allocator) (at ./Library/PackageCache/com.unity.entities@1.0.16/Unity.Entities.Hybrid/Baking/BakerState.cs:44) 0x00000218ffa656e3 (Mono JIT Code) Unity.Entities.BakedEntityData:ApplyBakeInstructions (Unity.Entities.Baking.BakeDependencies&,Unity.Entities.Baking.IncrementalBakingContext/IncrementalBakeInstructions,Unity.Entities.BlobAssetStore,Unity.Entities.BakingSettings,Unity.Entities.Conversion.IncrementalHierarchy&,Unity.Entities.Baking.GameObjectComponents&) (at ./Library/PackageCache/com.unity.entities@1.0.16/Unity.Entities.Hybrid/Baking/BakedEntityData.cs:579) 0x00000218ff8fa22b (Mono JIT Code) Unity.Entities.BakingSystem:Bake (Unity.Entities.IncrementalBakingChangeTracker,UnityEngine.GameObject[]) (at ./Library/Pack