My project suddenly refuses to compile after I made some slight changes to a couple of classes. After starting the build it will get stuck at “Build started” or “Parsing headers”. Even after 30min of waiting no progress, while the compile usually takes about 2min at most! Looking at the performance statistics it seems like VS isn’t really doing anything with the CPU usage being < 20% and GPU usage < 5%.
Building has the same result as recompiling. I already cleaned the project but it didn’t fix the problem. I just wanted to clean it again but now the clean process will also not progress after the first step…
Also when I cancel the build process, I get the following error message:
MSBUILD : error MSB4166: Child node "2" exited prematurely. Shutting down. Diagnostic information may be found in files in the temporary files directory named MSBuild_*.failure.txt.
What code was added before this started to occur? If you create a new code project and try to compile does it hang at the same places? Let me know if there are any steps I can follow to try to reproduce the behavior on my end.
I just tried to compile a different project and the error still occurs! So does it have anything to do with my VS or Unreal Build setup (wich I didn’t touch) ?
Was it a brand new project or another project you were working on? Also, let me know if you have the same issue when building a non-UE project. Looking at the screenshot you may also want to try building Development Editor rather than DebugGame/DebugGame Editor.
I can compile non-UE projects without problems. Also I tried to create a new code project, the result is that it is stuck on the “Creating project…” popup at 0%.
If you are using the binary version of the 4.8 engine from the launcher I would suggest trying to verify the engine version by clicking on the drop down arrow next to the engine version in the Library tab of the Launcher. If you are using a source built version of the engine you may want to try rebuilding the engine or re-downloading the source code and rebuilding from scratch.
Let me know if the project compiles under a different solution configuration. If you switch from DebugGame to Development Editor are you able to compile then? Additionally, are you able to compile code changes by clicking the Compile button inside the editor?
If this is only happening for projects using the 4.8 engine version then you may want to remove/re-install that version. Also, if you have more than one version of VS on your computer (such as 2010 or 2012) then uninstalling them may help. Searching the error code you mentioned (MSB4166), it appears the problem could be a lack of memory. If you post your DXDiag we can see if this is a likely cause.