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"

error running html5 project.

after packaging the project into HTML5 and run it i end up with this result

alt text

I tried reducing the project size as possible, but no change. the weird thing tho, I had an older project that i was able to run in html5 the size was much larger than my latest project.

any help, please.

Product Version: UE 4.14
Tags:
capture.png (61.6 kB)
more ▼

asked Apr 07 '17 at 03:40 AM in Packaging & Deployment

avatar image

Yahyag1409
21 1 2

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

1 answer: sort voted first

When you get an error like that, it means that the heap size for the project was too small and the page ran out of memory. Try adjusting the heap size in the project packaging settings, or probably a bit faster, edit the generated .html file and find the place where the line TOTAL_MEMORY is set. It looks like you had 1024MB of heap size set, which was not enough. Try using a value of 1536MB, or at most 2032MB (theoretical maximum).

There is a big change going from UE 4.15 to UE 4.16 regarding memory usage, which landed to GitHub master branch 4 days ago (https://github.com/EpicGames/UnrealEngine/commit/ae727f8dabbec201963ce68d12aed0a7da6fab91). In UE 4.15, game asset files would be counted towards this TOTAL_MEMORY heap size, i.e. all assets would be stored inside the game heap. If the game has hundreds of megs of assets, that would cause a lot of memory pressure to the heap. In UE 4.16, the game assets will no longer be part of the heap, but they will live in their own memory structure. This can reduce the size of the needed heap size by quite a bit.

If you set TOTAL_MEMORY to 2032MB and the project runs fine with it (a 64-bit web browser is definitely required, 32-bit browsers will not be able to do that big allocations), you can open the web browser console and type in

 HEAP32[DYNAMICTOP_PTR>>2]

at page run time to query how much of the heap memory is currently being used. This gives an idea of how large heap size your project needs. After moving from UE 4.15 to UE 4.16, you should see the above value become much smaller, since asset files no longer contribute to this size.

more ▼

answered Apr 10 '17 at 12:58 PM

avatar image

juj
1.2k 15 4 17

avatar image Yahyag1409 Apr 10 '17 at 03:01 PM

I did increase the heap size but still getting the same result, I will probably wait till I can get the 4.16 to see if that changes anything. when I searched for the TOTAL_MEMORY I found

TOTAL_MEMORY:TOTAL_GAME_MEMORY,

it was the only result. Thanks

(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