kleisauke / wasm-vips

libvips for the browser and Node.js, compiled to WebAssembly with Emscripten.
https://kleisauke.github.io/wasm-vips/
MIT License
463 stars 25 forks source link

WebAssembly.Memory Error #26

Closed Sparkenstein closed 1 year ago

Sparkenstein commented 1 year ago

I am using the latest version of wasm-vips but in production I am getting the following error:

requested a shared WebAssembly.Memory but the returned buffer is not a SharedArrayBuffer, indicating that while the browser has SharedArrayBuffer it does not have WebAssembly threads support - you may need to set a flag

I am setting the headers correctly:

image

I also get the vips.js correctly. Also the console doesn't exactly print anything. I got it by breaking on all exceptions. I am on latest version on mac, using it in native webview.

Sparkenstein commented 1 year ago

I don't think this is wasm-vips issue. will close this one.