Page 1 of 3

Rybka3Linux

PostPosted: 21 Nov 2009, 23:06
by StormSergey
Hello! Has faced such problem at command start xboard-fcp Rybka3Linux-fUCI gives out the following error.
Image
How to me it to correct? Advise the tournament manager for Xboard 4.4.0 Forgive for such questions I the beginner in Linux as well as in Xboard :D

Re: Rybka3Linux

PostPosted: 21 Nov 2009, 23:58
by H.G.Muller
UCI engines like Rybka play through the Polyglot adapter. That makes it a bit difficult to recognize what exactly is going on. The error message sais that Polyglot exited unexpectedly, but Polyglot is a pretty reliable program, so it probably did so for a good reason. Most likely because it could not find Rybka. (Could also be that it did not find the polyglot_1st.ini file.)

Best is to test step by step:
1) if you type "Rybka3Linux" from the command line, does Rybka start or do you get an error message?
If nothing happens, you should type "UCI" to see if Rybka responds.
2) If you pass that test, you sould check if polyglot_1st.ini is in the current directory, and try to print it by typing "cat polyglot_1st.ini".
3) If that works, you should try "polyglot ./polyglot_1st.ini". When that gives no error message (which means it is waiting for input) you should type:
Code: Select all
xboard
protover 2

and it should print a list of features.

Re: Rybka3Linux

PostPosted: 22 Nov 2009, 08:16
by StormSergey
    stalker@stalker:~$ cd /usr/games
    stalker@stalker:/usr/games$ Rybka3Linux
    uci
    id name Rybka 3
    id author Vasik Rajlich, Larry Kaufman
    option name UCI_Query type button
    option name Hash type spin min 2 max 4096 default 32
    option name Max CPUs type spin min 1 max 2048 default 2048
    option name NalimovPath type string default <empty>
    option name NalimovCache type spin min 1 max 256 default 1
    option name NalimovUsage type combo default Rarely var Frequently var Normally var Rarely var Never
    option name Preserve Analysis type check default false
    option name Clear Hash type button
    option name Saved Hash File type string default <empty>
    option name Save Hash type button
    option name Load Hash type button
    option name Persistent Hash Enabled type check default false
    option name Persistent Hash File type string default <empty>
    option name Persistent Hash Play Depth type spin default 64 min 8 max 64
    option name Persistent Hash Write Depth type spin default 10 min 8 max 64
    option name Persistent Hash Size type spin default 16 min 8 max 65536
    option name Persistent Hash Reset type button
    option name Persistent Hash Resize type button
    option name Persistent Hash Merge File type string default <empty>
    option name Persistent Hash Do Merge type button
    option name Ponder type check default false
    option name MultiPV type spin default 1 min 1 max 100
    option name MultiPV_cp type spin default 32768 min 0 max 32768
    option name Contempt Play type spin default 15 min -250 max 250
    option name Contempt Analyze type spin default 0 min -250 max 250
    option name UCI_LimitStrength type check default false
    option name UCI_Elo type spin default 1200 min 1200 max 2400
    option name UCI_EngineAbout type string default http://www.rybkachess.com
    option name Time Buffer type spin default 0 min 0 max 900
    uciok
    stalker@stalker:~$ cat polyglot_1st.ini
    [Polyglot]
    EngineDir = .
    EngineCommand = Rybka3Linux
    Book = false
    BookFile =
    [Engine]
    Hash = 64
    NalimovPath = /usr/local/share/egtb
    NalimovCache = 4
    OwnBook = true
    stalker@stalker:~$ polyglot ./polyglot_1st.ini
    PolyGlot 1.4 by Fabien Letouzey
Set all. But still an error

Re: Rybka3Linux

PostPosted: 22 Nov 2009, 18:24
by Eric Mullins
StormSergey wrote:stalker@stalker:/usr/games$ Rybka3Linux
[...]
stalker@stalker:~$ cat polyglot_1st.ini
[Polyglot]
EngineDir = .
EngineCommand = Rybka3Linux

[...]

stalker@stalker:~$ polyglot ./polyglot_1st.ini
PolyGlot 1.4 by Fabien Letouzey


With this configuration, polyglot expects to find Rybka3Linux in the same directory you ran from. IE, it can't find it because it is in /usr/games instead of the current directory.

Just modify the EngineDir polyglot option so it is correct. (/usr/games)

Re: Rybka3Linux

PostPosted: 22 Nov 2009, 19:36
by H.G.Muller
This should be considered a Polyglot bug, not? If "Rybka3Linux" is a valid command from the command line, (because /usr/games is in the PATH), then "EngineCommand = Rybka3Linux" should work, despite the fact that the "EngineDir = .". It should work no matter what the EngineDir is. Only when the EngineCommand would have been specified as "./Rybka3Linux" it would have had the right to complain. The EngineDir only tells what the current directory should be for the engine process (so that it looks for its book and config files there, or perhaps for making a log file). Not that the engine binary itself is in that directory (which would be very inconvenient in Linux).

Or is the problem that /usr/games is not in the PATH? What Polyglot version is bing used here? I can run Fruit or Glaurung in Linux by simply typing "xboard -fcp fruit -fUCI", and Fruit and Glaurung install in /usr/games as well.

I notice that the Rybka3Linux command was given while you were in the /usr/games directory. Does it also work from other directories?

A work-around could be to add the option "-fd /usr/games" to the xboard command line. Or specify the full path name, "-fcp /usr/games/Rybka3Linux".

Re: Rybka3Linux

PostPosted: 22 Nov 2009, 21:05
by Michel
I suspect it's a path problem.

Does

Code: Select all
polyglot -noini -ec Rybka3Linux


work?

Re: Rybka3Linux

PostPosted: 26 Nov 2009, 14:49
by StormSergey
Code: Select all
xboard -fcp /usr/games/Rybka3Linux

Image
Code: Select all
polyglot -noini -ec Rybka3Linux

PolyGlot 1.4 by Fabien Letouzey
Can't open file "polyglot.ini": No such file or directory

Re: Rybka3Linux

PostPosted: 26 Nov 2009, 16:20
by H.G.Muller
I am not sure if this is related to the original problem, but you are using a rather obsolete version of Polyglot. This explains the second thing: it does not know the option -noini, and starts looking for a polylot.ini file anyway. I think this version of XBoard works best with Polyglot 1.4.46b.

Perhaps you should upgrade XBoard too: it seems you are using 4.4.0, and that indeed has the bug that the analysis window still pops up when it should not. The analysis output might appear in the Engine-Output window, which you have not open (it should have opened automatically, but the bug opens the analysis window in stead), so you can't see it. So first try to open the Engine-Output window, (in the Mode menu) to check if analysis is actually working, or that there is a real problem.

If upgrade you to XBoard 4.4.1, the Engine-Output window will pop up automatically when you select Analysis Mode. In a few days you will even be able to uprade to 4.4.2. 8-)

Re: Rybka3Linux

PostPosted: 26 Nov 2009, 19:36
by StormSergey
Has established version Xboard 4.4.1 and version Polyglot 1.4.50b But Rybka3Linux has not started
Code: Select all
xboard -fcp /usr/games/Rybka3Linux
though in the system monitor it was loaded.
Code: Select all
http://s47.radikal.ru/i116/0911/c0/39d7773c7eb7.jpg
In Xboard at me perfectly work Fruit, Spike, Toga, Stokfish, ZappaMexico2, DeepShredder11. But Rybka3Linux it does not work probably is connected with microwine?
Code: Select all
http://www.open-aurec.com/wbforum/viewtopic.php?f=19&t=50453
If at you it has turned out to start it write as you it have made in detail. 8-)

Re: Rybka3Linux

PostPosted: 27 Nov 2009, 10:39
by H.G.Muller
Code: Select all
xboard -fcp /usr/games/Rybka3Linux

It seems you are leaving out the -fUCI. This would start Rybka as a WinBoard engine, and Rybka would wait forever for a uci command, while XBoard would wait for Rybka to do something.

What you should test is if

Code: Select all
polyglot -noini -ec /usr/games/Rybka3Linux


works from the command line in the folder where you want to give the xboard command. If that works, (i.e. when polyglot does not exit immediately, but you can type "xboard", "new", "post" and "go" and it will start to spit out Thinking Output) you could try if

Code: Select all
polyglot -noini -ec Rybka3Linux


also works. (To see if the problem is indeed the PATH.)

Re: Rybka3Linux

PostPosted: 27 Nov 2009, 11:32
by StormSergey
Code: Select all
stalker@ubuntu:~$ polyglot -noini -ec /usr/games/Rybka3Linux
PolyGlot 1.4.50b by Fabien Letouzey.
xboard
new
post
go
2 +40 0 24 Nf3
3 +23 0 48 Nf3
4 +27 0 153 Nf3
5 +23 0 333 Nf3 Nf6
6 +19 1 806 Nf3 Nf6 Nc3
7 +26 3 2182 Nf3 Nf6 d4 Nc6
8 +25 5 3913 Nf3 Nf6 d4 Nc6 Nc3
9 +27 14 9851 Nf3 Nf6 d4 Nc6 Nc3 d5
10 +24 29 21525 Nf3 Nf6 d4 d5 Nc3 Nc6 Bf4
11 +24 48 36629 Nf3 Nf6 d4 d5 Nc3 Nc6 Bf4 Bf5
12 +24 105 78842 Nf3 Nf6 d4 d5 Nc3 Nc6 Bf4 Bf5 e3
12 +25 172 127702 e4 Nc6 Nf3 Nf6 e5 Nd5 Nc3
13 +23 453 367095 e4 e5 Nf3 Nf6 Nc3 Nc6 Bc4 Bc5 O-O O-O d3 h6
13 +23 713 556312 e4 e5 Nf3 Nf6 Nc3 Nc6 Bc4 Bc5 O-O O-O d3 h6
move e2e4
go
11 -23 0 12 e5 Nf3 Nf6 Nc3 Nc6 Bc4 Bc5 O-O O-O d3 h6
12 -23 0 14 e5 Nf3 Nf6 Nc3 Nc6 Bc4 Bc5 O-O O-O d3 h6
13 -6 176 150779 e5 Nf3 Nf6 Nc3 Bb4 Bc4 O-O O-O d6 d3 Nc6
13 -6 284 211646 e5 Nf3 Nf6 Nc3 Bb4 Bc4 O-O O-O d6 d3 Nc6
move e7e5

Code: Select all
stalker@ubuntu:~$ polyglot -noini -ec Rybka3Linux
PolyGlot 1.4.50b by Fabien Letouzey.
Rybka3Linux: No such file or directory
stalker@ubuntu:~$

Re: Rybka3Linux

PostPosted: 27 Nov 2009, 11:50
by Michel
Ok one issue seems to be indeed the path. This means that

Code: Select all
xboard -fcp /usr/games/Rybka3Linux -fUCI


should work correctly.

If it doesn't then Rybka3Linux is probably the culprit (unless a polyglot bug is at play but
currently this seems unlikely as this same setup works with all other UCI engines).

Please report back.

EDIT: Did you report the literal output from polyglot? In my case I get

Code: Select all
vdbergh@ubuntu:~$ polyglot -noini -ec fdfsdfsd
PolyGlot 1.4.50b by Fabien Letouzey.
engine_open(): execvp(): fdfsdfsd: No such file or directory
vdbergh@ubuntu:~$

Re: Rybka3Linux

PostPosted: 27 Nov 2009, 12:00
by StormSergey
Code: Select all
stalker@ubuntu:~$ xboard -fcp /usr/games/Rybka3Linux -fUCI
xboard: Error: first chess program (polyglot ./polyglot_1st.ini) exited unexpectedly
stalker@ubuntu:~$
:shock:

Re: Rybka3Linux

PostPosted: 27 Nov 2009, 12:46
by Michel
stalker@ubuntu:~$ xboard -fcp /usr/games/Rybka3Linux -fUCI
xboard: Error: first chess program (polyglot ./polyglot_1st.ini) exited unexpectedly
stalker@ubuntu:~$


:(

It seems we need to do further debugging. As polyglot does not print more information
on the error everything is ok as far as polyglot is concerned (unless it crashed). This could mean that the engine
quit (or crashed) and polyglot followed suit.

In the engine configuration window you can turn on polyglot logging. This will log
communication between the engine and polyglot. This should give an indication why
polyglot quit.

EDIT: I do not own Rybka 3 but I tried running Rybka 2 in microwine under polyglot under xboard.
I am observing the same behaviour as you. Rybka 2 starts up correctly
but then quits (or crashes)

Code: Select all
1259323243.706 POLYGLOT *** LOGFILE OPENED ***
1259323243.706 PolyGlot 1.4.50b by Fabien Letouzey.
1259323243.706 POLYGLOT *** START ***
1259323243.740 Adapter->Engine: uci
1259323243.919 Engine->Adapter: id name Rybka 2.2n2 mp
1259323243.919 Engine->Adapter: id author Vasik Rajlich
1259323243.919 Engine->Adapter: option name Hash type spin min 2 max 4096 default 32
1259323243.919 Engine->Adapter: option name Max CPUs type spin min 1 max 2048 default 2048
1259323243.919 Engine->Adapter: option name Display Draw Scores type check default false
1259323243.920 Engine->Adapter: option name Engine Priority type combo default NormalAndLow var Normal var NormalAndLow var Low
1259323243.920 Engine->Adapter: option name Display PV Tips type check default false
1259323243.920 Engine->Adapter: option name CPU Usage type spin min 1 max 100 default 100
1259323243.920 Engine->Adapter: option name Win Percentage to Hash Usage type check default false
1259323243.920 Engine->Adapter: option name Display Current Move type check default true
1259323243.921 Engine->Adapter: option name Compensate Lost Time type check default true
1259323243.921 Engine->Adapter: option name NalimovPath type string default <empty>
1259323243.921 Engine->Adapter: option name NalimovCache type spin min 1 max 256 default 1
1259323243.921 Engine->Adapter: option name NalimovUsage type combo default Never var Frequently var Normally var Rarely var Never
1259323243.921 Engine->Adapter: option name Preserve Analysis type check default false
1259323243.921 Engine->Adapter: option name Clear Hash type button
1259323243.922 Engine->Adapter: option name Ponder type check default true
1259323243.922 Engine->Adapter: option name MultiPV type spin default 1 min 1 max 100
1259323243.922 Engine->Adapter: option name UCI_ShowRefutations type check default false
1259323243.922 Engine->Adapter: option name UCI_LimitStrength type check default false
1259323243.922 Engine->Adapter: option name UCI_Elo type spin default 1200 min 1200 max 2400
1259323243.923 Engine->Adapter: option name Server Buffer type check default false
1259323243.923 Engine->Adapter: option name UCI_AnalyseMode type check default false
1259323243.923 Engine->Adapter: option name UCI_Opponent type string default <empty>
1259323243.923 Engine->Adapter: option name UCI_EngineAbout type string default www.rybkachess.com
1259323243.924 Engine->Adapter: option name Outlook type combo default Neutral var Very Pessimistic var Slightly Pessimistic var Neutral var Slightly Optimistic var Very Optimistic var Ultra Optimistic
1259323243.924 Engine->Adapter: option name Rate Of Play type combo default Normal var Ultraslow var Slow var Normal var Fast var Ultrafast
1259323243.924 Engine->Adapter: option name Time Usage type combo default Varied var Constant var Varied
1259323243.924 Engine->Adapter: option name Emergency Time Buffer type combo default Medium var Small var Medium var Large
1259323243.924 Engine->Adapter: uciok
1259323243.925 POLYGLOT INI file "/home/vdbergh/.polyglot/Rybka_2.2n2_mp.ini"
1259323243.925 POLYGLOT Unable to open /home/vdbergh/.polyglot/Rybka_2.2n2_mp.ini
1259323243.925 POLYGLOG OPTIONS
1259323243.925 POLYGLOT [PolyGlot] EngineCommand="./Rybka2Linux"
1259323243.925 POLYGLOT [PolyGlot] Log="true"
1259323243.925 POLYGLOT Setting PolyGlot option EngineCommand="./Rybka2Linux"
1259323243.925 POLYGLOT Setting PolyGlot option Log="true"
1259323243.925 POLYGLOT *** SWITCHING LOGFILE ***
1259323243.925 POLYGLOT NEW LOGFILE "polyglot.log"
1259323243.925 POLYGLOT *** LOGFILE OPENED ***
1259323243.925 GUI->Adapter: xboard
1259323243.925 GUI->Adapter: protover 2
1259323243.925 Adapter->GUI: feature done=0
1259323243.925 Adapter->GUI: feature analyze=1
1259323243.925 Adapter->GUI: feature colors=0
1259323243.925 Adapter->GUI: feature draw=1
1259323243.925 Adapter->GUI: feature ics=1
1259323243.925 Adapter->GUI: feature myname="Rybka 2.2n2 mp"
1259323243.925 Adapter->GUI: feature name=1
1259323243.925 Adapter->GUI: feature pause=0
1259323243.925 Adapter->GUI: feature ping=1
1259323243.925 Adapter->GUI: feature playother=1
1259323243.925 Adapter->GUI: feature reuse=1
1259323243.925 Adapter->GUI: feature san=0
1259323243.925 Adapter->GUI: feature setboard=1
1259323243.925 Adapter->GUI: feature sigint=0
1259323243.925 Adapter->GUI: feature sigterm=0
1259323243.925 Adapter->GUI: feature time=1
1259323243.925 Adapter->GUI: feature usermove=1
1259323243.925 Adapter->GUI: feature memory=1
1259323243.925 Adapter->GUI: feature smp=1
1259323243.925 Adapter->GUI: feature egt="nalimov"
1259323243.925 Adapter->GUI: feature variants="normal"
1259323243.925 POLYGLOT Decapitalizing "Draw" in option "Display Draw Scores"
1259323243.925 Adapter->GUI: feature option="Display draw Scores -check 0"
1259323243.925 Adapter->GUI: feature option="Engine Priority -combo Normal /// *NormalAndLow /// Low"
1259323243.925 Adapter->GUI: feature option="Display PV Tips -check 0"
1259323243.925 Adapter->GUI: feature option="CPU Usage -spin 100 1 100"
1259323243.925 Adapter->GUI: feature option="Win Percentage to Hash Usage -check 0"
1259323243.925 Adapter->GUI: feature option="Display Current Move -check 1"
1259323243.925 Adapter->GUI: feature option="Compensate Lost Time -check 1"
1259323243.925 Adapter->GUI: feature option="NalimovCache -spin 1 1 256"
1259323243.925 Adapter->GUI: feature option="NalimovUsage -combo Frequently /// Normally /// Rarely /// *Never"
1259323243.925 Adapter->GUI: feature option="Preserve Analysis -check 0"
1259323243.925 Adapter->GUI: feature option="Clear Hash -button"
1259323243.925 Adapter->GUI: feature option="MultiPV -spin 1 1 100"
1259323243.925 Adapter->GUI: feature option="UCI_LimitStrength -check 0"
1259323243.925 Adapter->GUI: feature option="UCI_Elo -spin 1200 1200 2400"
1259323243.925 Adapter->GUI: feature option="Server Buffer -check 0"
1259323243.925 Adapter->GUI: feature option="UCI_EngineAbout -string www.rybkachess.com"
1259323243.925 Adapter->GUI: feature option="Outlook -combo Very Pessimistic /// Slightly Pessimistic /// *Neutral /// Slightly Optimistic /// Very Optimistic /// Ultra Optimistic"
1259323243.925 Adapter->GUI: feature option="Rate Of Play -combo Ultraslow /// Slow /// *Normal /// Fast /// Ultrafast"
1259323243.925 Adapter->GUI: feature option="Time Usage -combo Constant /// *Varied"
1259323243.925 Adapter->GUI: feature option="Emergency Time Buffer -combo Small /// *Medium /// Large"
1259323243.925 Adapter->GUI: feature option="Polyglot SettingsFile -file /home/vdbergh/.polyglot/Rybka_2.2n2_mp.ini"
1259323243.925 Adapter->GUI: feature option="Polyglot Log -check 1"
1259323243.925 Adapter->GUI: feature option="Polyglot LogFile -file polyglot.log"
1259323243.925 Adapter->GUI: feature option="Polyglot Resign -check 0"
1259323243.925 Adapter->GUI: feature option="Polyglot ResignMoves -spin 3 0 10000"
1259323243.925 Adapter->GUI: feature option="Polyglot ResignScore -spin 600 0 10000"
1259323243.925 Adapter->GUI: feature option="Polyglot Book -check 0"
1259323243.925 Adapter->GUI: feature option="Polyglot BookFile -file book.bin"
1259323243.925 Adapter->GUI: feature option="Polyglot BookRandom -check 1"
1259323243.925 Adapter->GUI: feature option="Polyglot BookDepth -spin 256 0 256"
1259323243.925 Adapter->GUI: feature option="Polyglot Save -save"
1259323243.925 Adapter->GUI: feature done=1
1259323243.928 GUI->Adapter: accepted done
1259323243.928 GUI->Adapter: accepted analyze
1259323243.928 GUI->Adapter: accepted colors
1259323243.928 GUI->Adapter: accepted draw
1259323243.928 GUI->Adapter: accepted ics
1259323243.928 GUI->Adapter: accepted myname
1259323243.928 GUI->Adapter: accepted name
1259323243.928 GUI->Adapter: accepted pause
1259323243.928 GUI->Adapter: accepted ping
1259323243.928 GUI->Adapter: accepted playother
1259323243.928 GUI->Adapter: accepted reuse
1259323243.928 GUI->Adapter: accepted san
1259323243.928 GUI->Adapter: accepted setboard
1259323243.928 GUI->Adapter: accepted sigint
1259323243.928 GUI->Adapter: accepted sigterm
1259323243.928 GUI->Adapter: accepted time
1259323243.928 GUI->Adapter: accepted usermove
1259323243.928 GUI->Adapter: accepted memory
1259323243.928 GUI->Adapter: accepted smp
1259323243.928 GUI->Adapter: accepted egt
1259323243.928 GUI->Adapter: accepted variants
1259323243.928 GUI->Adapter: accepted option
1259323243.928 GUI->Adapter: accepted option
1259323243.928 GUI->Adapter: accepted option
1259323243.928 GUI->Adapter: accepted option
1259323243.928 GUI->Adapter: accepted option
1259323243.928 GUI->Adapter: accepted option
1259323243.928 GUI->Adapter: accepted option
1259323243.928 GUI->Adapter: accepted option
1259323243.928 GUI->Adapter: accepted option
1259323243.928 GUI->Adapter: accepted option
1259323243.928 GUI->Adapter: accepted option
1259323243.928 GUI->Adapter: accepted option
1259323243.928 GUI->Adapter: accepted option
1259323243.928 GUI->Adapter: accepted option
1259323243.928 GUI->Adapter: accepted option
1259323243.928 GUI->Adapter: accepted option
1259323243.928 GUI->Adapter: accepted option
1259323243.928 GUI->Adapter: accepted option
1259323243.928 GUI->Adapter: accepted option
1259323243.928 GUI->Adapter: accepted option
1259323243.928 GUI->Adapter: accepted option
1259323243.928 GUI->Adapter: accepted option
1259323243.928 GUI->Adapter: accepted option
1259323243.928 GUI->Adapter: accepted option
1259323243.928 GUI->Adapter: accepted option
1259323243.929 GUI->Adapter: accepted option
1259323243.929 GUI->Adapter: accepted option
1259323243.929 GUI->Adapter: accepted option
1259323243.929 GUI->Adapter: accepted option
1259323243.929 GUI->Adapter: accepted option
1259323243.929 GUI->Adapter: accepted option
1259323243.929 GUI->Adapter: accepted done
1259323243.929 GUI->Adapter: memory 68
1259323243.929 POLYGLOT setting the amount of memory to 68Mb
1259323243.929 POLYGLOT Nalimov Cache is 1Mb
1259323243.929 Adapter->Engine: setoption name Hash value 67
1259323243.929 GUI->Adapter: cores 1
1259323243.929 POLYGLOT setting the number of cores to 1
1259323243.929 Adapter->Engine: setoption name Max CPUs value 1
1259323243.929 GUI->Adapter: new
1259323243.929 Adapter->Engine: isready
1259323243.929 POLYGLOT NEW GAME
1259323243.930 POLYGLOT WAIT
1259323243.930 Adapter->Engine: ucinewgame
1259323243.930 GUI->Adapter: random
1259323243.930 GUI->Adapter: ics -
1259323243.930 GUI->Adapter: level 40 5 0
1259323243.930 GUI->Adapter: post
1259323243.930 GUI->Adapter: hard
1259323243.930 POLYGLOT WAIT
1259323243.930 GUI->Adapter: ping 1
1259323243.930 Adapter->GUI: pong 1
1259323243.989 Engine->Adapter: EOF
1259323243.989 POLYGLOT *** Mainloop has ended ***
1259323243.989 Adapter->Engine: EOF
1259323243.989 POLYGLOT Calling exit


.

Re: Rybka3Linux

PostPosted: 27 Nov 2009, 13:28
by Michel
I think I understand what causes the problem.

When you you set the hash size the resulting shared memory allocation may fail. So you should
reserve enough shared memory in advance

I wonder if there is a sensible way for Polyglot to detect a crashing engine. It must be
possible since the shell can do it (see the "Segmentation fault" message) (EDIT: yes it
is possible. It seems I should check the status argument of the wait system call).

Code: Select all
memory 680

Shared memory allocation of 536870960 bytes failed; the program will
probably crash very soon. (shmget: Invalid argument)

Usually, this is the sign of too little shared memory allocated
on the system. Try the following command as root and see if it
helps:

  echo 536879152 > /proc/sys/kernel/shmmax

Segmentation fault


Re: Rybka3Linux

PostPosted: 27 Nov 2009, 14:09
by Michel
Actually it turns out that this is already documented. See here

http://rybkachess.com/index.php?auswahl=Linux

In particular the paragraph

One last trick

If you want to use more than 32 MB for the Hash tables, open gedit with root rights

sudo gedit

and add the line

kernel.shmmax = 268443648

to the file /etc/sysctl.conf.

Re: Rybka3Linux

PostPosted: 27 Nov 2009, 14:16
by StormSergey
Log a file to remove it will not turn out as R3l it is not loaded in xboard and naturally does not display parametres uci.Я started R3l through Shredder Classic 4 Linux but to work R3l there only with a size Hash 32 mb.Мне the problem in it will seems as in polyglot_1st.ini the size is automatically exposed Hash = 64

Re: Rybka3Linux

PostPosted: 27 Nov 2009, 15:09
by Michel
Yes of course it is impossible to open the engine configuration dialog since the engine crashes before that. Sorry for
this bad advice.

There are alternative ways to get a log but it is not necessary since I think the issue is solved. Just increase the maximum amount of shared memory as indicated in the above posts. Then there is no problem running 64 bit Rybka in xboard.

Re: Rybka3Linux

PostPosted: 27 Nov 2009, 16:03
by Teemu Pudas
What is the command PolyGlot uses to start Rybka? In Windows,

cd Rybkadir
RybkaMultiCPU.exe

Crashes because Rybka needs argv[0] to be a path (even a relative path is okay).

Re: Rybka3Linux

PostPosted: 27 Nov 2009, 16:15
by Michel
In my case I use a script Rybka2Linux which contains

./microwine-wine-thunk "Rybka v2.2n2.mp.x64.exe"

The issue is that (I think) Rybka uses processes in its mp version. As a result the
hash memory has to be shared. Now apparently Linux imposes a maximum on the size argument
of shmget. This maximum has to be increased before Rybka can use more than 32Mb hash.