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
- A particle is not rendered for the first frame when the duration and lifetime values match
- The "Target" Source Template is missing when using the Unity JetBrains.Annotations library subset
- [OpenXR][HDRP] XR Fails to initialize and black screen is present when waking up the HMD with DLSS enabled
- Baked reflection color of clouds does not match the Scene sky color when generating lighting in Unity
- The sampling result will have black artifacts when using URP Sample Buffer with UV value set to 1
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.