x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

[Closed] 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

Product Version: UE 4.8
Tags:
more ▼

asked Aug 22 '15 at 06:46 PM in Packaging & Deployment

avatar image

Goerge Carlin
91 4 9 12

avatar image Moss Aug 22 '15 at 06:46 PM

Is that happening when running your game? At launch?

avatar image Goerge Carlin Aug 23 '15 at 03:17 AM

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.<--------

avatar image Moss Aug 23 '15 at 04:33 PM

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.

avatar image Goerge Carlin Aug 24 '15 at 04:31 AM

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

avatar image Moss Aug 24 '15 at 06:48 AM

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

avatar image Goerge Carlin Aug 25 '15 at 04:39 AM

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.

avatar image Goerge Carlin Aug 25 '15 at 05:17 AM

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?)

avatar image Moss Aug 25 '15 at 02:10 PM

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.

avatar image Moss Aug 25 '15 at 02:11 PM

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

avatar image Goerge Carlin Aug 27 '15 at 04:10 AM

first error console msgs

u4.jpg (112.2 kB)
u5.jpg (24.1 kB)
avatar image Goerge Carlin Aug 27 '15 at 04:01 AM

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.

avatar image Moss Aug 27 '15 at 06:33 AM

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

avatar image Goerge Carlin Aug 29 '15 at 02:30 PM

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.

avatar image Goerge Carlin Aug 29 '15 at 03:09 PM

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....

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

The question has been closed Mar 24 '16 at 08:38 PM by Tim Hobson for the following reason:

Issue is now outdated. If you are still experiencing this issue, please make a new post for assistance. Thanks!


0 answers: sort voted first

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question