Hi everyone,
Not sure if this is the right place, it will be a bit technical...
I'm working on a small analysis project with leela zero. Unfortunately I'm stuck.
In my application (java) I create a thread for leela zero and have it analyze a game by sending it GTP commands and parsing the answers.
So far so good, everything works as intended but then after a few moves, leela zero just stops answering my GTP commands. The process is still running but seems unresponsive. No errors/exceptions either. I don't really know how to proceed. Leela will be sending analysis data (after "lz-analyze" command) and when I send the next move the answers just stop coming even though everything was working fine before. This happens usually at move 4 of the game I want to analyze but can happen a bit before, too.
Has anyone observed the described behavior before?
I could really use a hint here.
Thx lovely people!
Communication with leela zero
-
Kirby
- Honinbo
- Posts: 9553
- Joined: Wed Feb 24, 2010 6:04 pm
- GD Posts: 0
- KGS: Kirby
- Tygem: 커비라고해
- Has thanked: 1583 times
- Been thanked: 1707 times
Re: Communication with leela zero
Maybe you could compare what you're doing to what Lizzie does. Sounds like you're even using Java.
I didn't look much, but you could start here?
https://github.com/featurecat/lizzie/bl ... .java#L467
I didn't look much, but you could start here?
https://github.com/featurecat/lizzie/bl ... .java#L467
be immersed
-
golem7
- Dies with sente
- Posts: 102
- Joined: Wed Mar 09, 2011 6:51 pm
- Rank: kgs 2d
- GD Posts: 0
- Has thanked: 13 times
- Been thanked: 33 times
Re: Communication with leela zero
Thx a lot Kirby but I've read that file over and over again already 
I've even tried to use their GTP approach but it doesn't really help. As I said it works fine - and then stops working.
Might be some buffering problem but it's hard to debug.
I just thought in case it's a bug from leela zero then other people might have encountered it before.
I've even tried to use their GTP approach but it doesn't really help. As I said it works fine - and then stops working.
Might be some buffering problem but it's hard to debug.
I just thought in case it's a bug from leela zero then other people might have encountered it before.
-
dfan
- Gosei
- Posts: 1598
- Joined: Wed Apr 21, 2010 8:49 am
- Rank: AGA 2k Fox 3d
- GD Posts: 61
- KGS: dfan
- Has thanked: 891 times
- Been thanked: 534 times
- Contact:
Re: Communication with leela zero
I would try bringing this up on the Leela Zero github issues page if you haven't already.