phoboslab / jsmpeg

MPEG1 Video Decoder in JavaScript
MIT License
6.35k stars 1.43k forks source link

LinkError: WebAssembly.instantiate() #382

Open Jacky1207 opened 2 years ago

Jacky1207 commented 2 years ago

I build wasm with emsdk-2.0.25。when I open the video with Chrome。i got error like this

Uncaught (in promise) LinkError: WebAssembly.instantiate(): Import #2 module="env" function="__stack_pointer" error: imported mutable global must be a WebAssembly.Global object Promise.then (async) WASM.loadFromBuffer @ jsmpeg.min.js:3 Player @ jsmpeg.min.js:1 (anonymous) @ view-stream.html:19

i have no idea for this error。Is it related to the version of emsdk?

LapysDev commented 2 years ago

😭