my dedicated server crash when the first player is joining. The only output in log is the following:
“LogOutputDevice: Warning: Script Stack (1 frames): GameModeBase.HandleStartingNewPlayer”
“LogWindows: Windows GetLastError: The operation completed successfully. (0)”
“Log file closed, 11/02/21 15:56:41”
No callstack is present !
A report is present in the Crashes folder but “UE4Minidump.dmp” is empty (0 KB) and in “CrashContext.runtime-xml” the only “readable” information is: “Assertion failed: (Index >= 0) & (Index < ArrayNum) [File:C:\UE4.27\Engine\Source\Runtime\Core\Public\Containers/Array.h] [Line: 703]
Array index out of bounds: 24 from an array of size 24”
The rest is callstacks with adresses (not path and line): "rigidityServer-Win64-DebugGame 0x00007ff6a7240000 + 1c27a7b "
Context: The server has been compiled in DebugGame mode and contains the .pdb file.
How can I have more information to debug it ? Compiling the server in Development mode would add callstack in log ?
I’m using AWS Gamelift, so I can’t reproduce it locally. I have distance access to the instance but it does not have VS installed to do live debugging.
I’m pretty stuck here with so few information about what’s going wrong.
Any help is appreciated !
PS: Of course everything works perfectly in the editor with “PIE” and “Standalone Game” play mode.
After some digging, override game mode HandleStartingNewPlayer and copy/pasting engine code until I could not override the called function, I have a part of callstack:
AGameModeBase::FinishRestartPlayer line 1306
AGameModeBase::RestartPlayerAtPlayerStart line 1262
AGameModeBase::RestartPlayer line 1196
AGameModeBase::HandleStartingNewPlayer_Implementation line 1029
I can’t go any further because AGameModeBase::FinishRestartPlayer line 1306 is the following line: “NewPlayer->Possess(NewPlayer->GetPawn());” it’s when the controller possess the spawned Pawn (Possess is a final function I cannot override it to see further).
I then replaced my custom controller by the default APlayerController class. It crashes exactly the same.