WebAssembly / binaryen

Optimizer and compiler/toolchain library for WebAssembly
Apache License 2.0
7.52k stars 745 forks source link

wasm2js Error: abort on latest wasm-bindgen #6628

Open elpiel opened 5 months ago

elpiel commented 5 months ago

Hello, We've recently updated to the latest version of wasm-bindgen (0.2.92) and Rust 1.78. Using the module build from this repository and this particular commit (now we have downgraded both in order to avoid another issue): https://github.com/Stremio/stremio-core-web/tree/00deecd0fb9220fb3b1516b9405d43f257407b25

While the using the module in the web frontend (https://github.com/Stremio/stremio-web/) works as expected, the one for WebOS (using wasm2js) fails with this abort error. Sadly neither the wasm2js nor the application code is open-source but I can assist in finding what the issue is.

I tried tracking down the backtrace and I ended up in one of our .tsx files I'm not sure if this is an issue with wasm-bindgen or the wasm2js binary

image

kripken commented 5 months ago

neither the wasm2js nor the application code is open-source

Do you mean the wasm2js output? (wasm2js itself is of course open source in this repo)

It's hard to say what's going wrong based on that error in the image, as it looks very generic. If wasm-bindgen has a debug mode that adds assertions that might help. If not, perhaps bisecting is the fastest way to resolve this, since this started to happen for you in an upgrade, and so finding the specific commit responsible for the regression would be very informative.