I have tried and successfully created a a working dedicated server using the Third Person Template and the SteamSubsystem, so my general setup should be alright.
The engine is a locally built binary build based on the 4.18 source version (no changes were made, except the ones required to use dedicated servers).
I’m attaching the logs that were generated, I really hope someone could point me in the right direction as after several hours of research I am pretty hopeless. Thanks!
The server instance launches and runs fine in the editor (when ‘UseSingleProcess’ is not selected in the EditorPreferences), but crashes every time when packaged with the same error.
Unchecking UseSingleProcess seems to fix the issue for me, as well as getting rid of all the OnRep stuff in the parent class of the class that is causing the break when you run the editor from VS debugging.
I’m getting a similar error. From doing some research, KERNELBASE.dll is not the perpetrator, that’s just the unfortunate victim. The perpetrator is obviously your <Game>Server.exe.
In order to properly find the root cause of your issue, I highly recommend you copy over <Game>Server.exe along with the .pbd which will contain the symbols and stack traces for what wrong.
Personally, I got the error when trying to use FModuleManager::LoadChecked to load the GameLiftServerSDK plugin that I added to my Plugins directory. I have seen other threads with similar error messages. This could be a stackoverflow or just improper importing of a library that doesn’t exist. I am wondering if your case is similar. This could also be improperly built dlls or libs
Some solutions that have worked for other users is simply deleting the packaged contents and repackaging the editor, server.
I’m still looking for a fix. I’m intending on posting here if I find a solution to my error.
Looking at your first log your game’s executable appears to be pretty involved in the call stack, as all of the plugin modules appear to have already loaded that doesnt seem to be the issue either.
You should try attaching a Visual Studio debug session to the process or loading the .dmp file emitted into Visual Studio so you can check the call stack for what is actually causing the crash. (the logs aren’t very transparent). If you have built, cooked, and packaged the server you should also be able to run the dedicated server directly from visual studio by switching the solution configuration in Visual Studio from Development Editor to Development Server.
Happy Hunting,
-Spiris