emscripten-core / emscripten-core/emscripten
Uncaught RangeError: Maximum call stack size exceeded ios 13.3.1
- Dominant language
- C++
- Stars
- 27.6k
- Forks
- 3.6k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 105
Description
In release this causes an error in the console `Uncaught RangeError: Maximum call stack size exceeded`, but in debug it works. (older versions of ios don't have this)
O3 used
add_link_options(--bind -sWASM -sNO_EXIT_RUNTIME)
add_link_options(--no-entry)
add_link_options(--closure=1)
add_link_options(-sMODULARIZE)
add_link_options(-sENVIRONMENT=web,worker)
add_link_options(-sNO_FILESYSTEM)
add_link_options(-sNO_USE_SDL -sNO_USE_SDL_MIXER)
add_link_options(-sALLOW_MEMORY_GROWTH=1)
add_link_options(-sMINIMAL_RUNTIME_STREAMING_WASM_INSTANTIATION=1)
add_link_options(-sDYNAMIC_EXECUTION=1)
add_link_options(-sNO_HTML5_SUPPORT_DEFERRING_USER_SENSITIVE_REQUESTS)
add_link_options(-sNO_ABORT_ON_WASM_EXCEPTIONS)
add_link_options(-sEXPORTED_FUNCTIONS=_malloc,_free)
add_link_options(-sMIN_SAFARI_VERSION=120000)
add_link_options(-sSTACK_SIZE=64mb)
add_link_options(-sINCOMING_MODULE_JS_API=['locateFile','mainScriptUrlOrBlob','printErr'])
add_link_options(-sNO_ERROR_ON_UNDEFINED_SYMBOLS)
add_compile_options(-sSHARED_MEMORY=0)
add_link_options(-sSHARED_MEMORY=0)
add_link_options(-flto)
I checked stack size of safari 13.3.1:
```
let i = 0;
(function inc() {
if(i % 100 == 0) { console.log(i); }
i++;
inc();
})();
```
And got 6900 - which is the same number as the dektop browser but causes an error only on mobile
Contributor guide
Assessment
This issue has not been assessed yet.