Usually this system seems to work, but recently I found out that there are problems with positions where the Engine is sending lots of lines to the GUI. (eg in Positions with forced wins or draws) There it takes the Engine way too long to recognize the Stop command.
Eg. A mate in 1 Position (current implementation is that the engine doesn't stop the search if no better mate is possible - but searches till the maximum depth of 100)
Code: Select all
472.189-->1:position fen 8/8/8/8/8/7K/R7/7k w - - 0 1
472.189-->1:go infinite
472.189<--1:info depth 1 score cp 1045 time 0 nodes 2 nps 0 pv a2a7
472.189<--1:info depth 1 score cp 1051 time 0 nodes 3 nps 0 pv h3g4
472.204<--1:info depth 2 score cp 1051 time 0 nodes 21 nps 0 pv h3g4 h1g1
472.204<--1:info depth 2 score mate 1 time 0 nodes 44 nps 0 pv a2a1
472.220<--1:info depth 3 score mate 1 time 0 nodes 62 nps 0 pv a2a1
472.220<--1:info depth 4 score mate 1 time 0 nodes 80 nps 0 pv a2a1
472.220<--1:info depth 5 score mate 1 time 0 nodes 98 nps 0 pv a2a1
[...]
472.876<--1:info depth 52 score mate 1 time 15 nodes 944 nps 62933 pv a2a1
472.891<--1:info depth 53 score mate 1 time 15 nodes 962 nps 64133 pv a2a1
472.906<--1:info depth 54 score mate 1 time 15 nodes 980 nps 65333 pv a2a1
472.923-->1:stop
472.923<--1:info depth 55 score mate 1 time 31 nodes 998 nps 32193 pv a2a1
472.938<--1:info depth 56 score mate 1 time 31 nodes 1016 nps 32774 pv a2a1
472.953<--1:info depth 57 score mate 1 time 31 nodes 1034 nps 33354 pv a2a1
[...]
473.657<--1:info depth 99 score mate 1 time 156 nodes 1790 nps 11474 pv a2a1
473.672<--1:info depth 100 score mate 1 time 156 nodes 1808 nps 11589 pv a2a1
473.689<--1:bestmove a2a1 ponder h1g1Where could this be coming from? Are there any solutions to the problem?

