pnprog / goreviewpartner

A tool to help analyse and review your game of go (weiqi, baduk) using strong bots.
GNU General Public License v3.0
283 stars 65 forks source link

Against Leela Zero: GTP Error #59

Open lebigot opened 6 years ago

lebigot commented 6 years ago

When using Leela Zero revision 9e903ed, I am regularly getting the following blocking error:

========= variation                                                                                                                                                                                                                                           [99/421]
0
Encoding for /Users/lebigot/Library/Mobile Documents/com~apple~CloudDocs/text.sgf is utf-8
Converting from utf-8 to UTF-8
keeping only variation 0
size of the tree: 19
Setting new komi
Bot starting procedure started with profile = slow
        bot name: LeelaZero
        bot gtp name Leela Zero
Starting LeelaZero...
Leela Zero working directory: /Users/lebigot/Downloads/leela-zero-master/src/
Checking Leela Zero stderr to check for OpenCL SGEMM tuner running
Could not find out, abandoning
LeelaZero started
LeelaZero identification through GTP...
LeelaZero identified itself properly
Checking version through GTP...
Version: 0.15
Setting goban size as 19x19
Clearing the board
Checking for existing stones or handicap stones on the board
The SGF does not indicate handicap stone
The SGF indicates 0 occupied point(s)
Setting komi at 7.5
LeelaZero initialization completed
Setting time per move
Saving RSGF file /Users/lebigot/Library/Mobile Documents/com~apple~CloudDocs/text.rsgf
Stop_At_First_Resign is OFF

Adding new popup
==============
Totally 3 popups
move 1
leela Zero play black
Removing popup
Totally 2 popups left
leaving consume_stderr thread
Exception in thread Thread-14:
Traceback (most recent call last):
  File "/Users/lebigot/anaconda/envs/py2/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/Users/lebigot/anaconda/envs/py2/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/Users/lebigot/Downloads/goreviewpartner-master/toolbox.py", line 916, in run_all_analysis
    answer=self.run_analysis(self.current_move)
  File "/Users/lebigot/Downloads/goreviewpartner-master/leela_zero_analysis.py", line 36, in run_analysis
    answer=leela_zero.play_black()
  File "/Users/lebigot/Downloads/goreviewpartner-master/gtp.py", line 115, in play_black
    raise GtpException("GtpException in genmove_black()\nanswer='"+answer+"'\n"+str(e))
GtpException: GtpException in genmove_black()
answer=''
list index out of range

RunAnalysis beeing closed
killing Leela Zero
Now closing

Configuration: macOS 10.13.4, Python 2.7.14, Leela Zero revision 9e903ed, GoReviewPartner revision e77c855.

pnprog commented 5 years ago

Hi, Sorry for (very late) reply! This most probably means Leela Zero program stops (crashes) when trying to come out with a move. Could be something like a GPU/driver issue. You could try to run the CPU only version of Leela Zero.