Variations bug

Discussions about the WinBoard protocol. Here you can also report bugs and request new features.

Moderators: hgm, Andres Valverde

Variations bug

Postby vsoljan » 25 Dec 2010, 11:48

When I go through some variations (Edit game mode) to the end and than back I get 'Illegal move "SOME_MOVE" (rejected by first chess program)' message and variation gets truncated after that move.

You can try to reproduce this, copy/paste this pgn data into Winboard:

1. d4 Nf6 2. c4 e6 3. Nc3 Bb4 4. a3 (4. e3 O-O 5. Bd3 c5 6. a3
Bxc3+ 7. bxc3 Nc6 8. Ne2 b6 9. e4 Ne8 10. O-O Ba6
11. f4 f5 12. Ng3 g6 $1 13. Be3 (13. exf5 exf5 14. dxc5 bxc5 15. Be3 Qa5 $11 (
15... d6 $2 16. Bxf5 gxf5 17. Qd5+)) 13... Nd6 14. exf5 $5 (14. dxc5 Nxc4 15.
Bxc4 Bxc4 16. Rf2 b5 $11) 14... Nxc4 $1 15. Bxc4 Bxc4 16. fxg6 Bxf1 17. Qh5 Qe7
18. Rxf1 hxg6 19. Qxg6+ Qg7 20. Qd3 cxd4 21. cxd4 Qh7 $1 22. Qb5 a6 $1 $15
23. Qxb6 $2 Qd3 $17) 4... Bxc3+ 5. bxc3
c5 6. e3 (6. e4 Qa5 (6... Nxe4 7. Qg4) 7.
e5 Ne4 8. Bd2 Nc6 9. Ne2 d6 10. exd6 O-O 11. Ng3 (11. f3) 11... Nxd2 12. Qxd2 Rd8 13. Ne4 cxd4 14. cxd4 Qxd2+ 15. Kxd2
f5 16. Ng5 Rxd6 $17) 6... Nc6 7. Bd3 O-O 8. Ne2 b6 9. e4 Ne8 0-1

Than on first comment window choose e3 variation and go to its end. When you get to end of variation go back one move and you should get error message and that last move will be deleted. If you than go forward and back again each last move get error message and gets truncated.

Winboard I use is master build 20101201 (from winboard 4.5.0 beta download)
vsoljan
 
Posts: 24
Joined: 28 Sep 2009, 14:15

Re: Variations bug

Postby H.G.Muller » 01 Jan 2011, 20:49

Thanks for finding this elusive, but awful bug. Turns out WB stores the move list including linefeeds at the end of every move. But when parsing the variation, I just store the move proper. But normally you would not notice, because the linefeeds are still in the table from the moves of the main line. Only in caseslike this one, where the variation extends beyond the game end (and WinBoard has not yet been used for any longer game) will it manifest itself. The moes that have no linefeed with them will all be concatenated to a single line when sent to the engine, which wthe engine of course will not like much.

It is fixed now in the http://hgm.nubati.net/WinBoard-4.5.0.exe beta installer download
User avatar
H.G.Muller
 
Posts: 3453
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL


Return to WinBoard development and bugfixing

Who is online

Users browsing this forum: No registered users and 2 guests