Skip to content

Safari WASM Range Error #299

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jekelija opened this issue Oct 14, 2019 · 7 comments
Open

Safari WASM Range Error #299

jekelija opened this issue Oct 14, 2019 · 7 comments

Comments

@jekelija
Copy link

Using worker.sql-wasm.js
Version 1.0.0
Error: Unhandled Promise Rejection: RangeError: Maximum call stack size exceeded. (from inside worker.sql-wasm.js)

The same DB file works fine on Chrome and Firefox, and worked before switching to wasm.
Safari Version 13.0.2 (14608.2.40.1.2)

Any ideas?

@litonico
Copy link

litonico commented Oct 19, 2019

I'm not the maintainer, but I've been dealing with a similar issue! This is may be from a bug in webkit (https://bugs.webkit.org/show_bug.cgi?id=200807). Versions of Safari from 13.0 through 13.1.1 have a variety of problems with large wasm files (though I've never seen "call stack size exceeded", that would track with the general pattern of OOMs); it was fixed in webkit 608.3, which I think ships in the most recent Safari. Try e.g. the Safari that runs on iOS 13.1.2, and see if that works!

@jekelija
Copy link
Author

Unfortunately it still seems to be broken in the latest beta version of desktop safari (13.0.3), although i agree it sounds like the same issue

@zirill
Copy link

zirill commented Oct 21, 2019

Safari works well with asm file, speed is not worse.

@jekelija
Copy link
Author

file size is significantly larger for asm file though

@zirill
Copy link

zirill commented Oct 21, 2019

nginx gzip asm 3mb to 700kb

@LeeRob97
Copy link

LeeRob97 commented Nov 1, 2019

I am getting this error as well with all devices using latest safari (Mac OS | iPad OS | iOS) I have discovered if you slow down how fast each operation is occuring on the database, I do not get this error.

@fritzbauer
Copy link

fritzbauer commented Nov 8, 2019

Same issue for me with OS X and iOS and iPad OS using the sql-wasm.js with sql-wasm.wasm while it is working with sql-asm.js. Interestingly I was not able to replicate it with iOS 13 on browserstack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants