FSocketEOS::OnNetworkStatusChanged() crashes when EOS_ENetworkStatus changes to EOS_ENetworkStatus::EOS_NS_Online.

Hello. We use Unreal Engine 5.6.1, EOSSDK 1.17.0-41373641.

We create/search/join multiplayer sessions using the CommonUser plugin 1.0.

We’d like to exit to the game’s main menu in case of losing network connection. Unfortunately, it often causes the aforementioned crash when the connection is up again.

The full sequence is:

  1. We subscribe to the FCoreDelegates::OnNetworkConnectionStatusChanged delegate.
  2. When the network connection fails, a subscriber is called.
  3. It does cleanups, calling UCommonUserSubsystem::ResetUserState and UCommonSessionSubsystem::CleanUpSessions
  4. Then we return to the main menu calling UGameInstance::ReturnToMainMenu()
  5. When the network connection is up again, we get the crash.

I’ve attached the screenshot with the particular code line where the crash occurs.

The problem is easily reproduced on one type of consoles when the game is suspended and then resumed after 1 minute.

And the problem fails console certification, so we really need something to fix it.

Thank you!

This should be fixed with the changes here.

Thank you, we’ll try to make the same changes.