[Computer-go] new kgsGtp client does not work for me, tournament soon....

Petr Baudis pasky at ucw.cz
Sat Jul 25 01:49:22 PDT 2015


  Hi!

  Have you ever solved the following problem with kgsGtp-3.5.20?

On Sun, Nov 16, 2014 at 10:04:56AM +0100, Detlef Schmicker wrote:
> kgs has a new client kgsGtp-3.5.20, but I get AM FEINSTEN: Got
> successful response to command "time_settings 900 30 10": = 
> java.lang.NullPointerException
> 	at com.gokgs.client.gtp.y.a(kgsgtp:22)
> 	at com.gokgs.client.gtp.z.a(kgsgtp:58)
> 	at org.igoweb.igoweb.client.gtp.aT.a(kgsgtp:107)
> 	at org.igoweb.igoweb.client.gtp.aM.b(kgsgtp:85)
> 	at org.igoweb.igoweb.client.gtp.aa.a(kgsgtp:246)
> 	at org.igoweb.igoweb.client.gtp.c.a(kgsgtp:395)
> 	at org.igoweb.igoweb.client.gtp.c.a(kgsgtp:378)
> 	at org.igoweb.igoweb.client.gtp.c.d(kgsgtp:368)
> 	at org.igoweb.igoweb.client.gtp.ad.a(kgsgtp:164)
> 	at org.igoweb.igoweb.client.gtp.c.a(kgsgtp:158)
> 	at org.igoweb.igoweb.client.gtp.al.a(kgsgtp:48)
> 	at org.igoweb.igoweb.client.gtp.am.a(kgsgtp:431)
> 	at org.igoweb.igoweb.client.gtp.aq.run(kgsgtp:298)
> 	at org.igoweb.igoweb.client.gtp.at.a(kgsgtp:18)
> 	at org.igoweb.igoweb.client.gtp.au.run(kgsgtp:97)
> 	at java.lang.Thread.run(Thread.java:745)
> Nov 16, 2014 10:02:23 AM com.gokgs.client.gtp.GtpClient e
> SCHWERWIEGEND: Fatal internal error
> java.lang.NullPointerException
> 	at com.gokgs.client.gtp.y.a(kgsgtp:22)
> 	at com.gokgs.client.gtp.z.a(kgsgtp:58)
> 	at org.igoweb.igoweb.client.gtp.aT.a(kgsgtp:107)
> 	at org.igoweb.igoweb.client.gtp.aM.b(kgsgtp:85)
> 	at org.igoweb.igoweb.client.gtp.aa.a(kgsgtp:246)
> 	at org.igoweb.igoweb.client.gtp.c.a(kgsgtp:395)
> 	at org.igoweb.igoweb.client.gtp.c.a(kgsgtp:378)
> 	at org.igoweb.igoweb.client.gtp.c.d(kgsgtp:368)
> 	at org.igoweb.igoweb.client.gtp.ad.a(kgsgtp:164)
> 	at org.igoweb.igoweb.client.gtp.c.a(kgsgtp:158)
> 	at org.igoweb.igoweb.client.gtp.al.a(kgsgtp:48)
> 	at org.igoweb.igoweb.client.gtp.am.a(kgsgtp:431)
> 	at org.igoweb.igoweb.client.gtp.aq.run(kgsgtp:298)
> 	at org.igoweb.igoweb.client.gtp.at.a(kgsgtp:18)
> 	at org.igoweb.igoweb.client.gtp.au.run(kgsgtp:97)
> 	at java.lang.Thread.run(Thread.java:745)
> 
> Nov 16, 2014 10:02:23 AM com.gokgs.client.gtp.GtpClient e
> FEIN: Normal disconnection from server.

  Myself, I get an endless loop of these:

> VII 24, 2015 9:39:04 ODP. com.gokgs.client.gtp.GtpClient main
> FINE: KGS GTP Client v3.5.20 starting up
> ...
> VII 25, 2015 9:58:49 DOP. com.gokgs.client.gtp.GtpClient d
> FINEST: Command queued for sending to engine: boardsize 19
> VII 25, 2015 9:58:49 DOP. com.gokgs.client.gtp.GtpClient d
> FINEST: Command queued for sending to engine: clear_board
> VII 25, 2015 9:58:49 DOP. com.gokgs.client.gtp.GtpClient d
> FINEST: Command queued for sending to engine: komi 7.5
> VII 25, 2015 9:58:49 DOP. com.gokgs.client.gtp.GtpClient d
> FINEST: Command queued for sending to engine: kgs-time_settings canadian 3600 30 10
> VII 25, 2015 9:58:49 DOP. com.gokgs.client.gtp.GtpClient d
> FINEST: Got successful response to command "kgs-rules chinese": = 
> IN: boardsize 19
> VII 25, 2015 9:58:49 DOP. com.gokgs.client.gtp.GtpClient d
> FINEST: Queued command sent to engine: boardsize 19
> Loading opening fbook book.dat...
> VII 25, 2015 9:58:49 DOP. com.gokgs.client.gtp.GtpClient d
> FINEST: Got successful response to command "boardsize 19": = 
> VII 25, 2015 9:58:49 DOP. com.gokgs.client.gtp.GtpClient d
> FINEST: Queued command sent to engine: clear_board
> Joseki dictionary for board size 19 loaded.
> java.lang.NullPointerException
> 	at com.gokgs.client.gtp.y.a(kgsgtp:22)
> 	at com.gokgs.client.gtp.z.a(kgsgtp:58)
> 	at org.igoweb.igoweb.client.gtp.aT.a(kgsgtp:107)
> 	at org.igoweb.igoweb.client.gtp.aM.b(kgsgtp:85)
> 	at org.igoweb.igoweb.client.gtp.aa.a(kgsgtp:246)
> 	at org.igoweb.igoweb.client.gtp.c.a(kgsgtp:395)
> 	at org.igoweb.igoweb.client.gtp.c.a(kgsgtp:378)
> 	at org.igoweb.igoweb.client.gtp.c.d(kgsgtp:368)
> 	at org.igoweb.igoweb.client.gtp.ad.a(kgsgtp:164)
> 	at org.igoweb.igoweb.client.gtp.c.a(kgsgtp:158)
> 	at org.igoweb.igoweb.client.gtp.al.a(kgsgtp:48)
> 	at org.igoweb.igoweb.client.gtp.am.a(kgsgtp:431)
> 	at org.igoweb.igoweb.client.gtp.aq.run(kgsgtp:298)
> 	at org.igoweb.igoweb.client.gtp.at.a(kgsgtp:18)
> 	at org.igoweb.igoweb.client.gtp.au.run(kgsgtp:97)
> 	at java.lang.Thread.run(Thread.java:745)
> VII 25, 2015 9:58:49 DOP. com.gokgs.client.gtp.GtpClient e
> SEVERE: Fatal internal error
> java.lang.NullPointerException
> 	at com.gokgs.client.gtp.y.a(kgsgtp:22)
> 	at com.gokgs.client.gtp.z.a(kgsgtp:58)
> 	at org.igoweb.igoweb.client.gtp.aT.a(kgsgtp:107)
> 	at org.igoweb.igoweb.client.gtp.aM.b(kgsgtp:85)
> 	at org.igoweb.igoweb.client.gtp.aa.a(kgsgtp:246)
> 	at org.igoweb.igoweb.client.gtp.c.a(kgsgtp:395)
> 	at org.igoweb.igoweb.client.gtp.c.a(kgsgtp:378)
> 	at org.igoweb.igoweb.client.gtp.c.d(kgsgtp:368)
> 	at org.igoweb.igoweb.client.gtp.ad.a(kgsgtp:164)
> 	at org.igoweb.igoweb.client.gtp.c.a(kgsgtp:158)
> 	at org.igoweb.igoweb.client.gtp.al.a(kgsgtp:48)
> 	at org.igoweb.igoweb.client.gtp.am.a(kgsgtp:431)
> 	at org.igoweb.igoweb.client.gtp.aq.run(kgsgtp:298)
> 	at org.igoweb.igoweb.client.gtp.at.a(kgsgtp:18)
> 	at org.igoweb.igoweb.client.gtp.au.run(kgsgtp:97)
> 	at java.lang.Thread.run(Thread.java:745)
> 
> java.lang.NullPointerException
> 	at com.gokgs.client.gtp.y.a(kgsgtp:22)
> 	at com.gokgs.client.gtp.z.a(kgsgtp:58)
> 	at org.igoweb.igoweb.client.gtp.aT.a(kgsgtp:107)
> 	at org.igoweb.igoweb.client.gtp.aM.b(kgsgtp:85)
> 	at org.igoweb.igoweb.client.gtp.aa.a(kgsgtp:246)
> 	at org.igoweb.igoweb.client.gtp.c.a(kgsgtp:398)
> 	at org.igoweb.igoweb.client.gtp.c.a(kgsgtp:378)
> 	at org.igoweb.igoweb.client.gtp.c.d(kgsgtp:368)
> 	at org.igoweb.igoweb.client.gtp.ad.a(kgsgtp:164)
> 	at org.igoweb.igoweb.client.gtp.c.a(kgsgtp:158)
> 	at org.igoweb.igoweb.client.gtp.al.a(kgsgtp:48)
> 	at org.igoweb.igoweb.client.gtp.am.a(kgsgtp:431)
> 	at org.igoweb.igoweb.client.gtp.aq.run(kgsgtp:298)
> 	at org.igoweb.igoweb.client.gtp.at.a(kgsgtp:18)
> 	at org.igoweb.igoweb.client.gtp.au.run(kgsgtp:97)
> 	at java.lang.Thread.run(Thread.java:745)
> IN: clear_board
> VII 25, 2015 9:58:49 DOP. com.gokgs.client.gtp.GtpClient d
> FINEST: Got successful response to command "clear_board": = 
> VII 25, 2015 9:58:49 DOP. com.gokgs.client.gtp.GtpClient d
> FINEST: Queued command sent to engine: komi 7.5
> Joseki dictionary for board size 19 loaded.
> IN: komi 7.5
> VII 25, 2015 9:58:49 DOP. com.gokgs.client.gtp.GtpClient d
> FINEST: Got successful response to command "komi 7.5": = 
> IN: kgs-time_settings canadian 3600 30 10
> time_settings 3600 30/10*0
> VII 25, 2015 9:58:49 DOP. com.gokgs.client.gtp.GtpClient d
> FINEST: Queued command sent to engine: kgs-time_settings canadian 3600 30 10
> VII 25, 2015 9:58:49 DOP. com.gokgs.client.gtp.GtpClient d
> FINEST: Got successful response to command "kgs-time_settings canadian 3600 30 10": = 
> VII 25, 2015 9:58:49 DOP. com.gokgs.client.gtp.GtpClient e
> FINE: Normal disconnection from server.
> VII 25, 2015 9:59:00 DOP. com.gokgs.client.gtp.GtpClient main
> FINE: KGS GTP Client v3.5.20 starting up
> ...

  The exception happens in a different thread than bot/KGS communication
as sometimes even a genmove (esp. a quick one) gets through, so the
program ends up slowly playing on.

  I have found that the "unknown channel" warnings printed by kgsGtp are
not fatal, so my workaround is to use kgsGtp-3.5.4 for now.  What did
others do?

-- 
				Petr Baudis
	If you have good ideas, good data and fast computers,
	you can do almost anything. -- Geoffrey Hinton



More information about the Computer-go mailing list