-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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] The ONNX model cannot be loaded via WASM in the IOS17 browser. #22086
Comments
We are also seeing this exact error with onnxruntime-web 1.19.0, running a tiny model in all browsers on iOS 17.6.1 as well as iPadOS 17.6.1. Works fine in all browsers including safari on macOS. Downgrading onnxruntime-web to 1.18.0 fixes this for us. |
The Out of Memory error was previously reported and fixed by rolling back Emscripten SDK upgrade, backe to 3.1.59. Did reproduce this error with the latest code on main branch? |
Thank you for your help. The issue indeed doesn't exist in version 1.18.0, it seems I carelessly missed this during my earlier attempts. I really appreciate your reminder. |
Hello, I tried using the latest code as per your suggestion. Unfortunately, the same error still occurs. |
@zyhhahah could you help to test whether the following versions work or not:
|
@fs-eire I tested these three versions on various platforms.
|
I think this is a known issue of Safari and it is fixed in iOS v18.0: emscripten-core/emscripten#19374 Screenshot from BrowserStack - https://jsfiddle.net/tpz1k9d7/3/ |
@fs-eire Thank you for your reminder. I have also tested it and confirmed that indeed in iOS 18 this issue does not occur, so my question can be closed. |
Describe the issue
This is the encountered error, which only occurs in the web environment on the iPhone.
I initially thought this issue was caused by version differences, so I tried many versions. They all worked fine in the web environment on Android and Windows. Based on the error message, it seems to be caused by insufficient memory. I tried many different models, including some very small ones, but the issue persisted. However, I found that when using the WebGL backend, the issue does not occur. It only happens with the WASM backend.
To reproduce
In my project, the code is quite complex, so I simplified it following the official example to reproduce the issue. The model used can be any ONNX model. The devices I tested on include iPhone 13 Pro, iPhone 13 Pro Max, and iPhone 15 Pro Max, and the issue occurred on all of them.
Urgency
My project is currently at a standstill due to this issue, and I'm not sure whether it's a problem with my implementation or a version-related issue. I'm wondering if I'm the only one encountering this problem.
ONNX Runtime Installation
Built from Source
ONNX Runtime Version or Commit ID
多版本都存在这个问题
Execution Provider
'webgl' (WebGL), 'wasm'/'cpu' (WebAssembly CPU)
The text was updated successfully, but these errors were encountered: