I was attempting to make a web build of my game to test controls, mainly multiple input in HTML 5. However, every time I have build the project to HTML 5 and attempt to play the game, it will get to the first loading screen and it will freeze. This error message appears in the console: Maximum call stack size exceeded, RangeError: Maximum call stack size exceeded.
Here’s a screenshot of what I get:
Here’s a text version of all of it:
exception thrown: RangeError: Maximum call stack size exceeded,RangeError: Maximum call stack size exceeded
at <anonymous>:wasm-function[349]:0x4299
at <anonymous>:wasm-function[1401]:0x652cc
at <anonymous>:wasm-function[517]:0xf037
at <anonymous>:wasm-function[1151]:0x4abf7
at <anonymous>:wasm-function[1394]:0x6480c
at <anonymous>:wasm-function[1431]:0x68c87
at <anonymous>:wasm-function[757]:0x2185c
at <anonymous>:wasm-function[394]:0x7ab7
at <anonymous>:wasm-function[413]:0x86fc
at <anonymous>:wasm-function[702]:0x1ccce
My game builds fine within the Defold editor and I’ve not encountered this sort of error with other projects. My end goal is to have this project on HTML 5 and mobile, so I really need to get it to work.
The specific behavior I am attempting to do is asyn load a level that is rather large, I don’t know of any way to break it up smaller without harming gameplay.
I’ve looked through the project settings but haven’t found anything that looks like it may address this.
What can I do to my project to fix this error?