sql.js icon indicating copy to clipboard operation
sql.js copied to clipboard

Safari WASM Range Error

Open jekelija opened this issue 4 years ago • 7 comments

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?

jekelija avatar Oct 14 '19 18:10 jekelija

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!

litonico avatar Oct 19 '19 04:10 litonico

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

jekelija avatar Oct 21 '19 14:10 jekelija

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

zirill avatar Oct 21 '19 14:10 zirill

file size is significantly larger for asm file though

jekelija avatar Oct 21 '19 14:10 jekelija

nginx gzip asm 3mb to 700kb

zirill avatar Oct 21 '19 15:10 zirill

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.

LeeRob97 avatar Nov 01 '19 14:11 LeeRob97

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.

fritzbauer avatar Nov 08 '19 16:11 fritzbauer