RVOSystem Crash When Removing Units

Hi Team,

I’m semi-occasionally experiencing a crash when I despawn all the units in my game. The burst error is from RVOSystem:AddAndRemoveAgentsFromSimulation and it fails at EntityQuery:ToComponentDataArray<Pathfinding.ECS.RVO.AgentIndex>

This was happening to me like 4 versions ago - updated to the most latest and unfortunately its still happening again.

Can you let me know what steps I can take to minimize crashes when removing units?

Thanks!

Would you be able to create reproduction steps for this crash? I’ll go ahead and try and recreate it on my end. Feel free to send a project over if you’re able to/want to.

My project is massive unfortunately. It’s hard to repro - happens only occasionally. I’m despawning enemies by deactivating their gameobjects now and the crash hasn’t happened yet. Before I was adding a Kill component through entitymanager to kill the entity.