Packaging /Build fails giving no helpful hint (UE 4.3.1)

Hi, I mainly have done the official UE4 programming tutorial (youtube) and the game runs fine in the editor. But when I try to package it for Win64, the build fails.
The log provides no helpful message telling me what causes the error.


MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: ERROR: UBT ERROR: Failed to produce item: C:\Users\padmalcom\Documents\Unreal Projects\Tutorial1\Binaries\Win64\Tutorial1.exe
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: Cumulative action seconds (8 processors): 0,00 building projects, 22,66 compiling, 0,00 creating app bundles, 0,00 generating debug info, 0,00 linking, 0,00 other
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: UBT execution time: 26,28 seconds
MainFrameActions: Packaging (Windows (64-bit)): CommandUtils.Run: Run: Took 26,3885093s to run UnrealBuildTool.exe
MainFrameActions: Packaging (Windows (64-bit)): BuildCommand.Execute: ERROR: BUILD FAILED
MainFrameActions: Packaging (Windows (64-bit)): Program.Main: ERROR: AutomationTool terminated with exception:
MainFrameActions: Packaging (Windows (64-bit)): Program.Main: ERROR: Exception in AutomationTool: Command failed (Result:2): E:\Unreal\Unreal Engine\4.3\Engine\Binaries\DotNET\UnrealBuildTool.exe Tutorial1 Win64 Development  "C:\Users\padmalcom\Documents\Unreal Projects\Tutorial1\Tutorial1.uproject"  -n
MainFrameActions: Packaging (Windows (64-bit)): oxge -rocket. See logfile for details: 'UnrealBuildTool.txt' 
MainFrameActions: Packaging (Windows (64-bit)): Stacktrace:    bei AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options)
MainFrameActions: Packaging (Windows (64-bit)):    bei AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName)
MainFrameActions: Packaging (Windows (64-bit)):    bei AutomationTool.UE4Build.BuildWithUBT(String ProjectName, String TargetName, UnrealTargetPlatform TargetPlatform, String Config, String UprojectPath, Boolean ForceMonolithic, Boolean ForceNonUnity, Boolean ForceDebugInfo, Boolean ForceFlushMac, Boolean DisableXGE, String InAddArgs, Boolean ForceUnity)
MainFrameActions: Packaging (Windows (64-bit)):    bei AutomationTool.UE4Build.Build(BuildAgenda Agenda, Nullable`1 InDeleteBuildProducts, Boolean InUpdateVersionFiles, Boolean InForceNoXGE, Boolean InForceNonUnity, Boolean InForceUnity)
MainFrameActions: Packaging (Windows (64-bit)):    bei Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL)
MainFrameActions: Packaging (Windows (64-bit)):    bei BuildCookRun.DoBuildCookRun(ProjectParams Params)
MainFrameActions: Packaging (Windows (64-bit)):    bei BuildCommand.Execute()
MainFrameActions: Packaging (Windows (64-bit)):    bei AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands)
MainFrameActions: Packaging (Windows (64-bit)):    bei AutomationTool.Automation.Process(String] CommandLine)
MainFrameActions: Packaging (Windows (64-bit)):    bei AutomationTool.Program.MainProc(Object Param)
MainFrameActions: Packaging (Windows (64-bit)):    bei AutomationTool.InternalUtils.RunSingleInstance(MainProc Main, Object Param)
MainFrameActions: Packaging (Windows (64-bit)):    bei AutomationTool.Program.Main()
MainFrameActions: Packaging (Windows (64-bit)): Program.Main: ERROR: Command failed (Result:2): E:\Unreal\Unreal Engine\4.3\Engine\Binaries\DotNET\UnrealBuildTool.exe Tutorial1 Win64 Development  "C:\Users\padmalcom\Documents\Unreal Projects\Tutorial1\Tutorial1.uproject"  -noxge -rocket. See logfile for
MainFrameActions: Packaging (Windows (64-bit)):  details: 'UnrealBuildTool.txt' 
MainFrameActions: Packaging (Windows (64-bit)): ProcessManager.KillAll: Trying to kill 0 spawned processes.
MainFrameActions: Packaging (Windows (64-bit)): Program.Main: AutomationTool exiting with ExitCode=1
MainFrameActions: Packaging (Windows (64-bit)): Domain_ProcessExit
MainFrameActions: Packaging (Windows (64-bit)): ProcessManager.KillAll: Trying to kill 0 spawned processes.

Also, the end of UnrealBuildTool.txt says nothing to me:


-------- End Detailed Actions Stats -----------------------------------------------------------
ERROR: UBT ERROR: Failed to produce item: C:\Users\padmalcom\Documents\Unreal Projects\Tutorial1\Binaries\Win64\Tutorial1.exe
Cumulative action seconds (8 processors): 0,00 building projects, 22,66 compiling, 0,00 creating app bundles, 0,00 generating debug info, 0,00 linking, 0,00 other
UBT execution time: 26,28 seconds

What is the common way to determine a build error in that situation?

P.S. I’m starting the UE4 from Visual Studio. Do I have to set a specific build configuration?

Okay, it was actually an error in the code. UBodySetup->InvalidatePhysicsData may be used in the editor but NOT in a packaged build.