Skip to content
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] #17700

Open
nikolaydyankov opened this issue Sep 26, 2023 · 5 comments
Open

[Web] #17700

nikolaydyankov opened this issue Sep 26, 2023 · 5 comments
Labels
platform:web issues related to ONNX Runtime web; typically submitted using template

Comments

@nikolaydyankov
Copy link

nikolaydyankov commented Sep 26, 2023

Describe the issue

After updating to 1.16.0 I started getting this error:

Uncaught (in promise) Error: no available backend found. ERR: [wasm] RuntimeError: Aborted(both async and sync fetching of the wasm failed). Build with -sASSERTIONS for more info., [cpu] Error: previous call to 'initializeWebAssembly()' failed., [webnn] Error: previous call to 'initializeWebAssembly()' failed., [xnnpack] Error: previous call to 'initializeWebAssembly()' failed.
    at t.resolveBackend (backend-impl.js:91:11)
    at async i.create (inference-session-impl.js:175:15)
    at async createSAM (SAM.ts:59:19)
    at async init (http://localhost:5001/src/routes/(app)/app/project/[projectId]/auto-detect/+page.svelte:936:9)

When I downgrade to 1.15.1 it's working again without errors. I'm using SvelteKit and made a bare minimum repo if you want to reproduce it.

To reproduce

git clone https://github.com/nikolaydyankov/onnx-runtime-web-issue
npm install
npm run dev

Open localhost:5174 and see the console. Changing it back to 1.15.1 will remove the error.

Urgency

No response

ONNX Runtime Installation

Released Package

ONNX Runtime Version or Commit ID

1.16.0

Execution Provider

'wasm'/'cpu' (WebAssembly CPU)

@nikolaydyankov nikolaydyankov added the platform:web issues related to ONNX Runtime web; typically submitted using template label Sep 26, 2023
@MountainAndMorning
Copy link

I am using electron of onnxruntime-web and get a Not Found error:

localhost:5173/Users/liangwanyou/Documents/TIMESlicePro/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/renderer/ort-wasm-simd.wasm 404

@hariharans29
Copy link
Member

Hi @fs-eire / @guschmue - Can you please take a look ?

@fs-eire
Copy link
Contributor

fs-eire commented Sep 28, 2023

will take a look.

@github-actions
Copy link
Contributor

This issue has been automatically marked as stale due to inactivity and will be closed in 7 days if no further activity occurs. If further support is needed, please provide an update and/or more details.

@github-actions github-actions bot added the stale issues that have not been addressed in a while; categorized by a bot label Oct 28, 2023
@fs-eire
Copy link
Contributor

fs-eire commented Oct 31, 2023

I was too busy back then and I am currently in vacation. Probably someone can help on this issue, or when I got some time after my vacation.

@fs-eire fs-eire removed the stale issues that have not been addressed in a while; categorized by a bot label Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform:web issues related to ONNX Runtime web; typically submitted using template
Projects
None yet
Development

No branches or pull requests

4 participants