I am facing the same issue as this user when using stockfish-16.1-single.js and stockfish-16.1-lite-single.js versions.
I only use it for analysis on Mac with node/vuejs.
Analysis starts fine and if I wait for the "best move" before analyzing the next position in that game, its all ok.
But if I quickly play through the moves while the engine is running, then after 4 or 5 moves I get this:
stockfish-16.1-single.js:8 Uncaught RuntimeError: memory access out of bounds
at stockfish-16.1-single.wasm:0x54c90
at r.<computed> (stockfish-16.1-single.js:8:9332)
at stockfish-16.1-single.js:8:9715
at se (stockfish-16.1-single.js:8:4624)
at stockfish-16.1-single.js:8:10785
Engine.vue UCI <- {} Aborted(RuntimeError: unreachable)
stockfish-16.1-single.js:8 Uncaught RuntimeError: Aborted(RuntimeError: unreachable). Build with -s ASSERTIONS=1 for more info.
at C (stockfish-16.1-single.js:8:3920)
at x (stockfish-16.1-single.js:8:9154)
at stockfish-16.1-single.js:8:9576
at se (stockfish-16.1-single.js:8:4624)
at stockfish-16.1-single.js:8:10785
=============
Steps to reproduce this error on Mac OS 14.5 (Apple M1 pro) via command line:
node src/stockfish-16.1-single.js
uci
keep pasting this command and hit enter multiple times:
go depth 19
go depth 19
go depth 19
go depth 19
Error:
RuntimeError: memory access out of bounds
at wasm://wasm/108df99a:wasm-function[425]:0x54c90
at r.<computed> (/Users/mcaap/Downloads/stockfish.js/src/stockfish-16.1-single.js:8:9332)
at /Users/mcaap/Downloads/stockfish.js/src/stockfish-16.1-single.js:8:9715
at se (/Users/mcaap/Downloads/stockfish.js/src/stockfish-16.1-single.js:8:4624)
at Timeout._onTimeout (/Users/mcaap/Downloads/stockfish.js/src/stockfish-16.1-single.js:8:10785)
at listOnTimeout (node:internal/timers:581:17)
at process.processTimers (node:internal/timers:519:7)
Same happens with : node src/stockfish-16.1-lite-single.js
However, the multi thread versions work fine and dont have this crash: node src/stockfish.js
I am facing the same issue as this user when using stockfish-16.1-single.js and stockfish-16.1-lite-single.js versions.
I only use it for analysis on Mac with node/vuejs.
Analysis starts fine and if I wait for the "best move" before analyzing the next position in that game, its all ok.
But if I quickly play through the moves while the engine is running, then after 4 or 5 moves I get this:
=============
Steps to reproduce this error on Mac OS 14.5 (Apple M1 pro) via command line:
keep pasting this command and hit enter multiple times:
Error:
Same happens with :
node src/stockfish-16.1-lite-single.jsHowever, the multi thread versions work fine and dont have this crash: node src/stockfish.js