Thanks for this, just found the bug with the two previous mails and tested it. This works...
Aaaargh, it's always that, you are sure that you have checked all, read ten time the specification, checked your log 100 times, and the bug is still on your side... This was used to work perfectly until a few month when I've stoped development. What I don't understand is what I have in mind when I've changed this part of code ? Can't remember have done this, and since I've switched only recently to svn my history doesn't go far enough in past... But thnk for your help all three. Goober is back on cgos now, it will need some time to find good simulation count setting to fit the time setting, until a good time manager is implemented, but I will be able to see the level of goober. Tom PS: I've uploaded the fixed file if anyone interested. On Wed, Aug 06, 2008 at 01:58:35PM +0000, Gunnar Farnebäck wrote: > Thomas Lavergne wrote: >> Hi, >> >> I will have very few free time until end of this year to work on my go >> program, so I have decided to cleanup the code and release it in free >> software sooner that what I've wanted. >> >> So after some work I'e obtained a version of goober with light >> Monte-Carlo, hash-tree exploration with UCT for planing and some >> optimisations like AMAF, benson-life and opening book. >> >> There is still missing things like time handling instead of fixed >> iteration and seki detection, but it works and before releasing it I've >> wanted to retest it on CGOS 9x9 and 13x13. >> >> So I've downloaded last client and made config files for the 2 version >> and run them. All works ok and players go in the waiting queue. But when >> the game start, the engine ask my program to play, wait for response, >> and when it get it, it stop saying my program have crashed. >> This is the output of the client : >> >> [...] >> 14:54:10 S->C username >> 14:54:10 C->S Goober-0.6.0-25k-1 >> 14:54:10 S->C password >> 14:54:10 C->S Hy13yn >> 15:02:07 S->C setup 553666 9 7.5 300000 Goober-0.6.0-25k-1(1200?) >> AverageLib(545) >> 15:02:07 C->E boardsize 9 >> 15:02:07 E->C = >> 15:02:07 C->E clear_board >> 15:02:07 E->C = >> 15:02:07 C->E komi 7.5 >> 15:02:07 E->C = >> 15:02:10 S->C play b H5 300000 >> 15:02:10 C->E play b H5 >> 15:02:10 E->C = >> 15:02:10 S->C genmove w 300000 >> 15:02:10 C->E genmove w >> 15:02:10 E->C =c5 >> 15:02:10 Apparently, engine crashed >> >> But there is no sign of crash in my engine, all goes like if the cgos >> client have interrupt my engine. If I restart the client, it replay this >> start, send correctly the move made by my oponent but re-ask my engine >> to think about the move already send, like if the client have discarded >> the previous response. >> >> I've checked my GTP code and all seems ok, when I use gogui to play >> against it or gogui tools to make tests, all works ok. >> >> I have no time for the moment to investigate this more but does anyone >> of you have encoutered this type of strange things with cgos client ? >> >> Thanks >> >> Tom >> >> PS: The code is not fully ready to be realeased but if some of you want >> to take a look at it, you can download the current version at : >> http://oniros.org/goober.c >> It's only 2000 lines of code with 25% of comments. >> > > Try the attached patch. > > /Gunnar > > --- goober.c.old 2008-08-06 15:54:39.000000000 +0200 > +++ goober.c 2008-08-06 15:54:51.000000000 +0200 > @@ -1645,9 +1645,10 @@ > static void ge_send(const char *msg, ...) { > va_list args; > if (ge_status == false) { > + putchar('='); > if (ge_id != -1) > printf("%d", ge_id); > - putchar('='); > + putchar(' '); > ge_status = true; > } > va_start(args, msg); > _______________________________________________ > computer-go mailing list > [email protected] > http://www.computer-go.org/mailman/listinfo/computer-go/ -- Thomas Lavergne "Entia non sunt multiplicanda praeter necessitatem." (Guillaume d'Ockham) [EMAIL PROTECTED] http://oniros.org _______________________________________________ computer-go mailing list [email protected] http://www.computer-go.org/mailman/listinfo/computer-go/
