# P2P game crashes on host and writes a 2 GB log file with LogEOSP2P errors

**URL:** <https://forums.unrealengine.com/t/p2p-game-crashes-on-host-and-writes-a-2-gb-log-file-with-logeosp2p-errors/784415>\
**Category:** Multiplayer & Networking\
**Tags:** unreal-engine, crash, question\
**Created:** [March 5, 2023, 10:20pm UTC](https://forums.unrealengine.com/t/p2p-game-crashes-on-host-and-writes-a-2-gb-log-file-with-logeosp2p-errors/784415 "2023-03-05T22:20:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![JediKnightChan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jediknightchan/32/1156960_2.png) [@JediKnightChan](https://forums.unrealengine.com/u/JediKnightChan)\
**Post date:** [March 5, 2023, 10:20pm UTC](https://forums.unrealengine.com/t/p2p-game-crashes-on-host-and-writes-a-2-gb-log-file-with-logeosp2p-errors/784415/1 "2023-03-05T22:20:38Z")

</div>

After some time, like 30 minutes, spent as a host of my P2P game, the game froze and started dumping my log with the following messages

`LogEOSSDK: Warning: LogEOSP2P: Attempted to get next received packet with a LocalUserId that did not validate correctly. Result=[EOS_InvalidAuth]\r\n[2023.03.05-21.30.32:802][197]LogSocketSubsystemEOS: Error: Unable to receive data result code = (EOS_InvalidAuth)\r\n[2023.03.05-21.30.32:802][197]LogNet: Warning: UIpNetDriver::TickDispatch: Socket->RecvFrom: 5 (SE_EINVAL) from EOS:::0\r\n[2023.03.05-21.30.32:802]`

which flooded like 2 GB of my log.

I don’t know if game freeze is caused by this EOS warning or EOS warning is caused by the freeze (and if first, why receiving not valid local user id makes host not responsible). Before these 2 GB warnings there were lots of warnings like this:

`LogUObjectGlobals: Warning: Gamethread hitch waiting for resource cleanup on a UObject (SkeletalMeshComponent /Game/Maps/ThirdPersonMap.ThirdPersonMap:PersistentLevel.B_Cosmetic_SpaceMarine_C_2147236259.SkeletalMesh.Default) overwrite took 15.20ms. Fix the higher level code so that this does not happen.\r\n`

`LogNetPackageMap: Warning: FNetGUIDCache::SupportsObject: AbilityTask_WaitForInteractableTargets_SingleLineTrace /Engine/Transient.AbilityTask_WaitForInteractableTargets_SingleLineTrace_2147225459 NOT Supported.\r\n[2023.03.05-21.04.41:869][926]`

Switching from standard print strings to the 2-GB looping error:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/e/c/aec2e6f0528aa8155c42de4e21dd0eaf2a8b2959.png)

---

<div class="post-metadata">

**Author:** ![JediKnightChan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jediknightchan/32/1156960_2.png) [@JediKnightChan](https://forums.unrealengine.com/u/JediKnightChan)\
**Post date:** [March 14, 2023, 5:02pm UTC](https://forums.unrealengine.com/t/p2p-game-crashes-on-host-and-writes-a-2-gb-log-file-with-logeosp2p-errors/784415/2 "2023-03-14T17:02:41Z")

</div>

This error seems to appear very rarely, so I have suspicions that it was caused by EOS token expire on host. To avoid that, I’ll either check for token expiry time when using persistent login or remove persistent login at all.

---

<div class="post-metadata">

**Author:** ![rafaelroob](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rafaelroob](https://forums.unrealengine.com/u/rafaelroob)\
**Post date:** [March 17, 2023, 3:12am UTC](https://forums.unrealengine.com/t/p2p-game-crashes-on-host-and-writes-a-2-gb-log-file-with-logeosp2p-errors/784415/3 "2023-03-17T03:12:13Z")

</div>

Due to the rarity of this problem, I believe that the host’s EOS token has expired. I’ll either disable persistent login or implement a token expiration check to prevent that from happening. [drift boss](https://drift-boss.co/)

---

<div class="post-metadata">

**Author:** ![JediKnightChan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jediknightchan/32/1156960_2.png) [@JediKnightChan](https://forums.unrealengine.com/u/JediKnightChan)\
**Post date:** [July 18, 2023, 11:36am UTC](https://forums.unrealengine.com/t/p2p-game-crashes-on-host-and-writes-a-2-gb-log-file-with-logeosp2p-errors/784415/4 "2023-07-18T11:36:47Z")

</div>

Resolution in another post: [EOS: how to refresh access token? After I login, it only works for 2 hours, then the game freezes - #2 by JediKnightChan](https://forums.unrealengine.com/t/eos-how-to-refresh-access-token-after-i-login-it-only-works-for-2-hours-then-the-game-freezes/1163637/2)

In short: had wrong config,  
Need to change `bUseEAS` from `False` to `True` and add `NativePlatformService=EOS` to `[OnlineSubsystem]`

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [August 17, 2023, 11:37am UTC](https://forums.unrealengine.com/t/p2p-game-crashes-on-host-and-writes-a-2-gb-log-file-with-logeosp2p-errors/784415/5 "2023-08-17T11:37:40Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
