UnrealBuildTool Fails when Creating C++ Projects

Hello,

I’ve been attempting to build project files for game that I created some weeks ago. Building the project files had been successful over the previous weeks but for some reason it failed today. After falling to this failure I attempted to create new C++ projects using both 4.6 and 4.7, both fail with the following error:

Failed to generate project files. Log output:
Running C:/Program Files/Epic Games/4.7/Engine/Binaries/DotNET/UnrealBuildTool.exe -projectfiles -project="C:/Users//Desktop/MyProject/MyProject.uproject" -game -rocket -progress
Discovering modules, targets and source code for game...

Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at UnrealBuildTool.FileItem..ctor(String FileAbsolutePath)
   at UnrealBuildTool.DependencyCache.Create(String CachePath)
   at UnrealBuildTool.UnrealBuildTool.RunUBT(String[] Arguments)
   at UnrealBuildTool.ProjectFileGenerator.GenerateIntelliSenseData(String[] Arguments, List`1 TargetFiles)
   at UnrealBuildTool.ProjectFileGenerator.GenerateProjectFiles(String[] Arguments, Boolean& bSuccess)
   at UnrealBuildTool.UnrealBuildTool.GenerateProjectFiles(ProjectFileGenerator Generator, String[] Arguments)
   at UnrealBuildTool.UnrealBuildTool.Main(String[] Arguments)

I was wondering whether anyone had some knowledge which may help to absolve me of this error.

Thank you for your time.

Hi ,

I tried to reproduce this issue, but have been unable to do so. I tried creating a new code project using the first person template with no starter content in both the binary 4.6.1 and 4.7 Preview 5, and in both cases I was able to create the project and build it in Visual Studio without any problems. Do you possibly have any more details about what options you are selecting when creating the projects where you are seeing this issue? Are you seeing the error message you provided in Visual Studio?

Hi,

I have same problem for 4.6 and 4.7

Hi and dreamhole,

Could you try running the Launcher as Admin and see if that helps with this issue?

Hello,

I reinstalled Windows and it fixed the issue. I believe it may have been caused by forcing a shutdown while Unreal Engine 4.7 was running.

Cheers,