sdk icon indicating copy to clipboard operation
sdk copied to clipboard

[Bug] iOS Safari (and other iOS browsers) fail with `Unhandled Promise Rejection: RangeError: Out of Memory`

Open onetrickwolf opened this issue 1 year ago • 1 comments

🐛 Bug Report

Loading https://aleo.tools will hang on iOS browsers.

Thought this was due to loading issues but after they were addressed in this PR the problem persists. This prompted me to check the console for Safari iOS on an iPad where I saw the out of memory error.

Similar issue was seen on FFMPEG wasm: https://github.com/ffmpegwasm/ffmpeg.wasm/issues/299

Possibly related to these Safari bug reports:

  • https://bugs.webkit.org/show_bug.cgi?id=255103
  • https://bugs.webkit.org/show_bug.cgi?id=250569

Steps to Reproduce

Try loading https://aleo.tools on any iOS browser.

Stack trace & error message

Unhandled Promise Rejection: RangeError: Out of Memory

Your Environment

iPad iOS Safari and Chrome

onetrickwolf avatar Aug 02 '23 18:08 onetrickwolf

Tried lowering the max memory of the wasm build to 500 MB and also reduced the worker thread pool to 2 but still saw the error. Will need to investigate deeper.

onetrickwolf avatar Aug 02 '23 18:08 onetrickwolf