Project not compiling

Hello,

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%.

I am really clueless as I didn’t touch anything else than my own classes!

Thanks for your help!

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…

Have you tried to clean and build your project?

Check if there is any instance of UnrealBuildTool already running

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.

Yes Build and Header tool are running.

They are actually still running even though I closed VS. I already restarted my with no success.

I mean when you are not building, they might be crashed in the background and now failing.

Hey -

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.

Cheers

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%.

In case that helps I just tested and I can compile old 4.7 projects, so it has to do something with my 4.8 engine.

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.

I verified the binary version but still no success…

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?

No I can neither compile with Develoment Editor configuration. Hot Reload will not leave the “compiling…” state.

In case version 4.9 doesn’t get released soon I still need help with this :slight_smile:

Hey -

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.

I am re-installing the engine right now. Here is my DxDiag:link text