Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stockfish 16 does not respond to the "quit" command #79

Open
saynschuman opened this issue Aug 3, 2023 · 2 comments
Open

Stockfish 16 does not respond to the "quit" command #79

saynschuman opened this issue Aug 3, 2023 · 2 comments

Comments

@saynschuman
Copy link

It seems that the new 16th version of Stockfish does not respond to the "quit" command. When sending stockfish.postMessage("quit") - it continues to send analytics. Whereas the 15th version returns a status of 0 - successful termination of work - in the console.

@nmrugg
Copy link
Owner

nmrugg commented Aug 3, 2023

@saynschuman, can you confirm which flavor of the engine you are using? The multi-threaded engine seems to exit properly.

You may want to run the engine in a Web Worker so that you can terminate the Worker.

@saynschuman
Copy link
Author

I run it like this on the web - stockfish = new Worker(/js/sf15/stockfish.js);
stockfish.onmessage = (event: MessageEvent) => {}
then I listen for its responses. So, the response stockfish.postMessage("quit") does not work as expected in version 16. I also observe this in version 11. It works fine in version 15.
Here's the archive with JS wrapper files of all the versions I use
js.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@nmrugg @saynschuman and others