cutechess-cli produces no screen output under Linux

Discussion of chess software programming and technical issues.

Moderators: hgm, Harvey Williamson, bob

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
Sven
Posts: 3822
Joined: Thu May 15, 2008 7:57 pm
Location: Berlin, Germany
Full name: Sven Schüle
Contact:

Re: cutechess-cli produces no screen output under Linux

Post by Sven » Wed Feb 21, 2018 8:03 pm

BeyondCritics wrote:Still no cigar.
Maybe a problem with your Qt installation?

BeyondCritics
Posts: 346
Joined: Sat May 05, 2012 12:48 pm
Location: Bergheim

Re: cutechess-cli produces no screen output under Linux

Post by BeyondCritics » Thu Feb 22, 2018 7:18 am

Sven wrote:
BeyondCritics wrote:Still no cigar.
Maybe a problem with your Qt installation?
Good idea.
I checked all dependencies listed on this (old) page for ubuntu 16.04 https://launchpad.net/ubuntu/xenial/i38 ... .2+0.0.1-1,
but could found no problems. The ubuntu wiki https://wiki.ubuntuusers.de/Qt/
demands

Code: Select all

qt5-default 
or

Code: Select all

qt4-default
and i have them both.
There was a cutechess package for ubuntu 16.04, but apparently it was abandoned for ubuntu 17.10. Why? Maybe because the maintainer faced a similar problem. That would be bad news.

mroh
Posts: 29
Joined: Thu Nov 02, 2017 5:51 am
Location: Germany
Contact:

Re: cutechess-cli produces no screen output under Linux

Post by mroh » Thu Feb 22, 2018 7:47 am

try without -debug or try this:

vi ~/.config/QtProject/qtlogging.ini and set "*.debug" to true:
*.debug=true

I documented this also here

pferd
Posts: 121
Joined: Thu Jul 24, 2014 12:49 pm

Re: cutechess-cli produces no screen output under Linux

Post by pferd » Thu Feb 22, 2018 9:09 am

Some observations:

I compiled the latest cutechess from github on my Laptop running Ubuntu 17.10. I ended up with the same problems described by Michael and cutechess-cli won't produce any console output.

I copied the folder to my main machine(Arch Linux) and the very same binary runs without problems. :shock:

BeyondCritics
Posts: 346
Joined: Sat May 05, 2012 12:48 pm
Location: Bergheim

SOLVED: cutechess-cli produces no screen output under Linux

Post by BeyondCritics » Thu Feb 22, 2018 9:28 am

mroh wrote:try without -debug or try this:

vi ~/.config/QtProject/qtlogging.ini and set "*.debug" to true:
*.debug=true

I documented this also here
Heureka! That solved it for me. Thank you very much!
However i don't like, that this fix messes with my global configuration. As explained herehttps://stackoverflow.com/questions/285 ... g-messages, it is possible to set the logging level for each application locally, just append

Code: Select all

QT_LOGGING_RULES="*.debug=true"
to its environment.

My working script under Linux looks as follows:

Code: Select all

#!/bin/sh

CUTE_CHESS_CLI="/usr/games/cutechess-cli"
MASTER_PATH="/home/oliver/bin/stockfish-master"
TESTEE_PATH="/home/oliver/git/chess/stockfish/master/src/stockfish_kbnk"
OPENINGS="/home/oliver/data/Software/Chess/2moves_v1.pgn"
SYZYGY="/home/oliver/data/syzygy/"

QT_LOGGING_RULES="*.debug=true" $CUTE_CHESS_CLI  -engine name=testee cmd="$TESTEE_PATH" -engine name=master cmd="$MASTER_PATH" -each proto=uci option.Hash=4 tc=1+0.1 -openings file=$OPENINGS order=random -pgnout /run/user/1000/test.pgn -ratinginterval 2 -concurrency 2 -repeat -recover -resign movecount=6 score=100 -draw movenumber=10 movecount=6 score=20 -rounds 2 -tb $SYZYGY -sprt elo0=0 elo1=2 alpha=0.05 beta=0.05 


AlvaroBegue
Posts: 919
Joined: Tue Mar 09, 2010 2:46 pm
Location: New York
Full name: Álvaro Begué (RuyDos)

Re: SOLVED: cutechess-cli produces no screen output under Li

Post by AlvaroBegue » Thu Feb 22, 2018 10:48 am

I am still using ubuntu 16.04 LTS. So glad someone else figured it out, since I will probably encounter the same problem in a couple of months, when I update to 18.04.

Thanks!

Post Reply