Search Issue Tracker
By Design
Votes
0
Found in [Package]
Issue ID
1264526
Regression
No
DOTS 'ArgumentException: The entity does not exist' errors thrown when deleting an entity with LOD Group component
To reproduce:
1. Open attached project ("case_1264526-Sample.zip")
2. Enter Play mode and press 'Delete parent with LOD Group' button
3. Observe the Console window
Expected result: No errors thrown
Actual result: Multiple 'ArgumentException: The entity does not exist' errors thrown
Reproducible in: 2019.4.8f1, 2020.1.2f1, 2020.2.0a20 (0.4.2-preview-16, 0.7.0-preview.24)
Could not test in: 2018.4.26f1 (0.0.1-preview.4) (Due to errors)
Notes:
1. The issue is reproducible both with and without Burst.
2. Full error message:
ArgumentException: The entity does not exist
Unity.Entities.EntityComponentStore.AssertEntityHasComponent (Unity.Entities.Entity entity, Unity.Entities.ComponentType componentType) (at Library/PackageCache/com.unity.entities@0.13.0-preview.24/Unity.Entities/EntityComponentStoreDebug.cs:280)
Unity.Entities.EntityComponentStore.AssertEntityHasComponent (Unity.Entities.Entity entity, System.Int32 componentType) (at Library/PackageCache/com.unity.entities@0.13.0-preview.24/Unity.Entities/EntityComponentStoreDebug.cs:286)
Unity.Entities.ComponentDataFromEntity`1[T].get_Item (Unity.Entities.Entity entity) (at Library/PackageCache/com.unity.entities@0.13.0-preview.24/Unity.Entities/Iterators/ComponentDataFromEntity.cs:169)
Unity.Rendering.LodRequirementsUpdateSystem+UpdateLodRequirementsJob.Execute (Unity.Entities.ArchetypeChunk chunk, System.Int32 chunkIndex, System.Int32 firstEntityIndex) (at Library/PackageCache/com.unity.rendering.hybrid@0.7.0-preview.24/Unity.Rendering.Hybrid/LodRequirementsUpdateSystem.cs:148)
Unity.Entities.JobChunkExtensions+JobChunkProducer`1[T].ExecuteInternal (Unity.Entities.JobChunkExtensions+JobChunkWrapper`1[T]& jobWrapper, Unity.Jobs.LowLevel.Unsafe.JobRanges& ranges, System.Int32 jobIndex) (at Library/PackageCache/com.unity.entities@0.13.0-preview.24/Unity.Entities/IJobChunk.cs:298)
Unity.Entities.JobChunkExtensions+JobChunkProducer`1[T].Execute (Unity.Entities.JobChunkExtensions+JobChunkWrapper`1[T]& jobWrapper, System.IntPtr additionalPtr, System.IntPtr bufferRangePatchData, Unity.Jobs.LowLevel.Unsafe.JobRanges& ranges, System.Int32 jobIndex) (at Library/PackageCache/com.unity.entities@0.13.0-preview.24/Unity.Entities/IJobChunk.cs:272)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Volumetric fog shader variants are missing from build when "Strict Shader Variant Matching" is disabled
- Unnecessary modifications clutter the Scene when using a RectTransform driven by a LayoutGroup in a Prefab
- Files in the target folder are deleted without a proper warning when building an iOS project
- Character animation freezes when toggling animator on/off in a coroutine
- Certain textures are incorrectly marked in the render pass list when observed through Render Graph Viewer
Resolution Note:
By design (DOTS). If you are deleting entities that are linked to other entities (transform parents, LOD parents, etc), you are responsible of deleting all of them or removing the stale components.