Search found 1309 matches

by Ras
Fri Jan 22, 2021 10:49 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Stockfish hangs
Replies: 27
Views: 846

Re: Stockfish hangs

During a match (with reuse=0) it just forked off the engine process, send the commands to start it, and sset the clock running. No waiting of any kind. That's interesting. Is it still like that in the days of engines loading EGTBs, NNUEs and whatnot? Yes, and you won't have it if you do not clear t...
by Ras
Fri Jan 22, 2021 7:40 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Stockfish hangs
Replies: 27
Views: 846

Re: Stockfish hangs

The Ponder option is not supposed to trigger any action; it is there only to be consulted during (or even only before) a timed search That's what I was thinking, that Stockfish might start pondering right away. If you don't give any "position" command after startup, it appears to be set to the init...
by Ras
Thu Jan 21, 2021 10:51 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Stockfish hangs
Replies: 27
Views: 846

Re: Stockfish hangs

That is a premature conclusion. As other people mentioned, the hanging should not be due to this at all. Even if Stockfish would try to perform the initialization it does in response to ucinewgame asynchronously (and why would it? just to make it possible to crash it?), and would crash when it trie...
by Ras
Thu Jan 21, 2021 10:05 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Stockfish hangs
Replies: 27
Views: 846

Re: Stockfish hangs

Why waste time on an inferior design if you can start with the superior design? The superior design is properly resetting state because it reduces one case to another, already know one. That's a well-established design pattern. I never saw much logic in the strategy "before I can try a good design,...
by Ras
Wed Jan 20, 2021 11:34 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Stockfish hangs
Replies: 27
Views: 846

Re: Stockfish hangs

Clearing history should not take measurable time. Agree. Why clear the hash table? Because that makes sure that the engine is in the same state upon each new game. I like things to be reproducible because it makes troubleshooting easier or even possible. Would you also do it when you knew it came o...
by Ras
Wed Jan 20, 2021 9:11 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Stockfish hangs
Replies: 27
Views: 846

Re: Stockfish hangs

So why would they need significant time after ucinewgame, then? I'm too lazy to look up SF's source. In my engine, I'm clearing history and hashtables. The latter can take a significant amount of time with large hashtables in relation to short time controls like one second per game without incremen...
by Ras
Wed Jan 20, 2021 10:10 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Stockfish hangs
Replies: 27
Views: 846

Re: Stockfish hangs

Playing multiple games with the same instance has no advantage at all when engines need large amounts of time to reinitialize after every ucinewgame. I don't see why e.g. EGTBs would be reloaded for a new game - unless the GUI goes through the whole setoption yadda yadda process again, which would ...
by Ras
Wed Jan 20, 2021 7:50 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Stockfish hangs
Replies: 27
Views: 846

Re: Stockfish hangs

When I was still playing Chess, and arrived at my club for the match at 8 p.m., I could also not say to the referee "Sorry, but I have prepared this great opening repertoire, but I don't know it by heart yet. I want to study my notes on it first, so please start my clock only 15 min from now!". Com...
by Ras
Tue Jan 19, 2021 1:56 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Stockfish hangs
Replies: 27
Views: 846

Re: Stockfish hangs

Perhaps I should simply refrain from sending 'ucinewgame'? That might solve the problem with this one, not sure, but you'd run into the same problem upon the next game. Of course you can also leave it out there, too, but then the engine would keep its hashes, history and whatnot from the previous g...
by Ras
Tue Jan 19, 2021 12:24 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Uci "go" command without other parameters
Replies: 19
Views: 470

Re: Uci "go" command without other parameters

Fun test: try putting "searchmoves" and its move list before other parameters like search depth. The UCI spec doesn't state that "searchmoves" has to be the last parameter, yet you'd be hard pressed to find UCI engines that can deal with this - not even Shredder itself.