Black screen in HTML build (SOLVED)

I built my project using project>Build HTML5 and got a black window only. when opened the console, the following error was shown a couple of times.

dmloader.js:303 Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value 268435456, (2) compile with -s ALLOW_MEMORY_GROWTH=1 which adjusts the size at runtime but prevents some optimizations, (3) set Module.TOTAL_MEMORY to a higher value before the program runs, or if you want malloc to return NULL (0) instead of this abort, compile with -s ABORTING_MALLOC=0

The error should be about a memory limitation, but is there any solution for this error?

You can adjust the heap size: https://www.defold.com/manuals/html5/#_customizing_heap_size

3 Likes

Thanx for the help @britzl :smile:

1 Like