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

[wasm] Regression after updating wgpu to 23.0.0 #874

Open
noituri opened this issue Nov 19, 2024 · 1 comment
Open

[wasm] Regression after updating wgpu to 23.0.0 #874

noituri opened this issue Nov 19, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@noituri
Copy link
Member

noituri commented Nov 19, 2024

After 505fc07, web-wasm often panics with a variety of different errors.
The panics are not deterministic. Sometimes it works without any issues.

Confirmed on:

  • Chrome (MacOS, Linux)
  • Firefox (MacOS, Linux)

The most common errors:
1.

live-compositor.wasm:0x10865c Uncaught (in promise) RuntimeError: memory access out of bounds
    at live-compositor.wasm:0x10865c
    at live-compositor.wasm:0x4b77e6
    at live-compositor.wasm:0x43655f
    at live-compositor.wasm:0x406f79
    at live-compositor.wasm:0x3f8fff
    at live-compositor.wasm:0x416909
    at live-compositor.wasm:0x4a6700
    at LiveCompositorRenderer.render (index.js:385:26)
    at Renderer.render (index.js:2016:38)
    at Queue.onTick (queue.js:46:39)
index.js:1919 Uncaught (in promise) Error: recursive use of an object detected which would lead to unsafe aliasing in rust
    at imports.wbg.__wbindgen_throw (index.js:1919:15)
    at live-compositor.wasm:0x4d112f
    at live-compositor.wasm:0x4d1124
    at live-compositor.wasm:0x4aac2a
    at LiveCompositorRenderer.render (index.js:385:26)
    at Renderer.render (index.js:2016:38)
    at Queue.onTick (queue.js:46:39)
    at async queue.js:15:13
Uncaught RuntimeError: null function or function signature mismatch
    at live-compositor.wasm:0x40a29d
    at live-compositor.wasm:0x4b4f4c
    at live-compositor.wasm:0x499623
    at CLOSURE_DTORS (index.js:171:45)
    at FinalizationRegistry.cleanupSome 
index.js:631 panicked at ndex.crates.io-6f17d22bba15001f/wgpu-core-23.0.0/src/storage.rs:128:46:
Queue[Id(0,1)] does not exist

Stack:

Error
    at imports.wbg.__wbg_new_abda76e883ba8a5f (http://localhost:5173/@fs/live_compositor/ts/@live-compositor/browser-render/dist/index.js:615:21)
    at http://localhost:5173/assets/live-compositor.wasm:wasm-function[6062]:0x4e725b
    at http://localhost:5173/assets/live-compositor.wasm:wasm-function[3046]:0x417328
    at http://localhost:5173/assets/live-compositor.wasm:wasm-function[4313]:0x4888d0
    at http://localhost:5173/assets/live-compositor.wasm:wasm-function[2452]:0x3d4421
    at http://localhost:5173/assets/live-compositor.wasm:wasm-function[1793]:0x363476
    at http://localhost:5173/assets/live-compositor.wasm:wasm-function[2668]:0x3ef090
    at http://localhost:5173/assets/live-compositor.wasm:wasm-function[4906]:0x4a556a
    at LiveCompositorRenderer.render (http://localhost:5173/@fs/live_compositor/ts/@live-compositor/browser-render/dist/index.js:385:26)
    at Renderer.render (http://localhost:5173/@fs/live_compositor/ts/@live-compositor/browser-render/dist/index.js:2016:38)
@noituri noituri added the bug Something isn't working label Nov 19, 2024
@noituri noituri self-assigned this Nov 19, 2024
@noituri
Copy link
Member Author

noituri commented Nov 22, 2024

The issue was caused by wasm-bindgen 0.2.95 which is required by wgpu 23.0.0. It was temporarily fixed in #882 by downgrading wgpu and wasm-bindgen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant