You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Debug mode might be avoiding the Safari limit by doing less inlining (so stack frames are smaller), but I'm not sure.
To work around this browser issue, you can try optimizing the relevant file with something other than -O3 (like -O2, 1, s, z, etc.). Marking functions as noinline can sometimes help too.
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:
And got 6900 - which is the same number as the dektop browser but causes an error only on mobile
The text was updated successfully, but these errors were encountered: