Html5 development build failed

i think this one is the main error.

(+ i have tried with “Result += " -s TOTAL_MEMORY=1610612736”;" in the HTML5ToolChain.cs file as described in
Sharing and Releasing Projects for Unreal Engine | Unreal Engine 5.3 Documentation ).

here is the error:

Error 32 error : Failed to start local
process for action:
Z:\Emscripten\python\2.7.5.3_64bit\python.exe
“C:\Program
Files\Emscripten\emscripten\1.22.0\emcc”
-fno-exceptions -Wno-unused-value -Wno-switch -Wno-tautological-constant-out-of-range-compare
-Wno-tautological-compare -Wno-logical-op-parentheses -Wno-array-bounds -Wno-invalid-offsetof -s TOTAL_MEMORY=1610612736 -s
DISABLE_EXCEPTION_CATCHING=1 -s
WARN_ON_UNDEFINED_SYMBOLS=1 -s
FULL_ES2=1 -s
EXPORTED_FUNCTIONS="['main’,
'resize_game’]" -s NO_EXIT_RUNTIME=1
–memory-init-file 1 -Wno-warn-absolute-paths -s GL_ASSERTIONS=1 -O2 -s ASM_JS=1 -s
OUTLINING_LIMIT=110000
-I"z:\UnrealEngine_4.5Build\Engine\Source"
-I"z:\UnrealEngine_4.5Build\Engine\Plugins\ScriptPlugin\Source"
-I"…/Plugins/ScriptPlugin/Source/ScriptPlugin/Classes"
-I"…/…/…/UnrealProjects/ahsanGameArchive/Intermediate/Build/HTML5/ahsanGameArchive/Inc/ScriptPlugin"
-I"…/Plugins/ScriptPlugin/Source/ScriptPlugin/Public"
-I"Runtime/Core/Public" -I"Runtime/Core/Public/Internationalization"
-I"Runtime/Core/Public/Async" -I"Runtime/Core/Public/Containers" -I"Runtime/Core/Public/Delegates" -I"Runtime/Core/Public/GenericPlatform"
-I"Runtime/Core/Public/HAL" -I"Runtime/Core/Public/Logging" -I"Runtime/Core/Public/Math" -I"Runtime/Core/Public/Misc" -I"Runtime/Core/Public/Modules" -I"Runtime/Core/Public/Modules/Boilerplate"
-I"Runtime/Core/Public/ProfilingDebugging"
-I"Runtime/Core/Public/Serialization" -I"Runtime/Core/Public/Serialization/Json"
-I"Runtime/Core/Public/Serialization/Csv"
-I"Runtime/Core/Public/Stats" -I"Runtime/Core/Public/Templates" -I"Runtime/Core/Public/UObject" -I"Runtime/Core/Public/HTML5" -I"ThirdParty/zlib/zlib-1.2.5/Inc" -I"ThirdParty/zlib" -I"Runtime/Core" -I"Runtime/CoreUObject/Classes" -I"…/…/…/UnrealProjects/ahsanGameArchive/Intermediate/Build/HTML5/ahsanGameArchive/Inc/CoreUObject"
-I"Runtime/CoreUObject/Public" -I"Runtime/CoreUObject/Public/Blueprint"
-I"Runtime/CoreUObject/Public/Misc" -I"Runtime/CoreUObject/Public/Serialization"
-I"Runtime/CoreUObject/Public/Templates"
-I"Runtime/CoreUObject/Public/UObject" -I"Runtime/CoreUObject" -I"Runtime/Engine/Classes" -I"…/…/…/UnrealProjects/ahsanGameArchive/Intermediate/Build/HTML5/ahsanGameArchive/Inc/Engine"
-I"Runtime/Engine/Public" -I"Runtime/Engine/Public/AI" -I"Runtime/Engine/Public/EdGraph" -I"Runtime/Engine/Public/Features" -I"Runtime/Engine/Public/Landscape" -I"Runtime/Engine/Public/Net" -I"Runtime/Engine/Public/Slate" -I"Runtime/Engine/Public/Tests" -I"Runtime/Engine/Public/AI/Navigation"
-I"…/…/…/UnrealProjects/ahsanGameArchive/Intermediate/Build/HTML5/ahsanGameArchive/Inc/Slate"
-I"Runtime/Slate/Public" -I"Runtime/Slate/Public/Framework" -I"Runtime/Slate/Public/Widgets" -I"Runtime/Slate/Public/Framework/Application"
-I"Runtime/Slate/Public/Framework/Commands"
-I"Runtime/Slate/Public/Framework/Docking"
-I"Runtime/Slate/Public/Framework/Layout"
-I"Runtime/Slate/Public/Framework/MultiBox"
-I"Runtime/Slate/Public/Framework/Notifications"
-I"Runtime/Slate/Public/Framework/Styling"
-I"Runtime/Slate/Public/Framework/Text"
-I"Runtime/Slate/Public/Framework/Views"
-I"Runtime/Slate/Public/Framework/Text/Android"
-I"Runtime/Slate/Public/Framework/Text/IOS"
-I"Runtime/Slate/Public/Widgets/Colors"
-I"Runtime/Slate/Public/Widgets/Docking"
-I"Runtime/Slate/Public/Widgets/Images"
-I"Runtime/Slate/Public/Widgets/Input" -I"Runtime/Slate/Public/Widgets/Layout"
-I"Runtime/Slate/Public/Widgets/Navigation"
-I"Runtime/Slate/Public/Widgets/Notifications"
-I"Runtime/Slate/Public/Widgets/Text" -I"Runtime/Slate/Public/Widgets/Views" -I"Runtime/InputCore/Classes" -I"…/…/…/UnrealProjects/ahsanGameArchive/Intermediate/Build/HTML5/ahsanGameArchive/Inc/InputCore"
-I"Runtime/InputCore/Public" -I"Runtime/InputCore" -I"…/…/…/UnrealProjects/ahsanGameArchive/Intermediate/Build/HTML5/ahsanGameArchive/Inc/SlateCore"
-I"Runtime/SlateCore/Public" -I"Runtime/SlateCore/Public/Animation" -I"Runtime/SlateCore/Public/Application"
-I"Runtime/SlateCore/Public/Brushes" -I"Runtime/SlateCore/Public/Fonts" -I"Runtime/SlateCore/Public/Input" -I"Runtime/SlateCore/Public/Layout" -I"Runtime/SlateCore/Public/Logging" -I"Runtime/SlateCore/Public/Rendering" -I"Runtime/SlateCore/Public/Sound" -I"Runtime/SlateCore/Public/Styling" -I"Runtime/SlateCore/Public/Textures" -I"Runtime/SlateCore/Public/Types" -I"Runtime/SlateCore/Public/Widgets" -I"Runtime/SlateCore" -I"Runtime/Slate" -I"Runtime/Messaging/Public" -I"Runtime/Messaging/Public/Common" -I"Runtime/Messaging/Public/Interfaces"
-I"Runtime/Messaging" -I"Runtime/RenderCore/Public" -I"Runtime/RenderCore" -I"Runtime/RHI/Public" -I"Runtime/RHI" -I"Runtime/ShaderCore/Public" -I"Runtime/ShaderCore" -I"Runtime/AssetRegistry/Public" -I"Runtime/AssetRegistry" -I"Runtime/EngineMessages/Classes" -I"…/…/…/UnrealProjects/ahsanGameArchive/Intermediate/Build/HTML5/ahsanGameArchive/Inc/EngineMessages"
-I"Runtime/EngineMessages/Public" -I"Runtime/EngineMessages" -I"Runtime/EngineSettings/Classes" -I"…/…/…/UnrealProjects/ahsanGameArchive/Intermediate/Build/HTML5/ahsanGameArchive/Inc/EngineSettings"
-I"Runtime/EngineSettings/Public" -I"Runtime/EngineSettings" -I"Developer/SynthBenchmark/Public" -I"Runtime/Renderer/Public" -I"Runtime/Renderer" -I"Developer/SynthBenchmark" -I"Runtime/AIModule/Public" -I"Runtime/AIModule/Classes" -I"…/…/…/UnrealProjects/ahsanGameArchive/Intermediate/Build/HTML5/ahsanGameArchive/Inc/AIModule"
-I"Runtime/AIModule" -I"Runtime/HTML5/HTML5JS/Public" -I"Runtime/HTML5/HTML5JS" -I"ThirdParty/Ogg" -I"ThirdParty/Vorbis/libvorbis-1.3.2/include"
-I"ThirdParty/Vorbis" -I"Runtime/Engine" -I"…/Plugins/ScriptPlugin/Source/ScriptPlugin"
-I"ThirdParty/Ogg/libogg-1.2.2/include"
-DUE_GAME=1 -DIS_PROGRAM=0 -DUE_ROCKET=0 -DUNICODE -D_UNICODE -D__UNREAL
-DIS_MONOLITHIC=1 -DWITH_ENGINE=1 -DWITH_UNREAL_DEVELOPER_TOOLS=0 -DWITH_COREUOBJECT=1 -DUSE_STATS_WITHOUT_ENGINE=0 -DWITH_PLUGIN_SUPPORT=0 -DUSE_LOGGING_IN_SHIPPING=0 -DUE_BUILD_MINIMAL=1 -DWITH_EDITOR=0 -DWITH_EDITORONLY_DATA=0 -DWITH_SERVER_CODE=1 -DUBT_COMPILED_PLATFORM=HTML5 -DPLATFORM_HTML5=1 -DPLATFORM_HTML5_BROWSER=1 -DUNICODE -D_UNICODE -DWITH_AUTOMATION_WORKER=0 -DREQUIRES_ALIGNED_INT_ACCESS -DWITH_OGGVORBIS=1 -DUSE_SCENE_LOCK=0 -DNDEBUG=1 -DUE_BUILD_DEVELOPMENT=1 -DUE_PROJECT_NAME=ahsanGameArchive -DORIGINAL_FILE_NAME=“ahsanGameArchive-ScriptPlugin-Static.bc”
-DSCRIPTPLUGIN_API= -DUE_ENABLE_ICU=0 -DWITH_STEAMWORKS=0 -DWITH_DIRECTXMATH=0 -DCORE_API= -DCOREUOBJECT_API= -DWITH_PHYSX=1 -DWITH_APEX=0 -DWITH_BOX2D=0 -DWITH_RECAST=1 -DENGINE_API= -DWITH_FREETYPE=1 -DSLATE_API= -DINPUTCORE_API= -DWITH_FREETYPE=1 -DSLATECORE_API= -DMESSAGING_API= -DRENDERCORE_API= -DRHI_API= -DSHADERCORE_API= -DASSETREGISTRY_API= -DENGINEMESSAGES_API= -DENGINESETTINGS_API= -DSYNTHBENCHMARK_API= -DRENDERER_API= -DWITH_RECAST=1 -DAIMODULE_API= -DHTML5JS_API= -DWITH_OGGVORBIS=1 “z:\UnrealEngine_4.5Build\Engine\Plugins\ScriptPlugin\Source\ScriptPlugin\Private\ScriptPlugin.cpp”
-o “z:\UnrealEngine_4.5Build\Engine\Intermediate\Build\HTML5\ahsanGameArchive\Development\Plugins\Static\ScriptPlugin\ScriptPlugin.cpp.bc”
-std=c++11 Z:\UnrealProjects\ahsanGameArchive\Intermediate\ProjectFiles\UnrealBuildTool.BuildException ahsanGameArchive

any idea why it is failing?

Error 32 is a Sharing violation error. Do you possibly have any rouge or zombie HTML5 builds that are still running? Also, are the python path and output path (…/ScriptPluging.cpp.bc) valid?

dont know what means “rouge or zombie HTML5 builds” ?

i just have tried to build html5 from another pc using Emscripten 1.22.0.
this time it is showing new errors :

after commenting out those ADDKEYMAP statement i am again having new errors.
this time :

17> Performing 4 actions (6 in
parallel) 17> [2/4] python.exe
HTML5PlatformMisc.cpp 17> [3/4]
python.exe HTML5Window.cpp 17> [1/4]
python.exe SocketSubsystem.cpp 17>
z:/UnrealEngine_4.5Build/Engine/Source/Runtime/Core/Private/HTML5/HTML5Window.cpp:86:9:
error: unknown type name
‘SDL_ResizeEvent’ 17> static
SDL_ResizeEvent ResizeEvent; 17>
^ 17>
z:/UnrealEngine_4.5Build/Engine/Source/Runtime/Core/Private/HTML5/HTML5Window.cpp:89:21:
error: use of undeclared identifier
‘SDL_VIDEORESIZE’ 17>
ResizeEvent.type = SDL_VIDEORESIZE;
17> ^ 17>
z:/UnrealEngine_4.5Build/Engine/Source/Runtime/Core/Private/HTML5/HTML5Window.cpp:90:17:
error: use of undeclared identifier
‘SDL_Event’ 17>
SDL_PushEvent((SDL_Event*)&ResizeEvent);
17> ^ 17>
z:/UnrealEngine_4.5Build/Engine/Source/Runtime/Core/Private/HTML5/HTML5Window.cpp:90:27:
error: expected expression 17>
SDL_PushEvent((SDL_Event*)&ResizeEvent);
17>
^ 17> 4 errors generated. 17>EXEC :
error root: compiler frontend failed
to generate LLVM bitcode, halting

hmm, what unreal engine version are you using?

" Also, are the python path and output path (…/ScriptPluging.cpp.bc) valid?"

my python path : C:\Program Files\Emscripten\python\2.7.5.3_64bit

i have pythone runtime installed in different drive.but for the shake of Emscripten i kept Emscripten’s one.
dont know where to see output path.

Ignore that last comment. the second problem with the compile errors are an issue that was fixed for 4.6 I believe. To get around them you can try adding #include to the file thats causing the errors.

dont know where “SDL_ResizeEvent”, SDLK_BACKSPACE, SDLK_TAB,SDLK_RETURN and all other keys are defiend.
+visual studio search option also failed to find them.
can u plz point me to right #include statement.

include “SDL.h”

I used angle brackets in the last comment but that caused it to remove the SDL.h bit … :-/

yup. i did a comparison with 4.6 source and found that out.
but my bad luck again new error:

[3/3] python.exe ahsanGameArchive.js
16> 16> Unhandled Exception: 17>
17> Unhandled Exception:
System.Threading.AbandonedMutexException:
The wait completed due to an abandoned
mutex. 17> at
System.Threading.WaitHandle.InternalWaitOne(SafeHandle
waitableSafeHandle, Int64
millisecondsTimeout, Boolean
hasThreadAffinity, Boolean
exitContext) 17> at
UnrealBuildTool.UnrealBuildTool.Main(String
Arguments) in
z:\UnrealEngine_4.5Build\Engine\Source\Programs\UnrealBuildTool\System\UnrealBuildTool.cs:line
734 18>------ Build started: Project:
BlankProgram, Configuration:
HTML5_Development_Program Win32 ------
18> … 5> Unhandled Exception:
System.Threading.AbandonedMutexException:
The wait completed due to an abandoned
mutex. 5> at
System.Threading.WaitHandle.InternalWaitOne(SafeHandle
waitableSafeHandle, Int64
millisecondsTimeout, Boolean
hasThreadAffinity, Boolean
exitContext) 5> at
UnrealBuildTool.UnrealBuildTool.Main(String
Arguments) in
z:\UnrealEngine_4.5Build\Engine\Source\Programs\UnrealBuildTool\System\UnrealBuildTool.cs:line
734 19> 19> Unhandled Exception:
System.Threading.AbandonedMutexException:
The wait completed due to an abandoned
mutex. 19> at
System.Threading.WaitHandle.InternalWaitOne(SafeHandle
waitableSafeHandle, Int64
millisecondsTimeout, Boolean
hasThreadAffinity, Boolean
exitContext) 19> at
UnrealBuildTool.UnrealBuildTool.Main(String
Arguments) in
z:\UnrealEngine_4.5Build\Engine\Source\Programs\UnrealBuildTool\System\UnrealBuildTool.cs:line
734
========== Build: 10 succeeded, 9 failed, 16 up-to-date, 0 skipped

may be it have something to do with:

“Result += " -s TOTAL_MEMORY=1610612736”;"
in the HTML5ToolChain.cs file as described in https://docs.unrealengine.com/latest/INT/Platforms/HTML5/GettingStarted/index.html

That looks like you’ve got old UnrealBuildTool processes still running for whatever reason. Check with Task Manager and stop them if they exist. That or restart

u r right. each time i start build it starts six unrealbuildtool.exe.
but it finishes so much fast that i cant close them.
any other way to start only 1 nrealbuildtool.exe.

i moved whole projetc to another pc.
and tried again.but same result:

Performing 2 actions (1 in parallel)
[1/2] python.exe SocketSubsystem.cpp
[2/2] python.exe UE4Game.js
Unhandled Exception:

i am giving up. this is getting ugly.
i can try out with 4.6.
but do not want to waste valuable time for compiling whole engine for 5 hour and then again get those errors.

why not epic add html5 support in binary version !!!

Got this working wrote it up:

Forum Post