When I try to launch firefox version of my project in the Editor it fails building.
LogPlayLevel: BuildCommand.Execute: ERROR: BUILD FAILED
LogPlayLevel: Program.Main: ERROR: AutomationTool terminated with exception:
LogPlayLevel: Program.Main: ERROR: Exception in AutomationScripts.Automation: Client exited with error code: 1
Any ideas? The project builds perfectly into Win64. Also if I tried to package the game to HTML5, that process doesn’t fail, but the generated file runs into an “Assertion failed: Cannot call unknown function on_fatal (perhaps LLVM optimizations or closure removed it?)”
Are you using the GitHub version of UE4? If so, it’s possible that a step could have been missed, since the engine needs to be built for HTML5. Please review the following link, to insure that you’ve completed all of the requirements for building for HTML5 on FireFox.
Please let me know if you have any further questions, thank you!
I am having the hardest time trying to follow these instructions. Do I or do I not need the emscripten/fastcomp repositories or can I just get it from the SDK? Building fastcomp is proving to be incredibly challenging as the listed instructions are riddled with bugs on building for Windows.
What I have so far:
I aborted my attempt at building emscripten from source.
Using emscripten as installed per SDK
emscripten development environment verified as per their test scripts
In Unreal’s HTML5Engine.ini
[HTML5SDKPaths]
Emscripten=“C:/Program Files/Emscripten/emscripten/1.29.0”
Python=“C:/Program Files/Emscripten/python/2.7.5.3_64bit/python.exe”
Ran “Setup.bat -include=HTML5”
Ran “GenerateProjectFiles.bat”
Set solution configuration to Development on HTML5 platform
Tried to build, but getting errors. (Right click > View Image to see screenshot bigger)
[The VS Output Log][2]
In these it is distinctly complaining about this:
`In file included from C:/Program Files (x86)/UnrealEngine/Engine/Intermediate/Build/HTML5/UE4Game/Development/Engine/Module.Engine.2_of_30.cpp:12:
1> C:/Program Files (x86)/UnrealEngine/Engine/Source/Runtime/Engine/Private/BlueprintGeneratedClass.cpp:285:35: error: no member named ‘PreloadAllTempates’ in ‘UInheritableComponentHandler’
You can avoid having to build fastcomp, etc yourself if it’s difficult on Windows. On windows, I find that “emsdk update” “emsdk install [SDK VERSION]” & “emsdk activate [SDK VERSION]” is enough to build HTML5 on windows. I think SDK VERSION would be sdk-1.29.0-64bit for you.
As for the error, I’m not sure what’s happened with that commit (mistake, maybe? CIS has only just picked it up) but best bet for now is to checkout the commit before it (so c9c2789) and run from there until a fix is checked in.
I removed the commits and was able to build the engine for HTML5. When I go to the Editor, I was able to successfully launch HTML5. My game worked perfectly in Firefox.
However I ran into issues with the packaged version. When I switched to Shipping build configuration and trying to package the game to HTML5 it packages without a hitch, but when trying to run the generated .html I run into errors that did not exist when just launching from Editor.
[Runtime Error][1]
In the .html’s output box area it says this:
Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value 536870912, (2) compile with ALLOW_MEMORY_GROWTH which adjusts the size at runtime but prevents some optimizations, or (3) set Module.TOTAL_MEMORY before the program runs.
Ankitkk was suggesting that it’s best to use 64bit FireFox because it doesn’t have the same memory issue that 32bit browsers seem to have. Basically, if your game runs out of memory, it’ll crash and this could be the issue you’re seeing currently.
However, I will state that it does say in the Unreal Engine documentation that a 64bit browser is required.
If you have any further questions, feel free to respond to this thread and we will assist you further.
LogStats:Warning: MetaData mismatch. Did you assign a stat to two groups? New //STATGROUP_Threads//FLauncherTask///Thread_1b4c_0///####STATCAT_Advanced#### old //STATGROUP_Threads//FLauncherTask///Thread_a9c4_0///####STATCAT_Advanced####
Please create your own AnswerHub thread and provide as much information you can about the issue that you’re running in to. We will be more easily able to assist you there.