Getting strange error on dedicated server (Assertion failed: NetGUID.IsDynamic())

ackyshacky
Sun, 28 May 2023 20:06:10 +0000
Multiplayer & Networking

Hello everyone,

I have a multiplayer shooter game (UE 5.0.3) running on a dedicated server. As the client, when I do a line trace from the gun to a specific blueprint (called BP_StreetLight), the engine crashed with the errors below:

[2023.05.28-18.33.59:813][600]LogWindows: Error: Assertion failed: NetGUID.IsDynamic() [File:A:\UnrealSource5p03\UnrealEngine\Engine\Source\Runtime\Engine\Private\PackageMapClient.cpp] [Line: 2112]
[2023.05.28-18.33.59:813][600]LogWindows: Error: Non-stably named object BP_StreetLight1_C /Game/_Game/Maps/TestMap.TestMap:PersistentLevel.BP_StreetLight1_C_UAID_2CF05DE4D797037F01_1386614294 has static NetGUID [225]. [UNetConnection] RemoteAddr: 55.92.134.28:7777, Name: IpConnection_0, Driver: GameNetDriver IpNetDriver_0, IsServer: NO, PC: BP_MyPlayerController_C_0, Owner: BP_MyPlayerController_C_0, UniqueId: EOSCore:df2424bba23f4c7f8223320b5626f353|00020a9e3b084503a7e6428e22c755ad

So the BP_StreetLight is a blueprint with a simple static mesh component with a spot light component, and is placed in the map through the editor before cooking (i.e., it is not spawned at run time). Since it’s placed like this, I don’t need to replicate the mesh. When I do the line trace on other actors around the map, there is no crash; the crash only happens when I do the line trace on the static mesh in the BP_StreetLight blueprint. Note that the crash only happens when I’m playing through the dedicated server (not when I’m testing as a client in the editor).

What could be the problem?

12 posts - 3 participants