Page 1 of 1

engine crashe -- global hash setting

PostPosted: 19 Aug 2016, 19:05
by Eric Mullins
I set up xboard to use stockfish, and global hash of 2048 (2 gig).

Trying to add engines like fruit, they crashed. it's because they don't support that hash size. Perhaps xboard should notice the maximum and never try to set more than that?

Re: engine crashe -- global hash setting

PostPosted: 21 Aug 2016, 08:16
by H.G.Muller
In WB protocol the engine doesnot specify a maximum that could be noticed, and the setting sent to the engine just defines a maximum that the engine can always reduce as it sees fit. So this must be a Polyglot problem.

In the Polyglot source (xboard2uci.c), however, I find the lines

Code: Select all
      opt=option_find(Uci->option,"Hash");
      if(opt && real_memory > atoi(opt->max)) real_memory = atoi(opt->max); // [HGM] top off

So this should already be taken care of.

Re: engine crashe -- global hash setting

PostPosted: 21 Aug 2016, 18:39
by Eric Mullins
I don't see that code in my polyglot version. So it looks like I"m experiencing a bug you fixed some time ago.

Didin't realize xboard couldn't know the max size. Yeah, sounds like a polyglot issue.

Re: engine crashe -- global hash setting

PostPosted: 21 Aug 2016, 21:57
by H.G.Muller
This is from version 2.0.3, which I currently bundle with WinBoard.