Summary
In multiplayer game, local role is ROLE_SimulatedProxy.
void UMassAgentComponent::UnregisterWithAgentSubsystem() will arrived before void UMassAgentComponent::OnRep_NetID(), the State of UMassAgentComponent is PuppetPendingReplication and will be crash.
Please select what you are reporting on:
Creative
What Type of Bug are you experiencing?
Character
Steps to Reproduce
- Player1 login
2.Player2 login
3.Player2’s SimulatedProxy Character->MassAgentComponent->RegisterWithAgentSubsystem() on Player1 client
4.Player2’s SimulatedProxy Character Remove on Player1 client
5.Player2’s SimulatedProxy Character->MassAgentComponent->UnregisterWithAgentSubsystem() MASSAGENT_CHECK on Player1 client
Expected Result
MASSAGENT_CHECK not happen
Observed Result
MASSAGENT_CHECK not happened
Platform(s)
UE5.6 Windows