stockfish.js icon indicating copy to clipboard operation
stockfish.js copied to clipboard

Running error!

Open MandiYang opened this issue 4 years ago • 4 comments

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

MandiYang avatar Nov 23 '21 17:11 MandiYang

Im having the same issue

Jandodev avatar Sep 03 '22 08:09 Jandodev

Any update?

israsanjose avatar Nov 18 '22 19:11 israsanjose

same issue here

eluo28 avatar Dec 07 '22 04:12 eluo28

I fix it running the code inside a container.

israsanjose avatar Dec 07 '22 06:12 israsanjose