cutechess / cutechess

Cute Chess is a graphical user interface, command-line interface and a library for playing chess.
GNU General Public License v3.0
580 stars 144 forks source link

Debug log doesn't show complete engine initialization sequence #496

Open tpoppins opened 5 years ago

tpoppins commented 5 years ago

Example exec: SF10 (stockfish_10_x64_popcnt.exe) New Game -> SF10 plays Black

If SF10 is set up to run via the InBetween adapter CC displays the entire initialization sequence:

<_SF10(12): id name Stockfish 10 64 POPCNT
<_SF10(12): id author T. Romstad, M. Costalba, J. Kiiski, G. Linscott
<_SF10(12): option name Debug Log File type string default 
<_SF10(12): option name Contempt type spin default 24 min -100 max 100
<_SF10(12): option name Analysis Contempt type combo default Both var Off var White var Black var Both
<_SF10(12): option name Threads type spin default 1 min 1 max 512
<_SF10(12): option name Hash type spin default 16 min 1 max 131072
<_SF10(12): option name Clear Hash type button
<_SF10(12): option name Ponder type check default false
<_SF10(12): option name MultiPV type spin default 1 min 1 max 500
<_SF10(12): option name Skill Level type spin default 20 min 0 max 20
<_SF10(12): option name Move Overhead type spin default 30 min 0 max 5000
<_SF10(12): option name Minimum Thinking Time type spin default 20 min 0 max 5000
<_SF10(12): option name Slow Mover type spin default 84 min 10 max 1000
<_SF10(12): option name nodestime type spin default 0 min 0 max 10000
<_SF10(12): option name UCI_Chess960 type check default false
<_SF10(12): option name UCI_AnalyseMode type check default false
<_SF10(12): option name SyzygyPath type string default <empty>
<_SF10(12): option name SyzygyProbeDepth type spin default 1 min 1 max 100
<_SF10(12): option name Syzygy50MoveRule type check default true
<_SF10(12): option name SyzygyProbeLimit type spin default 7 min 0 max 7
<_SF10(12): uciok
>_SF10(12): setoption name Analysis Contempt value Off
>_SF10(12): setoption name Contempt value 24
>_SF10(12): setoption name Debug Log File
>_SF10(12): setoption name Hash value 512
>_SF10(12): setoption name Minimum Thinking Time value 20
>_SF10(12): setoption name Move Overhead value 30
>_SF10(12): setoption name MultiPV value 1
>_SF10(12): setoption name Skill Level value 20
>_SF10(12): setoption name Slow Mover value 84
>_SF10(12): setoption name Syzygy50MoveRule value true
>_SF10(12): setoption name SyzygyPath value e:\345
>_SF10(12): setoption name SyzygyProbeDepth value 1
>_SF10(12): setoption name SyzygyProbeLimit value 5
>_SF10(12): setoption name Threads value 1
>_SF10(12): setoption name nodestime value 0
>_SF10(12): isready
<_SF10(12): info string Found 145 tablebases
<_SF10(12): readyok
>_SF10(12): ucinewgame
>_SF10(12): setoption name Ponder value false
>_SF10(12): position startpos
<_SF10(12): info string Found 145 tablebases

CC debug log when SF10 is run directly:

<_SF10(8): info string Found 145 tablebases
<_SF10(8): readyok
>_SF10(8): ucinewgame
>_SF10(8): setoption name Ponder value false
>_SF10(8): position startpos
<_SF10(8): info string Found 145 tablebases

A lot of information is missing from the debug log when the engine is run directly -- everything from "id name" till "isready".

tpoppins commented 5 years ago

Another example: RataAerospacial 0.2.1 (link).

Cute Chess 1.1.0 (master as of July 8) shows this on startup:

<RataAeroespacial 0.2.1(1): feature myname="RataAeroespacial-0.2.1"
>RataAeroespacial 0.2.1(1): accepted myname
<RataAeroespacial 0.2.1(1): feature sigint=0 sigterm=0 setboard=1 ping=1 san=0 colors=0 variants="normal,fischerandom" done=1
>RataAeroespacial 0.2.1(1): rejected sigint
>RataAeroespacial 0.2.1(1): rejected sigterm
>RataAeroespacial 0.2.1(1): accepted setboard
>RataAeroespacial 0.2.1(1): accepted ping
>RataAeroespacial 0.2.1(1): accepted san
>RataAeroespacial 0.2.1(1): rejected colors
>RataAeroespacial 0.2.1(1): accepted variants
>RataAeroespacial 0.2.1(1): accepted done

Current master (as of Jan 18) shows nothing at all, although for a split second while the new game tab is opening something appears to flash in the debug log dock window.

tpoppins commented 5 years ago

I just built master dated July 8 (v1.1.0) and got the same problem. The only difference between the archived v1.1.0 exec used in the previous post and this new one is QT version. The archived exec shows "5.10.1" and the new one "5.12.2".

Looks like current code needs to be corrected to work with the latest QT packages.

alwey commented 5 years ago

Possibly we have two problems here, one with new versions of Qt, and one as described in #142

tpoppins commented 5 years ago

No, this one is a separate issue. The exec built with QT 5.10.1 shows a lot more of the log info than that one built with later QT versions, although some info from the very beginning is still missing occasionally (which is #142), esp. with concurrency>1.

alwey commented 5 years ago

This is what I meant.

alwey commented 5 years ago

With reference to http://talkchess.com/forum3/viewtopic.php?f=2&t=66430&p=797169#p797169

They either ran out of chess variants to add or consider CC already good enough not to need any more changes.

I already have five variants in (quasi) PR-ready state for more than a year. And at least five additional far-evolved variant implementations. So no shortage of variants.

Personally I do think CuteChess will improve further on. My own list of topics (only overlapping in part with the issues listed in this repository) comprises of 40 items, and (only/after all) 10 have been solved and added to the project. I guess the half-value time for solution of the topics on my list is about 2 to 3 years, and 3 to 5 years for the cutechess issue list. This goes under the assumption that the contributors and maintainers are able(!) to sustain the average effort of the last (about 5) years.

tpoppins commented 5 years ago

Well, if it comes to worst, it shouldn't be too hard to sustain the average effort of the past three months at least.

alwey commented 5 years ago

You cannot see our local repositories, can you?

tpoppins commented 5 years ago

No, but I can see something tall and sleek, towering beyond the clouds, imposing and aloof, gleaming in the sunlight. It it ivory?

alwey commented 5 years ago

Nah, this does not help - invoking images of slaughtered elephants.

Nordlandia commented 5 years ago

For my part i can't actually complain much really. Majority of my suggestion and few variants have already been implemented into the GUI and i'm very happy about that. Thanks to alwey and ilaripih. I tend to check github if any recent cutechess patches is made. Unfortunately not many the last months. I bet alwey and ilaripih have been quite busy lately.