Comments (8)
You can send a "stop" before a "quit" to fix this. I will also fix it soon, I've just put it off because I haven't seen a GUI have problems with it yet.
from laser-chess-engine.
The hanging issue is not resolved by the recent commit.
from laser-chess-engine.
Hm, so the problem is not what I thought. It happens when cutechess cancels the match while a search is running? Does cutechess send stop before quit? Do you have logs?
from laser-chess-engine.
So I ran a set with logging. No output from cutechess about stop/quit here.
In this case I ran with concurrency=1, after the server tells cutechess to quit, half or all copies of master are left running. AND they are running at 100% CPU.
Running your engine normally, so long as not searching, CPU usage is hardly enough to even make its way to the top
view. This means after cutechess exits, you have a searching thread still running, despite the main input reader being dead.
I have done ps -T -p <pid>
on the "dead" copies of Laser. I can clearly see only one thread running. When running your engine normally, sending go infinite
, I can then of course see the 2 threads using ps -T -p <pid>
I'm not familiar with c++ threading, but you need to have your threads connected back to the main one in some way.
from laser-chess-engine.
Assuming that cutechess is ACTUALLY sending a quit command to Laser (and not reporting it), all you might need to do is ensure that the search thread is joined before termination.
from laser-chess-engine.
See https://stackoverflow.com/questions/3756882/detached-vs-joinable-posix-threads and https://stackoverflow.com/questions/25655706/how-to-terminate-or-stop-a-detached-thread-in-c
from laser-chess-engine.
Have you looked any further into this? I tried a few things which in some cases suggested progress, other cases nothing.
from laser-chess-engine.
bump @jeffreyan11 @AndyGrant
from laser-chess-engine.
Related Issues (18)
- laser 1.3 moves instantly no matter what thinking time is set HOT 3
- PVS() may return false MATE scores HOT 1
- Laser 1.6b for Linux on SDChess website from Russia HOT 1
- Laser 1.4 Syzygy tablebases HOT 16
- Restructure project
- Laser for android HOT 6
- Too many system calls HOT 2
- Laser 1.6 blundered in no time presure HOT 2
- Question: UCI960 Support? HOT 8
- Potential Tuning data
- Laser Chess Engine Enhancement, Playing Chess Variants, Musketeer Chess
- Can you build a Korean chess engine?
- Please add ARMv9.2, SVE2, Dot Product and Neon support
- v1.5 Windows executables including source code HOT 1
- "PrintStatistics() & Searchmoves" problems HOT 4
- Feature Request: support some missing uci parameters HOT 1
- Laser for android HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laser-chess-engine.