Packaging failed with "unknown error"

Hey there!

I have a project that was created in UE 4.16 and recently upgraded to 4.17.2. Before said upgrade, it was packaged just fine (for Windows 32bit), but now it just fails with and “unknown error”. Here’s what the Output Log says (the .txt log saved has even less info)

********** BUILD COMMAND STARTED **********

UATHelper: Packaging (Windows (32-bit)): CommandUtils.Run: Run: D:\Program Files\UE_4.17\Engine\Binaries\DotNET\UnrealBuildTool.exe MyGame Win32 DebugGame
-Project=D:\Unreal_Projects\_BAL\MyGame\MyGame.uproject D:\Unreal_Projects\_BAL\MyGame\MyGame.uproject
-NoUBTMakefiles  -remoteini="D:\Unreal_Projects\_BAL\MyGame" -skipdeplo y -noxge -generatemanifest -NoHotReload

UATHelper: Packaging (Windows (32-bit)): CommandUtils.Run: Run: Took 1,2289852s to run UnrealBuildTool.exe, ExitCode=0

UATHelper: Packaging (Windows (32-bit)): CommandUtils.Run: Run: D:\Program Files\UE_4.17\Engine\Binaries\DotNET\UnrealBuildTool.exe MyGame Win32 DebugGame
-Project=D:\Unreal_Projects\_BAL\MyGame\MyGame.uproject D:\Unreal_Projects\_BAL\MyGame\MyGame.uproject
-NoUBTMakefiles  -remoteini="D:\Unreal_Projects\_BAL\MyGame" -skipdeplo y -noxge -NoHotReload -ignorejunk

UATHelper: Packaging (Windows (32-bit)): UnrealBuildTool: Parsing headers for MyGame

UATHelper: Packaging (Windows (32-bit)): UnrealBuildTool:   Running UnrealHeaderTool "D:\Unreal_Projects\_BAL\MyGame\MyGame.uproject" "D:\Unreal_Projects\_BAL\MyGame\Intermediate\Build\Win32\MyGame\DebugGame\MyGame.uhtmanifest"
-LogCmds="loginit warning, logexit warning, logdatabase error"
-Unattended -WarningsAsErrors -installed

UATHelper: Packaging (Windows (32-bit)): UnrealBuildTool: Reflection code generated for MyGame in 6,6957389 seconds

UATHelper: Packaging (Windows (32-bit)): UnrealBuildTool: Performing 13 actions (4 in parallel)

UATHelper: Packaging (Windows (32-bit)): UnrealBuildTool: [3/13] Resource PCLaunch.rc

UATHelper: Packaging (Windows (32-bit)): UnrealBuildTool: ERROR: UBT ERROR: Failed to produce item: D:\Unreal_Projects\_BAL\MyGame\Binaries\Win32\MyGame-Win32-DebugGame.exe

UATHelper: Packaging (Windows (32-bit)): UnrealBuildTool: Total build time: 11,67 seconds (Local executor: 0,00 seconds)

UATHelper: Packaging (Windows (32-bit)): CommandUtils.Run: Run: Took 11,9209893s to run UnrealBuildTool.exe, ExitCode=5

UATHelper: Packaging (Windows (32-bit)): Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.CommandUtils+CommandFailedException: Command failed (Result:5): D:\Program Files\UE_4.17\Engine\Binaries\DotNET\UnrealBuildTool.exe MyGame Win32 DebugGame
-Project=D:\Unreal_Projects\_BAL\MyGame\MyGame.uproject D:\Unreal_Proj ects\_BAL\MyGame\MyGame.uproject
-NoUBTMakefiles  -remoteini="D:\Unreal_Projects\_BAL\MyGame" -skipdeploy -noxge -NoHotReload -ignorejunk. See logfile for details: 'UnrealBuildTool-2017.10.02-18.21.58.txt'


UATHelper: Packaging (Windows (32-bit)):    em AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars, SpewFilterCallbackType SpewFilterCallback)

UATHelper: Packaging (Windows (32-bit)):    em 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 (32-bit)):    em AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName, Dictionary`2 EnvVars)

UATHelper: Packaging (Windows (32-bit)):    em 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 (32-bit)):    em 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 (32-bit)):    em 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 (32-bit)):    em Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL, ProjectBuildTargets TargetMask)

UATHelper: Packaging (Windows (32-bit)):    em BuildCookRun.DoBuildCookRun(ProjectParams Params)

UATHelper: Packaging (Windows (32-bit)):    em BuildCookRun.ExecuteBuild()

UATHelper: Packaging (Windows (32-bit)):    em AutomationTool.BuildCommand.Execute()

UATHelper: Packaging (Windows (32-bit)):    em AutomationTool.Automation.Execute(List`1 CommandsToExecute, Dictionary`2 Commands)

UATHelper: Packaging (Windows (32-bit)):    em AutomationTool.Automation.Process(String[] Arguments)

UATHelper: Packaging (Windows (32-bit)):    em AutomationTool.Program.MainProc(Object Param)

UATHelper: Packaging (Windows (32-bit)):    em AutomationTool.InternalUtils.RunSingleInstance(Func`2 Main, Object Param)

UATHelper: Packaging (Windows (32-bit)):    em AutomationTool.Program.Main()

UATHelper: Packaging (Windows (32-bit)): Program.Main: AutomationTool exiting with ExitCode=5 (5)

UATHelper: Packaging (Windows (32-bit)): BUILD FAILED

PackagingResults: Error: Unknown Error

Some possibly relevant info:

  • This was created as a blueprint project and later on some C++ classes were added (though they are not currently in use, just some tests);

  • The “Compile” button runs without a hitch;

  • When opening the project, I receive 5 “Failed to load Parent for Function” messages;

  • I also receive 3 warnings (all displayed twice, so 6 warning messages) when opening the project:

    LogModuleManager: Warning: No filename provided for module ExampleDeviceProfileSelector
    LogModuleManager: Warning: ModuleManager: Unable to load module ‘ExampleDeviceProfileSelector’ because the file ‘D:/Program Files/UE_4.17/Engine/Binaries/Win64/’ was not found.
    LogLinker: Warning: Can’t find file ‘/Script/OnlineSubsystemUtils’

All that said… Any idea what may be the cause of my problem?

Also not able to package a 32 bit exe. I’ve heard that Visual Studio 2015 may be required to package a 32 bit exe, but haven’t been able to confirm.