UnrealBuildTool Crashes Computer When Building HTML5

So I recompiled the source code with modifications made to enable HTML5 project building, cooking, and packaging. During the process the UnrealBuildTool starts the Emscripten process which starts the conversion of the project to run in HTML5. During this time it creates dozens of Python and Node processes each using a decent portion of my systems resources. When I set these processes to Low priority and set their affinity to only use 1 of my 8 cores, they seem to ignore those settings and still continue to run at a process level of High and use all 8 of my cores. They each also using anywhere from 500mb to 1GB of RAM. Because of this the host computer is forced to instantly shutdown. I’m not sure what more I can do to try and prevent this, if anyone has any ideas/suggestions as to what do to to fix this I would love to hear them. On a 32 core machine, this issue is also present, but the machine does not shutdown as it continues to have a few cores not being maxed out to 100% usage.

I realize the HTML5 building options were not enabled by default for a reason, as it is not yet finished but it would be nice if there was a way to build HTML5 projects without the need of a 32 core system. If anymore information is needed I’ll be happy to provide it, I don’t think my system specs would be needed for a problem like this but I’ll post them anyways.

OS: Windows 7 64-bit SP1
CPU: AMF FX 8350 Black Edition (clocked currently at 4Ghz)
RAM: 16GB 2133 Mhz RAM
CPU: AMD HD 7770 Ghz Edition
Mobo: Asus M5A99FX Pro R2.0

Hi Xennma,

This seems like a similar instance hereanswers.unrealengine.com/questions/12644/html5-build-is-broken.html. Could this be the issue?

Thank you!

Hey ,

My issue happens before I even get that far. My issue is the UnrealBuildTool uses all system resources, regardless of what they are currently being used for. Since posting my issue, I’ve come up with a work around, but it’s high inefficient and makes building take much longer than it should. Right now if I were to try and build + compile + package for HTML5, my computer would crash due to the UnrealBuildTool sub-processes using 100% resources of each of my cores, leaving nothing left for my system or other processes. This occurs when it’s just finished the LLVM and begins to print out a bunch of blank lines. During this time 8 node processes and 8 python processes are running and each is using anywhere from 200MB of RAM all the way up to 3.5GB of RAM, and most of the processes use only 5-8% CPU while a few will use 75-100% CPU depending on what it’s doing. Because of this my CPU remains at a constant 100% CPU usage, all of it going to the Node and Python processes.

You can reduce the number of parallel processes. Look in HTML5TooChain.cs, for the EMCC_CORES setting. It will be 8, try reducing that number, and see how it goes for you.