Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiplayer Template: Client Disconnects Due to Component-Id Mismatch #767

Open
AMZN-Gene opened this issue Oct 8, 2024 · 0 comments · May be fixed by #768
Open

Multiplayer Template: Client Disconnects Due to Component-Id Mismatch #767

AMZN-Gene opened this issue Oct 8, 2024 · 0 comments · May be fixed by #768
Labels
kind/bug Categorizes issue or PR as related to a bug. priority/critical Critical priority. Must be actively worked on as someone's top priority right now. sig/network Categorizes an issue or PR as relevant to SIG Network. triage/accepted Indicates an issue or PR is ready to be actively worked on.

Comments

@AMZN-Gene
Copy link
Contributor

It's possible that MP template doesn't work. The server is unable to handle to first RPC packet received from the client and so it disconnects

Steps to reproduce

  1. Start a new project using the multiplayer template
  2. Setup a level with a Simple Network Player Spawner
  3. CTRL+G to start the multiplayer simulation

Expected behavior
Server and client connects smoothly. Player loads.

Actual behavior
Server cannot handle an RPC (not sure which one), and disconnects from client

(EditorServer) - ==================================================================
(EditorServer) - MultiplayerStats: Trace::Warning
(EditorServer) -  C:/Users/s_vio/source/repos/o3de/Gems/Multiplayer/Code/Source/MultiplayerStats.cpp(124): 'void __cdecl Multiplayer::MultiplayerStats::RecordRpcReceived(class AZ::EntityId,const char *,enum Multiplayer::NetComponentId,enum Multiplayer::RpcIndex,unsigned int)'
(EditorServer) - MultiplayerStats: Component ID 0 has fewer than 1 receive rpcIndex. Mismatch by caller suspected.
(EditorServer) - MultiplayerStats: ==================================================================
(EditorServer) - System:
(EditorServer) - ==================================================================
(EditorServer) - System: Trace::Assert
(EditorServer) -  C:/Users/s_vio/source/repos/o3de/Gems/Multiplayer/Code/Source/NetworkEntity/EntityReplication/EntityReplicationManager.cpp(989): (16656) 'bool __cdecl Multiplayer::EntityReplicationManager::HandleEntityRpcMessages(class AzNetworking::IConnection *,class AZStd::fixed_vector<class Multiplayer::NetworkEntityRpcMessage,1024> &)'
(EditorServer) - System: Failed processing RPC messages, disconnecting
(EditorServer) - System: ------------------------------------------------
Remotely disconnected from remote address 127.0.0.1:33450 due to StreamError
(EditorServer) - System: C:\Users\s_vio\source\repos\o3de\Gems\Multiplayer\Code\Source\NetworkEntity\EntityReplication\EntityReplicationManager.cpp (990) : Multiplayer::EntityReplicationManager::HandleEntityRpcMessages
(EditorServer) - System: C:\Users\s_vio\O3DE\Projects\Plunder2305\build\windows\External\Multiplayer-a0398b2a\Code\Azcg\Generated\Multiplayer.Common.Static\Source\AutoGen\Multiplayer.AutoPacketDispatcher.inl (154) : MultiplayerPackets::DispatchPacket<Multiplayer::MultiplayerSyst
(EditorServer) - System: C:\Users\s_vio\source\repos\o3de\Code\Framework\AzNetworking\AzNetworking\UdpTransport\UdpNetworkInterface.cpp (305) : AzNetworking::UdpNetworkInterface::Update
(EditorServer) - System: C:\Users\s_vio\source\repos\o3de\Code\Framework\AzNetworking\AzNetworking\Framework\NetworkingSystemComponent.cpp (81) : AzNetworking::NetworkingSystemComponent::OnSystemTick
(EditorServer) - System: C:\Users\s_vio\source\repos\o3de\Code\Framework\AzCore\AzCore\EBus\Internal\BusContainer.h (1360) : AZ::Internal::EBusContainer<AZ::SystemTickEvents,AZ::SystemTickEvents,0,1>::Dispatcher<AZ::EBus<AZ::SystemTickEvents,AZ::SystemTickEvents> >::Broadcast<vo
(EditorServer) - System: C:\Users\s_vio\source\repos\o3de\Code\Framework\AzCore\AzCore\Component\ComponentApplication.cpp (1656) : AZ::ComponentApplication::TickSystem
(EditorServer) - System: C:\Users\s_vio\source\repos\o3de\Code\LauncherUnified\Launcher.cpp (614) : O3DELauncher::Run
(EditorServer) - System: C:\Users\s_vio\source\repos\o3de\Code\LauncherUnified\Platform\Windows\Launcher_Windows.cpp (41) : WinMain
(EditorServer) - System: D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl (288) : __scrt_common_main_seh
(EditorServer) - System: 00007FF85952257D (KERNEL32) : BaseThreadInitThunk
(EditorServer) - System: 00007FF85AE0AF08 (ntdll) : RtlUserThreadStart
(EditorServer) - System: ==================================================================

Found in Branch
Development
October 04 2024
058a25144a3e872686e316eb45ab182675f64b4c

@AMZN-Gene AMZN-Gene added kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. triage/accepted Indicates an issue or PR is ready to be actively worked on. priority/critical Critical priority. Must be actively worked on as someone's top priority right now. sig/network Categorizes an issue or PR as relevant to SIG Network. and removed needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Oct 8, 2024
@AMZN-Gene AMZN-Gene changed the title Multiplayer Template: "Component ID 0 has fewer than 1 receive rpcIndex." Error Multiplayer Template: Client Disconnects Due to Component-Id Mismatch Oct 8, 2024
@AMZN-Gene AMZN-Gene linked a pull request Oct 8, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. priority/critical Critical priority. Must be actively worked on as someone's top priority right now. sig/network Categorizes an issue or PR as relevant to SIG Network. triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant