HTML5 uncaught exception

Error: uncaught exception: abort() at jsStackTrace@http://127.0.0.1:53501/UE4Game.js:1:18192
stackTrace@http://127.0.0.1:53501/UE4Game.js:1:18375
abort@http://127.0.0.1:53501/UE4Game.js:242:81207
assert@http://127.0.0.1:53501/UE4Game.js:1:8281
@http://127.0.0.1:53501/UE4Game.js:1:19945

If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.

I’ve set Heap Size to 4096, and correct the Emscripten address in config file and in engine.
but I still have the error.

Here is the full log:

http://m.uploadedit.com/ba3h/1440860477462.txt

Is that happening when running your game? At launch?

yeah.
html gives me this error:
------->Error: uncaught exception: abort() at jsStackTrace@http://127.0.0.1:53501/UE4Game.js:1:18192 stackTrace@http://127.0.0.1:53501/UE4Game.js:1:18375 abort@http://127.0.0.1:53501/UE4Game.js:242:81207 assert@http://127.0.0.1:53501/UE4Game.js:1:8281 @http://127.0.0.1:53501/UE4Game.js:1:19945

If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.<--------

It seams that your are calling into js somewhere? If yes if there is any error/exception in js that you call from UE4 it will result in a crash.

If you want more info you can build it from source and adding ‘-s ASSERTIONS=1’ where the HTML5 binary is build. Go to HTML5ToolChain.cs and add the line in GetSharedArguments_Global.

I have not done anything to js files, and I just open my project and build it with html.

Have you tried to build it with the the ASSERTIONS flag?

no, as far as I know, I should have the source code to do so. and I don’t have it. by the way same engine works good on empty projects or first person template, but when it comes to a heavy project it starts giving me errors. For source code downloading, I’m waiting for 4.9 to come.

by the way I have these errors at the bottom of html page:------>
Assertion failed: Typed arrays 2 must be run on a little-endian system
Assertion failed: Cannot call unknown function on_fatal (perhaps LLVM optimizations or closure removed it?)

Are you sure a simple project will compile? I see from the log that you have tons of cooking errors such as ‘empty engine version’ etc.

on_fatal is a js function that gets called in case of a fatal error.

Could you post the log of the actual browser? The one you posted is the log of your building process.

maybe that’s because we transfer this project from 4.7 to 4.8.
but whenever i create a new first-person template, it works on html5 very well.

Do you have a on_fatal function in your js? Do all your blueprints compile?

I have the checked all my bluprints and widgets, there were two compiled bluprints, I have remove them, from the game. but I have received the exact same error. and I have create such function my self but there are several _on_fatal words in UE4Game.js and UE4Game-HTML5-Shipping.js files.

the original project was made in 4.7, and it had never give us an HTML output. Do you think it maybe because of the difference between versions!? I used to skip conversion before until the day that I have finally convert the whole project to 4.8.2(the version that we use nowadays). but nothing has changed!!! finally I have remove all the widgets and bluprints but nothing have changed either…