-
Notifications
You must be signed in to change notification settings - Fork 13
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
[BUG] WebAssembly.Module doesn't parse at byte 1227: invalid opcode 192, in function at index 28 #17
Comments
Which iOS version and Safari version have you been using for the example? |
Unfortunate for debugging, but fortunate for me the Ipad had updated to IOS 16.7.5 which has resolved the issue. I will close this for now as i am no longer able to reproduce the issue |
@undecaf We still get production logs about this issue, from browsers as recent as Safari 16.6 on iPhone 16.7.2 (released in July 2023). I found pointers here for making the webassembly module compatible with a wider set of browsers: emscripten-core/emscripten#19121 |
@erickedji According to this table, Safari should support WASM sign-extension since 14.5 on iOS. I just verified the example to work also under Safari 16.2 which also is older than the version you mentioned. Therefore it seems unlikely that sign-extension operations are the cause for your production logs. Since I do not wish to disable all new WASM features only to be on the safe side, could you please be more specific on what exactly is being logged? |
Indeed, that was my mistake. The highest version this "opcode 192" error was detected on is 14.0, which is consistent with the compatibility data. The error on 16.7.2 is slightly different. The full user agent is:
The error message is:
This was caught with a global Should I create another issue? |
@erickedji I think that the error message does not indicate that there is anything wrong with the WASM file: The WASM validation utility (
Therefore I think that your error message could be the result of too little memory for Safari, or maybe even a bug in Safari 16.6 |
Thanks for the investigation @undecaf |
Describe the bug
On Ipad safari the webassembly script fails to compile due to the following error:
To Reproduce
Opening the example on an ipad and uploading an image file of a barcode https://undecaf.github.io/zbar-wasm/example/ will result in "Source not ready" with the specified error above.
Or else the environment in which the behavior occurs needs to be specified:
The text was updated successfully, but these errors were encountered: