There is a consistent crash when incrementally compiling headers containing generated code.
The code for launching UHT accesses a property which is null when compiling with the UBT makefile.
Open the 4.17.0 editor from the launcher
Create a basic code project
Close the editor
Make any change to any header containing a UObject derived class (eg. <ProjectName>GameModeBase.h)
Compile
Observe that UBT crashes:
1>------ Build started: Project: MyProject21, Configuration: Development_Editor x64 ------ 1>EXEC : error : System.ArgumentNullException: Value cannot be null. 1> Parameter name: source 1> at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate) 1> at UnrealBuildTool.ExternalExecution.ExecuteHeaderToolIfNecessary(BuildConfiguration BuildConfiguration, UEBuildTarget Target, CppCompileEnvironment GlobalCompileEnvironment, List`1 UObjectModules, FileReference ModuleInfoFileName, ECompilationResult& UHTResult) 1> at UnrealBuildTool.UnrealBuildTool.RunUBT(BuildConfiguration BuildConfiguration, String[] Arguments, FileReference ProjectFile) 1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(41,5): error MSB3075: The command "D:\Launcher\UE_4.17\Engine\Build\BatchFiles\Build.bat MyProject21Editor Win64 Development "C:\Users\Ben.Marsh\Documents\Unreal Projects\MyProject21\MyProject21.uproject" -waitmutex" exited with code 5. Please verify that you have sufficient rights to run this command. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
+
Head over to the existing Questions & Answers thread and let us know what's up.
0 |
Component | UE - Foundation - Cpp Tools - UnrealBuildTool |
---|---|
Affects Versions | 4.17 |
Target Fix | 4.17.1 |
Created | Aug 9, 2017 |
---|---|
Resolved | Aug 9, 2017 |
Updated | Sep 23, 2019 |