Dedicated Server (KERNELBASE.dll UnknownFunction[])

I have upgraded my game from 4.17 to 4.18 and fixed the server errors and destructible plugin.
The game compiles fine in the Unreal Editor, and I build the dedicated server in Visual Studio with no errors. When I run the dedicated server map which I copied to the Binaries/Win64 in the build folder, I’m getting the error shown in the attachment. I’ve never experienced such an error after upgrading.

Any help would be appreciated!

Still haven’t figured it out.

bumping…

Compile with development or debug build configuration and keep the pdb files so you can read stack trace with correct function names and line numbers

I am compiling using “Development Server” in Visual Studio. I am having a doubt about a file I have changed after upgrading to 4.18 “Server.Target.cs”. I had to change all the Target.cs files and the Build.cs file in order to build in 4.18

Here is the code for the “Server.Target.cs” file:


using UnrealBuildTool;
using System.Collections.Generic;

[SupportedPlatforms(UnrealPlatformClass.Server)]
public class UE4GameServerTarget : TargetRules
{
    public UE4GameServerTarget(TargetInfo Target) : base (Target)
    {
        Type = TargetType.Server;

  ExtraModuleNames.Add("UE4Game");
    }
}

What exactly can I do in order to get a detailed log?

Just copy pdb file with the same name as your exe aswell. It’ll automatically symbolize the stack trace then.

Zeblote you are a life savior! I managed to find out the error and fixed it after adding the pdb file.

Thanks a lot!

hello can you help me i am making the same mistake :frowning:

Yes of course, I was able to find the exact error by adding the “.pdb” file that is generated with the server build.
So when you copy your “GameNameServer.exe” copy also the “GameNameServer.pdb” with it to the “Win64” folder of your build.

That way you will be able to get a log with detailed error messages for you to find your problem and fix it.

Hope this helps!

Bro! I am getting the same thing! But I noticed that you TOO have the GameLiftSDK plugin installed. I just added the GameLiftSDK plugin to my dedicated server and I’m getting the following ever since I tried loading the module within my source code using


FModuleManager

.



[2017.11.22-13.05.37:572]  0]LogWindows: Error: [Callstack] 0x000000005D589D98 KERNELBASE.dll!UnknownFunction ]
[2017.11.22-13.05.37:572]  0]LogWindows: Error: [Callstack] 0x00000000D04542B0 UE4GameServer.exe!UnknownFunction ]
[2017.11.22-13.05.37:572]  0]LogWindows: Error: [Callstack] 0x00000000D0454726 UE4GameServer.exe!UnknownFunction ]
[2017.11.22-13.05.37:573]  0]LogWindows: Error: [Callstack] 0x00000000D017D4EF UE4GameServer.exe!UnknownFunction ]
[2017.11.22-13.05.37:573]  0]LogWindows: Error: [Callstack] 0x00000000CC9FFB7B UE4GameServer.exe!UnknownFunction ]
[2017.11.22-13.05.37:573]  0]LogWindows: Error: [Callstack] 0x00000000CED91D45 UE4GameServer.exe!UnknownFunction ]
[2017.11.22-13.05.37:573]  0]LogWindows: Error: [Callstack] 0x00000000CC9E1FB6 UE4GameServer.exe!UnknownFunction ]
[2017.11.22-13.05.37:574]  0]LogWindows: Error: [Callstack] 0x00000000CC9F1B42 UE4GameServer.exe!UnknownFunction ]
[2017.11.22-13.05.37:574]  0]LogWindows: Error: [Callstack] 0x00000000CC9F1CBA UE4GameServer.exe!UnknownFunction ]
[2017.11.22-13.05.37:574]  0]LogWindows: Error: [Callstack] 0x00000000CC9FD368 UE4GameServer.exe!UnknownFunction ]
[2017.11.22-13.05.37:574]  0]LogWindows: Error: [Callstack] 0x00000000D0451CAB UE4GameServer.exe!UnknownFunction ]
[2017.11.22-13.05.37:575]  0]LogWindows: Error: [Callstack] 0x000000005E1E2774 KERNEL32.DLL!UnknownFunction ]
[2017.11.22-13.05.37:575]  0]LogWindows: Error: [Callstack] 0x00000000605F0D51 ntdll.dll!UnknownFunction ]
[2017.11.22-13.05.37:575]  0]LogWindows: Error: [Callstack] 0x00000000605F0D51 ntdll.dll!UnknownFunction ]


Any updates or solutions to this?

@SyedAman do copy the “.pdb” file that is generated with the “GameServer.exe” to ur server build (or alternatively u could use UnrealFrontend to build the server files), that way u’d get a detailed error message which will explain where your problem is.

P.S.: do use the UnrealFrontend of the source code and not the editor one, or else u will get errors while building the server!

Hey @KingOfProgramz, thank you for the reply. I managed to fix this bug. I can’t remember exactly what I did to fix it but I did the following:

  • Rebuilt .dll and .lib files using cmake and nmake and proper variables
  • Deleted Intermediate, Saved, and Binaries folder
  • Did a full build of GameEditor, GameServer, Game, and then packaged it up for Development configuration
  • Made sure all target.cs files were compatible with 4.19
  • Made sure all target.cs files included the GameliftSDK files

where do we find the pdb file?