Crash in AWS Gamelift InitSDK while creating websocket.

0

Our project is currently using Unreal Engine 5.3.

Our fleets fail to activate, with:

SERVER_PROCESS_SDK_INITIALIZATION_TIMEOUT The server process did not call InitSDK() within the time expected. Check your game session log to see why InitSDK() was not called in time.

We have some error reporting enabled, and I can see that the server processes are crashing while calling InitSDK, and the crash is coming from the SDK itself.

 === Critical error: ===

Fatal error!

Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x0000000000000000

0x00007fffe1282f58 MSVCP140.dll!UnknownFunction []
0x00007ffb95d714a9 aws-cpp-sdk-gamelift-server.dll!websocketpp::endpoint<websocketpp::connection<websocketpp::config::asio_tls_client>,websocketpp::config::asio_tls_client>::endpoint<websocketpp::connection<websocketpp::config::asio_tls_client>,websocketpp::config::asio_tls_client>() [GameLift-Cpp-ServerSDK-5.1.2\win64_out\prefix\include\websocketpp\endpoint.hpp:102]
0x00007ffb95d70f47 aws-cpp-sdk-gamelift-server.dll!Aws::GameLift::Internal::GameLiftServerState::CreateInstance<Aws::GameLift::Internal::WebSocketppClientWrapper,websocketpp::client<websocketpp::config::asio_tls_client> >() [GameLift-Cpp-ServerSDK-5.1.2\gamelift-server-sdk\include\aws\gamelift\internal\GameLiftServerState.h:118]
0x00007ffb95d7232f aws-cpp-sdk-gamelift-server.dll!Aws::GameLift::Server::InitSDK() [GameLift-Cpp-ServerSDK-5.1.2\gamelift-server-sdk\source\aws\gamelift\server\GameLiftServerAPI.cpp:180]
0x00007ffb95d72467 aws-cpp-sdk-gamelift-server.dll!Aws::GameLift::Server::InitSDK() [GameLift-Cpp-ServerSDK-5.1.2\gamelift-server-sdk\source\aws\gamelift\server\GameLiftServerAPI.cpp:174]
0x00007ff788e6e386 Game.exe!FGameLiftServerSDKModule::InitSDK()

We're using AWS GameLift Server SDK 5.1.2. We followed the instructions here: https://docs.aws.amazon.com/gamelift/latest/developerguide/integration-engines-setup-unreal.html

We're including the following binaries alongside the game executable:

  • libss1-1_1-x64.dll
  • libcrypto-1_1-x64.dll
  • aws-cpp-sdk-gamelift-server.dll

We've trying this on both AmazonLinux2023 and Windows_2016 OSes, with Linux and Win64 versions of our game respectively.

Through our crash reporting mechanism, I was able to get logs, and I can see that:

  • Gamelift is passing in the expected environment variables
  • The server is starting up without issue until it hits this crash.
  • There server process is only reporting using around 500MB of memory, which should be well within the instance limit.
  • The server process is able to bind to the expected port, etc.
질문됨 2달 전58회 조회
1개 답변
0

The instructions on https://docs.aws.amazon.com/gamelift/latest/developerguide/integration-engines-setup-unreal.html mention that you also need to include the cmake-build\prefix\bin\aws-cpp-sdk-gamelift-server.lib binary alongside the game executable. Your error log suggests that the GameLift SDK is failing to find a library, so including both GameLift library files might solve your problem.

AWS
답변함 2달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠