Have to regenerate intermediate after every failed compile

I’m having an odd problem, and I’m not sure how to get to the bottom of it.
I have a project I made in UE4.15.
It’s a pretty small project consisting of just a few scene components and an actor, but every time I try to compile it and the compile fails, I get the waitmutex 5 error.
If I fix the compiler error, I will continue to get the waitmutex 5 error.
The solution to this is to destroy the intermediate and regenerate the solution and compile again with success.

Has anybody encountered anything like this before?
What troubleshooting steps should I take?

Here is an example of compile output for a failed compile:

1>------ Build started: Project: UE4, Configuration: BuiltWithUnrealBuildTool Win32 ------
2>------ Build started: Project: UserAnalysisToolkit, Configuration: Development_Editor x64 ------
2>  Compiling game modules for hot reload
2>  Performing 3 actions (4 in parallel)
2>  UserViewAnalyser.cpp
2>  [2/3] Link UE4Editor-UserAnalysisToolkit-8307.dll
2>  [3/3] Link UE4Editor-UserAnalysisToolkit-2424.lib
2>     Creating library C:\Users\calem\Documents\Unreal Projects\UserAnalysisToolkit\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-UserAnalysisToolkit-8307.lib and object C:\Users\calem\Documents\Unreal Projects\UserAnalysisToolkit\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-UserAnalysisToolkit-8307.exp
2>     Creating library C:\Users\calem\Documents\Unreal Projects\UserAnalysisToolkit\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-UserAnalysisToolkit-8307.suppressed.lib and object C:\Users\calem\Documents\Unreal Projects\UserAnalysisToolkit\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-UserAnalysisToolkit-8307.suppressed.exp
2>ERROR : UBT error : Failed to produce item: C:\Users\calem\Documents\Unreal Projects\UserAnalysisToolkit\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-UserAnalysisToolkit-2424.lib
2>  Total build time: 4.88 seconds (Local executor: 0.00 seconds)
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(41,5): error MSB3075: The command ""C:\Program Files\Epic Games\UE_4.15\Engine\Build\BatchFiles\Build.bat" UserAnalysisToolkitEditor Win64 Development "C:\Users\calem\Documents\Unreal Projects\UserAnalysisToolkit\UserAnalysisToolkit.uproject" -waitmutex" exited with code 5. Please verify that you have sufficient rights to run this command.
========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Tagging. We’ve had lots of problems with hot-reload in 4.15. It worked fine in 4.14, but something is locking the game DLLS in 4.15.

We’ve switched to just exiting unreal, compiling, and rerunning, but this is a considerable nuisance over how nice it worked in 4.14.

I ended up just switching back to UE4.14.
Fortunately I haven’t integrated any 4.15 features into my projects.
Giving full permissions to the game DLLs from command line doesn’t even seem to fix the problem, so I’m a little lost! :smiley:

I’m glad someone else is having the problem.
Sorry for your inconvenience, but maybe it’ll get fixed soon!

You didn’t have to switch to 4.14. Hot reloading works it’s just that UBT fools itself by loosing tack of build numbers. You can simply ignore that specific UBT error until it’s fixed.