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
- Numeric property drag cursor gets enabled in the Inspector Preview window when the window is above numeric properties
- UI elements become unusable due to Object and Text Fields being set to empty/"0" when clicking "Reset" on their Components
- Scene Asset is not attached to a Lighting Data Asset for a URP Package Sample Scene
- Gizmos are not rendered for the Base Camera when using Camera Stacking
- UI Mask Component does not apply correctly when Canvas Render Mode is set to Screen Space - Camera
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.