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"

HTML5 Mobile Browsers Out of Memory (UE 4.10.4)


I'm producing HTML5 output from UE 4.10.4 (has to be this version, as I've been unsuccessful in producing functional output in later versions – this appears to be due to emscripten issues). This works without issue when accessing the content (served from the web) via desktop browser. If, however, it's accessed from Chrome or Safari on iOS, i get "Error: Out of memory". alt text

If accessed from Chrome on Android, I get "Uncaught RangeError: Array buffer allocation failed". alt text

Heap size has been tried at 1024, 2048, & 4096, with the same results.

One thing to note is that this is NOT the "uncaught exception: out of memory" error described in some of the other threads: alt text

So, my question is was this a known issue with 4.10.4, and if so, were there any solutions or workarounds? Ultimately, I'd like to migrate the project up to 4.15+, but until I can find one that produces functional HTML5 output with my custom C++/emscripten/javascript communication, I'm stuck here.


Product Version: UE older version
more ▼

asked Apr 01 '17 at 07:43 PM in Packaging & Deployment

avatar image

21 3 4 7

avatar image nick.shin STAFF Apr 03 '17 at 04:48 PM

just wondering -- why not package for native iOS or android?

on a side note: i have done no testing for mobile browsers (since they are usually very behind to the desktop browsers.)

because the game engine runs natively on those mobile devices and most browser makers are only supporting bleeding edge features on desktop browsers (e.g. asm.js [back then] and wasm [now]) - there are no plans for bringing UE4 on HTML5 for mobile browsers...

(this may change in the future when wasm becomes supported on mobile browsers -- but as of right now, i haven't heard from apple, google or microsoft doing anything like this for mobile...)

avatar image dmultimediab Apr 12 '17 at 09:41 PM

The content has to be served and tracked via a learning management system, and therefore has to be HTML5 and accessed through a browser. For what it's worth, please consider this an emphatic vote for support of UE4 on HTML5 in mobile browsers.


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

1 answer: sort voted first

The out of memory error is actually coming from the heap allocation itself, so making the heap size larger makes it run even more out of memory and not the other way around. Try reducing the heap size to e.g. 256MB or 384MB for mobile. Also try out Firefox or Chrome browsers on mobile, those are the only browsers that at the moment ship WebAssembly support. UE 4.16 is planned to have WebAssembly as well. I believe current UE4 Github master branch has WebAssembly as well.

There is probably no way to get UE4 size codebases to work on current Safari on iOS with the current pre-WebAssembly asm.js, unless perhaps if running tiny projects, since the mobile Safari browser has not been optimized for asm.js at all. Once WebAssembly lands to Safari on iOS, success rates should be dramatically better. Current nightly WebKit builds on desktop already have WebAssembly support, so they are working on it, but unfortunately there is no release schedule yet. If you do want to try before that, check by using desktop Firefox and Chrome browsers to profile memory usage first, and see if you can squeeze the web page to under 300-400MB or so.

more ▼

answered Apr 10 '17 at 12:34 PM

avatar image

1.2k 15 4 17

avatar image Matthew J Apr 12 '17 at 07:32 PM

Hello dmultimediab,

Was juj's answer able to help you resolve this issue? If not, please let us know what you've tried. In the meantime, I'll be marking this issue as resolved for tracking purposes.

avatar image dmultimediab Apr 12 '17 at 09:36 PM

Unfortunately, no, juj's answer didn't solve the issue. With the heap set to 256MB, the error occurs exactly the same as before, in Chrome, Safari and Firefox.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

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

Answers to this question