wasm-bindgen icon indicating copy to clipboard operation
wasm-bindgen copied to clipboard

0.2.100 out of memory bounds RuntimeError on safari 16.1

Open bmatthieu3 opened this issue 8 months ago • 1 comments

Describe the Bug

Hi, I am a developer of Aladin Lite, an astronomical web app to visualize and zoom into the sky. I am using wasm-bindgen and rust since a few years and am quite happy with it. Recently when compiling the a new release of our software we found that it was not running anymore on safari 16 (released in 2022). From version that worked and the last one I remember that I upgraded the wasm_bindgen/web_sys/js_sys crates and indeed, when downgrading wasm-bindgen from 0.2.100 to 0.2.92 (and web_sys to 0.3.56, js_sys to 0.3.47) it was working again!

The error is:

[Error] Unhandled Promise Rejection: RuntimeError: Out of bounds memory
access (evaluating...

I am sorry to not provide any additionnal information. Aladin Lite uses webgl2 and does many http requests to query for sky tile images when panning and zooming the view.

I did not test with in between wasm-bindgen/web_sys/js_sys versions but if you want I can narrow down the version difference where that RuntimeError out of memory bounds occurs first.

Thanks,

PS: I also noticed that from 0.2.100 to 0.2.92 (and vice versa) I had to change the method names e.g. https://rustwasm.github.io/wasm-bindgen/api/web_sys/struct.RequestInit.html#method.set_method which was just named method and set_mode was named mode.

bmatthieu3 avatar Apr 01 '25 08:04 bmatthieu3

See https://github.com/rustwasm/wasm-bindgen/issues/4471

bes avatar Apr 06 '25 17:04 bes