Hello,
My team and I recently ran into this issue. The game will build, run, and cook just fine. However,
when we launch the game it gives us the error below.
Log.WriteException: ==============================================================================
Log.WriteException: ERROR: Client exited with error code: -1073741819
Log.WriteException: (see C:\Users\Zack\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+UE_4.27\Log.txt for full exception trace)
Log.WriteException:
Log.WriteException: AutomationException: Client exited with error code: -1073741819
Log.WriteException: at Project.RunStandaloneClient(List`1 DeployContextList, String ClientLogFile, ERunOptions ClientRunFlags, String ClientApp, String ClientCmdLine, ProjectParams Params) in D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\Scripts\RunProjectCommand.Automation.cs:line 370
Log.WriteException: at Project.RunInternal(ProjectParams Params, String ServerLogFile, String ClientLogFile) in D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\Scripts\RunProjectCommand.Automation.cs:line 176
Log.WriteException: at Project.Run(ProjectParams Params) in D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\Scripts\RunProjectCommand.Automation.cs:line 109
Log.WriteException: at BuildCookRun.DoBuildCookRun(ProjectParams Params) in D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:line 221
Log.WriteException: at BuildCookRun.ExecuteBuild() in D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:line 39
Log.WriteException: at AutomationTool.BuildCommand.Execute() in D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\AutomationUtils\BuildCommand.cs:line 263
Log.WriteException: at AutomationTool.Automation.Execute(List`1 CommandsToExecute, Dictionary`2 Commands) in D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 547
Log.WriteException: at AutomationTool.Automation.Process(String[] Arguments, StartupTraceListener StartupListener) in D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 511
Log.WriteException: at AutomationTool.Program.MainProc(String[] Arguments, StartupTraceListener StartupListener) in D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\Program.cs:line 175
Log.WriteException: at AutomationTool.Program.<>c__DisplayClass1_0.<Main>b__2() in D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\Program.cs:line 87
Log.WriteException: at AutomationTool.InternalUtils.RunSingleInstance(Func`1 Main) in D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\AutomationUtils\Utils.cs:line 739
Log.WriteException: at AutomationTool.Program.Main(String[] Arguments) in D:\Build\++UE4\Sync\Engine\Source\Programs\AutomationTool\Program.cs:line 87
Log.WriteException: ==============================================================================
Program.Main: AutomationTool exiting with ExitCode=1 (Error_Unknown)
It’s quite hard to track this type of issue down and I’m not sure how we would. If any one has ideas please let us know, it would be a great learning experience. We tried attaching a debugger to the build tool but I didn’t see anything out of the ordinary until this crash. I tried CLI for the cook and run process with no change.
If you’re here reading this maybe you have the same issue! And I am pleased to say we have a solution! Most of what I found was to fix redirects in the game, this didn’t help us at all.
But one thing did… we have an object called “FOGlobal.” The idea for this object was to hold several of our enums that get passed around. We also used some static game play tags. I’m guessing this caused an issue because the tags haven’t been created before the object tries to call them? I don’t know…
FOGlobal.h
static FGameplayTag AgilityTag;
FOGlobal.cpp
FGameplayTag UFOGlobal::AgilityTag = FGameplayTag::RequestGameplayTag("Stat.Agility");
I should mention that this tag exists, works, and has no problem being used during PIE.
Removing this static variable fixed everything. Re-adding it kills it with the same error.
GL and I hope any one with this issue gets it resolved.