x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Unknown Error: AutomationTool exiting with ExitCode=5 (5)

Hello,

Just upgraded to 4.16.1 Have an error which you can see below.

I've disabled the substance plugin in as i tried looking around about this error. if anyone can point me in the right direction, that would be great thanks.

 UATHelper: Packaging (Windows (64-bit)): Running AutomationTool...
 UATHelper: Packaging (Windows (64-bit)): Automation.ParseCommandLine: Parsing command line: -ScriptsForProject=C:/Personal/Pandora.uproject BuildCookRun -nocompile -nocompileeditor -installed -nop4 -project=C:/Personal/Pandora.uproject -cook -stage -archive -archivedirectory=C:/Users/nwint/Documents/Test -package -clientconfig=Development -ue4exe=UE4Editor-C
 md.exe -pak -prereqs -nodebuginfo -targetplatform=Win64 -build -CrashReporter -utf8output
 UATHelper: Packaging (Windows (64-bit)): BuildCookRun.SetupParams: Setting up ProjectParams for C:\Personal\Pandora.uproject
 UATHelper: Packaging (Windows (64-bit)): DynamicCompilation.CompileAssembly: Messages while compiling C:\Users\nwint\AppData\Local\Temp\UAT\C+Program+Files+Epic+Games+UE_4.16\Rules\UATRules14087912.dll:
 UATHelper: Packaging (Windows (64-bit)): DynamicCompilation.CompileAssembly: WARNING: c:\Personal\Source\Pandora.Target.cs(8,9) : warning CS0618: 'UnrealBuildTool.TargetRules.TargetRules()' is obsolete: 'Please pass the TargetInfo parameter to the base class constructor (eg. "MyTargetRules(TargetInfo Target) : base(Target)").'
 UATHelper: Packaging (Windows (64-bit)): DynamicCompilation.CompileAssembly: WARNING: c:\Personal\Source\PandoraEditor.Target.cs(8,9) : warning CS0618: 'UnrealBuildTool.TargetRules.TargetRules()' is obsolete: 'Please pass the TargetInfo parameter to the base class constructor (eg. "MyTargetRules(TargetInfo Target) : base(Target)").'
 UATHelper: Packaging (Windows (64-bit)): Project.Build: ********** BUILD COMMAND STARTED **********
 UATHelper: Packaging (Windows (64-bit)): CommandUtils.Run: Run: C:\Program Files\Epic Games\UE_4.16\Engine\Binaries\DotNET\UnrealBuildTool.exe Pandora Win64 Development -Project=C:\Personal\Pandora.uproject  C:\Personal\Pandora.uproject -NoUBTMakefiles  -remoteini="C:\Personal" -noxge -generatemanifest -NoHotReload
 UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: C:\Personal\Source\GameLoadingScreen\GameLoadingScreen.Build.cs: warning: Module constructors should take a ReadOnlyTargetRules argument (rather than a TargetInfo argument) and pass it to the base class constructor from 4.15 onwards. Please update the method signature.
 UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: C:\Personal\Source\Pandora\Pandora.Build.cs: warning: Module constructors should take a ReadOnlyTargetRules argument (rather than a TargetInfo argument) and pass it to the base class constructor from 4.15 onwards. Please update the method signature.
 UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: C:\Personal\Source\Pandora.Target.cs: warning: SetupBinaries() is deprecated in the 4.16 release. From the constructor in your .target.cs file, use ExtraModuleNames.Add("Foo") to add modules to your target, or set LaunchModuleName = "Foo" to override the name of the launch module for program targets.
 UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: C:\Personal\Source\PandoraEditor.Target.cs: warning: SetupBinaries() is deprecated in the 4.16 release. From the constructor in your .target.cs file, use ExtraModuleNames.Add("Foo") to add modules to your target, or set LaunchModuleName = "Foo" to override the name of the launch module for program tar
 gets.
 UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool: ERROR: Unable to instantiate instance of 'PandoraTarget' object type from compiled assembly 'PandoraModuleRules'.  Unreal Build Tool creates an instance of your module's 'Rules' object in order to find out about your module's requirements.  The CLR exception details may provide more information:  Syst
 em.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.MissingFieldException: Field not found: 'UnrealBuildTool.TargetRules.Type'.
 UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool:    at PandoraTarget..ctor(TargetInfo Target)
 UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool:    --- End of inner exception stack trace ---
 UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool:    at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
 UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool:    at System.Reflection.RuntimeConstructorInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
 UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool:    at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
 UATHelper: Packaging (Windows (64-bit)): UnrealBuildTool:    at UnrealBuildTool.RulesAssembly.CreateTargetRulesInstance(String TypeName, TargetInfo TargetInfo)
 UATHelper: Packaging (Windows (64-bit)): CommandUtils.Run: Run: Took 0.7181757s to run UnrealBuildTool.exe, ExitCode=5
 UATHelper: Packaging (Windows (64-bit)): Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.CommandUtils+CommandFailedException: Command failed (Result:5): C:\Program Files\Epic Games\UE_4.16\Engine\Binaries\DotNET\UnrealBuildTool.exe Pandora Win64 Development -Project=C:\Personal\Pandora.uproject  C:\Personal\Pandora.uproject -NoU
 BTMakefiles  -remoteini="C:\Personal" -noxge -generatemanifest -NoHotReload. See logfile for details: 'UnrealBuildTool-2017.06.12-10.18.50.txt' 
 UATHelper: Packaging (Windows (64-bit)):    at AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars, SpewFilterCallbackType SpewFilterCallback)
 UATHelper: Packaging (Windows (64-bit)):    at AutomationTool.CommandUtils.RunAndLog(CommandEnvironment Env, String App, String CommandLine, String LogName, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars, SpewFilterCallbackType SpewFilterCallback)
 UATHelper: Packaging (Windows (64-bit)):    at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName, Dictionary`2 EnvVars)
 UATHelper: Packaging (Windows (64-bit)):    at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, FileReference Project, String Target, String Platform, String Config, String AdditionalArgs, String LogName, Dictionary`2 EnvVars)
 UATHelper: Packaging (Windows (64-bit)):    at AutomationTool.UE4Build.BuildWithUBT(String TargetName, UnrealTargetPlatform TargetPlatform, String Config, FileReference UprojectPath, Boolean ForceMonolithic, Boolean ForceNonUnity, Boolean ForceDebugInfo, Boolean ForceFlushMac, Boolean DisableXGE, String InAddArgs, Boolean ForceUnity, Dictionary`2 EnvVars)
 UATHelper: Packaging (Windows (64-bit)):    at AutomationTool.UE4Build.Build(BuildAgenda Agenda, Nullable`1 InDeleteBuildProducts, Boolean InUpdateVersionFiles, Boolean InForceNoXGE, Boolean InUseParallelExecutor, Boolean InForceNonUnity, Boolean InForceUnity, Boolean InShowProgress, Dictionary`2 PlatformEnvVars, Nullable`1 InChangelistNumberOverride, Dictio
 nary`2 InTargetToManifest)
 UATHelper: Packaging (Windows (64-bit)):    at Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL, ProjectBuildTargets TargetMask)
 UATHelper: Packaging (Windows (64-bit)):    at BuildCookRun.DoBuildCookRun(ProjectParams Params)
 UATHelper: Packaging (Windows (64-bit)):    at BuildCookRun.ExecuteBuild()
 UATHelper: Packaging (Windows (64-bit)):    at AutomationTool.BuildCommand.Execute()
 UATHelper: Packaging (Windows (64-bit)):    at AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands)
 UATHelper: Packaging (Windows (64-bit)):    at AutomationTool.Automation.Process(String[] Arguments)
 UATHelper: Packaging (Windows (64-bit)):    at AutomationTool.Program.MainProc(Object Param)
 UATHelper: Packaging (Windows (64-bit)):    at AutomationTool.InternalUtils.RunSingleInstance(Func`2 Main, Object Param)
 UATHelper: Packaging (Windows (64-bit)):    at AutomationTool.Program.Main()
 UATHelper: Packaging (Windows (64-bit)): Program.Main: AutomationTool exiting with ExitCode=5 (5)
 UATHelper: Packaging (Windows (64-bit)): BUILD FAILED
 PackagingResults:Error: Error Unknown Error

Product Version: UE 4.16
Tags:
more ▼

asked Jun 12 '17 at 09:20 AM in Packaging & Deployment

avatar image

NareiceWint
6 1 2 4

avatar image LuLima Aug 07 '17 at 08:05 PM

Did you find any fixes?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

I had this issue as well when migrating a 4.14 project up to 4.18. My project was a C++ project. Deleting everything except the UPROJECT, Config, Content, and Source directories, then re-generating VS files from the UPROJECT fixed the error.

I am now running into the issue in this thread: https://answers.unrealengine.com/questions/718575/error-when-updating-to-418-generating-visual-studi.html - however - that seems to just be the next bump in the upgrade road.

more ▼

answered Nov 06 '17 at 07:17 PM

avatar image

jjlangley
16 1 4 6

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question