-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Memory access out of bounds on Chrome 91 #14538
Comments
A workaround that worked for me is to pre-allocate enough memory by compiling with |
The original text in this bug report comes from a comment I posted on Hacker News, about a bug in Safari's indexedDB implementation in iOS 14.6. You can see the context here: https://news.ycombinator.com/item?id=27512685 In terms of our workaround for this one, we do something similar to @lethal-guitar in terms of trying to ensure the initial allocation is large enough to avoid memory growth. If you know exactly your memory needs then just increasing For us the exact memory requirements aren't known up-front and we just want as much memory as possible. The problem of just hard-coding a large So our workaround is to manage allocating the WebAssembly.Memory ourselves, starting with a large request (512MB) and reducing the amount requested in 64MB steps if an exception is thrown. We then pass that in as |
This is likely fixed by now, so this issue can be closed. |
Thanks @Calinou , closing. |
Chrome 91 on Android also managed to break WebAssembly memory growth which affects our sites too, so it's been a rough couple of weeks working around browser bugs for us. https://bugs.chromium.org/p/v8/issues/detail?id=11863
and #14391
Is there a perfect workaround on Chrome 91?
The text was updated successfully, but these errors were encountered: