Running error!
MandiYang opened this issue · 4 comments
MandiYang commented
Output of stockfishjs
:
failed to asynchronously prepare wasm: CompileError: WebAssembly.instantiate(): Compiling function #82 failed: invalid simd opcode @+38625
[CompileError: WebAssembly.instantiate(): Compiling function #82 failed: invalid simd opcode @+38625]
RuntimeError: abort(CompileError: WebAssembly.instantiate(): Compiling function #82 failed: invalid simd opcode @+38625). Build with -s ASSERTIONS=1 for more info.
at B (/usr/local/lib/node_modules/stockfish/src/stockfish.js:41:337)
at /usr/local/lib/node_modules/stockfish/src/stockfish.js:99:293
/usr/local/lib/node_modules/stockfish/src/stockfish.js:31
if(q){A=n?require("path").dirname(A)+"/":__dirname+"/";ma=function(a,b){oa||(oa=require("fs"));pa||(pa=require("path"));a=pa.normalize(a);return oa.readFileSync(a,b?null:"utf8")};na=function(a){a=ma(a,!0);a.buffer||(a=new Uint8Array(a));assert(a.buffer);return a};1<process.argv.length&&(ia=process.argv[1].replace(/\\/g,"/"));ha=process.argv.slice(2);process.on("uncaughtException",function(a){if(!(a instanceof qa))throw a;});process.on("unhandledRejection",B);ja=function(a,b){if(ra())throw process.exitCode=
^
RuntimeError: abort(RuntimeError: abort(CompileError: WebAssembly.instantiate(): Compiling function #82 failed: invalid simd opcode @+38625). Build with -s ASSERTIONS=1 for more info.). Build with -s ASSERTIONS=1 for more info.
at process.B (/usr/local/lib/node_modules/stockfish/src/stockfish.js:41:337)
at process.emit (events.js:400:28)
at processPromiseRejections (internal/process/promises.js:245:33)
at processTicksAndRejections (internal/process/task_queues.js:96:32)
Node version: 14.18.1
Stockfish.js version: 14.1
Jandodev commented
Im having the same issue
israsanjose commented
Any update?
eluo28 commented
same issue here
israsanjose commented
I fix it running the code inside a container.