Skip to content
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

"RangeError: out of memory" when loading "stockfish-16.1-lite.js" in webworker on iOS safari/chrome #93

Open
jo-sip opened this issue Sep 4, 2024 · 1 comment

Comments

@jo-sip
Copy link

jo-sip commented Sep 4, 2024

It seems to work when loading fine on chrome on MacOS, but when I load this on my mobile the worker throws with this error.

It does seem to work when I use stockfish-16.1-lite-single.js for mobile though.

Chrome 128.0.6613.98

@nmrugg
Copy link
Owner

nmrugg commented Sep 6, 2024

The multi-threaded engines might use more memory. Mobile browsers are pretty limited. So, you may want to stick with the single-threaded engine.

The multi-threaded engines use SharedArrayBuffer, which needs COORS headers. That is often the source of issues with the multi-threaded engines.

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

2 participants