microsoft/onnxruntime

[Web] The ONNX model cannot be loaded via WASM in the IOS17 browser.

zyhhahah opened this issue · 8 comments

Describe the issue

This is the encountered error, which only occurs in the web environment on the iPhone.
Snipaste_2024-09-13_11-14-25
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.
image

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)