sdk
sdk copied to clipboard
[Bug] iOS Safari (and other iOS browsers) fail with `Unhandled Promise Rejection: RangeError: Out of Memory`
🐛 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
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.