-
Notifications
You must be signed in to change notification settings - Fork 75
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
Web: DriftRemoteException WebAssembly.instantiateStreaming is not a function #187
Comments
Thanks for the report! The I have added a fallback, but I don't have access to older browsers to try it out. Could you replace your drift worker with https://storage.googleapis.com/simon-public-euw3/assets/drift_worker.js and see if that fixes the issue on those browsers? |
Thank you for the fallback. Unfortunately there seems to be a problem with it. Error: WebAssembly.Module doesn't parse at byte 241: invalid opcode 192, in function at index 85 (I'm using browserstack to test it right now. Apparently it has free plan for open source projects) |
This is because llvm uses sign-extension features by default, which are not available in the WebAssembly MVP version supported by these old browsers. I've tried transforming these with binaryen, but then these browsers complain about imported functions using 64-bit ints, something we need to implement custom file systems. The binaryen pass supposed to lower those crashed for me, so it seems like there's nothing I could do about it. WebAssembly is a new web technology and we support recent versions of major browsers. That already took a lot of work, expanding this to support even older versions (which sometimes have buggy implementations as well) seems infeasible to me. |
I'm having an error on mobile devices when browser is 'Chrome Mobile iOS 92', 'Mobile Safari 13.1', 'Samsung Internet 22' etc:
I know that JavaScript built-in: WebAssembly: instantiateStreaming is not supported by those browsers:
https://caniuse.com/?search=instantiatestreaming
But I'm not sure why my drift setup uses instantiateStreaming or if this is expected for those browsers.
When checked with https://drift.simonbinder.eu/web/ it says:
I'm using:
Headers:
drift versions: tried with 2.11 and 2.12.2
The text was updated successfully, but these errors were encountered: