Missing Profiler.EndSample (BeginSample and EndSample count must match):

Wondering if someone can explain this error to me ?

Missing Profiler.EndSample (BeginSample and EndSample count must match): Default World Unity.Entities.BeginSimulationEntityCommandBufferSystem
Previous 5 samples:
    EntityCommandBuffer.Playback
    Default World Unity.Entities.EndSimulationEntityCommandBufferSystem
    EntityCommandBuffer.Playback
    Default World Unity.Entities.LateSimulationSystemGroup
    EntityCommandBuffer.Playback
In the scope:
    EntityCommandBuffer.Playback
    Default World Unity.Entities.BeginSimulationEntityCommandBufferSystem
    Default World Unity.Entities.SimulationSystemGroup
    UpdateFunction.Invoke()
    SimulationSystemGroup

I think what is happening is my EntityCommandBuffer was recorded but the entity is destroyed by the live link GameObjectConversionSystem before it is played back. Any ideas how to get around this ?

EDIT: ok disabling system one at a time this is in fact what is happening, No idea how to get around this ?

ArgumentException: The entity does not exist
EntityCommandBuffer was recorded in HexSphereBuildEntitiesSystem and played back in Unity.Entities.BeginSimulationEntityCommandBufferSystem.
  at Unity.Entities.EntityComponentStore.AssertCanAddComponent (Unity.Entities.Entity entity, Unity.Entities.ComponentType componentType) [0x0000f] in ....
1 Like