I have found a relatively old bug in ChessGUI : a pointer is used before proper initialization.
2 consequences are possible:
- results of games lost on time are flagged as "unknown" in result table
- GUI can shutdown in rare cases.
Till next ChessGUI version, simply replay games lost on time,
or avoid such losses by setting a time overstep margin.
Matthias.
Bug in ChessGUI
Moderator: Ras
-
- Posts: 3245
- Joined: Thu Mar 09, 2006 9:10 am
Bug in ChessGUI
My engine was quite strong till I added knowledge to it.
http://www.chess.hylogic.de
http://www.chess.hylogic.de
-
- Posts: 44651
- Joined: Sun Feb 26, 2006 10:52 am
- Location: Auckland, NZ
Re: Bug in ChessGUI
I must say that in my extensive use of ChessGUI, I haven't come across this bug, so it must be very rare.Matthias Gemuh wrote:I have found a relatively old bug in ChessGUI : a pointer is used before proper initialization.
2 consequences are possible:
- results of games lost on time are flagged as "unknown" in result table
- GUI can shutdown in rare cases.
Till next ChessGUI version, simply replay games lost on time,
or avoid such losses by setting a time overstep margin.
Matthias.
gbanksnz at gmail.com
-
- Posts: 3245
- Joined: Thu Mar 09, 2006 9:10 am
Re: Bug in ChessGUI
Graham Banks wrote:I must say that in my extensive use of ChessGUI, I haven't come across this bug, so it must be very rare.Matthias Gemuh wrote:I have found a relatively old bug in ChessGUI : a pointer is used before proper initialization.
2 consequences are possible:
- results of games lost on time are flagged as "unknown" in result table
- GUI can shutdown in rare cases.
Till next ChessGUI version, simply replay games lost on time,
or avoid such losses by setting a time overstep margin.
Matthias.
Hi Graham,
ChessGUI sometimes plays more than 500 games per day here, so I have had a few shutdowns in the past few months. I thought that it was due to lack of RAM for my giant 1200-engine tournament.
Cheers,
Matthias.
My engine was quite strong till I added knowledge to it.
http://www.chess.hylogic.de
http://www.chess.hylogic.de
-
- Posts: 44651
- Joined: Sun Feb 26, 2006 10:52 am
- Location: Auckland, NZ
Re: Bug in ChessGUI
It's good that you're actively seeking out issues and fixing them.Matthias Gemuh wrote:Graham Banks wrote:I must say that in my extensive use of ChessGUI, I haven't come across this bug, so it must be very rare.Matthias Gemuh wrote:I have found a relatively old bug in ChessGUI : a pointer is used before proper initialization.
2 consequences are possible:
- results of games lost on time are flagged as "unknown" in result table
- GUI can shutdown in rare cases.
Till next ChessGUI version, simply replay games lost on time,
or avoid such losses by setting a time overstep margin.
Matthias.
Hi Graham,
ChessGUI sometimes plays more than 500 games per day here, so I have had a few shutdowns in the past few months. I thought that it was due to lack of RAM for my giant 1200-engine tournament.
Cheers,
Matthias.

Cheers, Graham.
gbanksnz at gmail.com
-
- Posts: 3245
- Joined: Thu Mar 09, 2006 9:10 am
Re: Bug in ChessGUI
Matthias Gemuh wrote:I have found a relatively old bug in ChessGUI : a pointer is used before proper initialization.
2 consequences are possible:
- results of games lost on time are flagged as "unknown" in result table
- GUI can shutdown in rare cases.
Till next ChessGUI version, simply replay games lost on time,
or avoid such losses by setting a time overstep margin.
Matthias.
This link will be valid only till tomorrow evening:
http://www.hugedrive.com/published/WG/s ... =-5d300fe1
it's a current bugfixed ChessGUI.exe !
Official next ChessGUI package shall follow, after a long test.
Matthias.
My engine was quite strong till I added knowledge to it.
http://www.chess.hylogic.de
http://www.chess.hylogic.de
-
- Posts: 1056
- Joined: Fri Mar 10, 2006 6:07 am
- Location: Basque Country (Spain)
Re: Bug in ChessGUI
I'm playing games without problems, I think I've played 700 games without a crash or loss of time with games of 1 minute and games 1 minute and 1 second of incr and games 40 moves en 1 minute (Now I check 32 times more if time is up).
In a game there is a loss of time for danasah, but really it is not, in the last move danasah capture a piece and both players remain with the king and bishop, the bishop is the same color, danasah sends the result draw to chessGUI, but the program continues to play and move a piece, then danasah not play and lost in time. ChessGUI then reviews the results and gives draw, but should not indicate the termination time.
In a endgamel of kings and bishops of the same color can be claimed draw.
Another little problem, sometimes when I go to play a tournament, I go to the Game menu, Engine Tournament and select Normal Chess and do nothing, I have to repeat this a second time and it works, it happens to someone else?
Pedro
In a game there is a loss of time for danasah, but really it is not, in the last move danasah capture a piece and both players remain with the king and bishop, the bishop is the same color, danasah sends the result draw to chessGUI, but the program continues to play and move a piece, then danasah not play and lost in time. ChessGUI then reviews the results and gives draw, but should not indicate the termination time.
In a endgamel of kings and bishops of the same color can be claimed draw.
Another little problem, sometimes when I go to play a tournament, I go to the Game menu, Engine Tournament and select Normal Chess and do nothing, I have to repeat this a second time and it works, it happens to someone else?
Pedro
-
- Posts: 1056
- Joined: Fri Mar 10, 2006 6:07 am
- Location: Basque Country (Spain)
Re: Bug in ChessGUI
==========================================================================================================================
Eng2 (danasah416) <- 4 -65 0 2427 f8f7 c5b6 c7b6 b2a3 b7a6
GetWB_InfoValues() threw a non-fatal exception.
Eng2 (danasah416) <- 5 -67 0 4762 f8f7 b2a3 b6b5 a3b2 f7g7
Eng2 (danasah416) <- 6 -66 1 16383 f8f7 g2f1 b7a6 c5c6 d7c8 f1e2 a6e2 e1e2
Eng2 (danasah416) <- 7 -66 4 32612 f8f7 b2a3 d7c6 d1c1 b7a6 c2d2 f7g7 c5b6 c6b6
Eng2 (danasah416) <- 8 -65 6 50940 f8f7 b2a3 d7c6 e1e2 b7a6 c5b6 c6b6 a3c5 a6e2 c5b6 e2d1
Eng2 (danasah416) <- 9 -65 10 77424 f8f7 b2a3 d7c6 e1e2 b7a6 c5b6 c6b6 a3c5 a6e2 c5b6 e2d1
Eng2 (danasah416) <- 10 -65 21 155015 f8f7 b2a3 d7c6 e1e2 b7a6 c5b6 c6b6 a3c5 a6e2 c5b6 e2d1
Eng2 (danasah416) <- 11 -73 176 1097609 f8f7 b2c1 f7g7 g2f1 a8c8 c1f4 c8f8 c2c3 h7h6 d1d2 b6c5 c3a5 c5d4 d2d4
Eng2 (danasah416) <- Pipe02Time 0000000995428453
Exact move time for danasah416
Eng2 (danasah416) <- move f8f7
Cancelling GameMoveTimerEvent() for danasah416 at 0000000995428453.
==========================================================================================================================
what is GetWB_InfoValues() threw a non-fatal exception?
Eng2 (danasah416) <- 4 -65 0 2427 f8f7 c5b6 c7b6 b2a3 b7a6
GetWB_InfoValues() threw a non-fatal exception.
Eng2 (danasah416) <- 5 -67 0 4762 f8f7 b2a3 b6b5 a3b2 f7g7
Eng2 (danasah416) <- 6 -66 1 16383 f8f7 g2f1 b7a6 c5c6 d7c8 f1e2 a6e2 e1e2
Eng2 (danasah416) <- 7 -66 4 32612 f8f7 b2a3 d7c6 d1c1 b7a6 c2d2 f7g7 c5b6 c6b6
Eng2 (danasah416) <- 8 -65 6 50940 f8f7 b2a3 d7c6 e1e2 b7a6 c5b6 c6b6 a3c5 a6e2 c5b6 e2d1
Eng2 (danasah416) <- 9 -65 10 77424 f8f7 b2a3 d7c6 e1e2 b7a6 c5b6 c6b6 a3c5 a6e2 c5b6 e2d1
Eng2 (danasah416) <- 10 -65 21 155015 f8f7 b2a3 d7c6 e1e2 b7a6 c5b6 c6b6 a3c5 a6e2 c5b6 e2d1
Eng2 (danasah416) <- 11 -73 176 1097609 f8f7 b2c1 f7g7 g2f1 a8c8 c1f4 c8f8 c2c3 h7h6 d1d2 b6c5 c3a5 c5d4 d2d4
Eng2 (danasah416) <- Pipe02Time 0000000995428453
Exact move time for danasah416
Eng2 (danasah416) <- move f8f7
Cancelling GameMoveTimerEvent() for danasah416 at 0000000995428453.
==========================================================================================================================
what is GetWB_InfoValues() threw a non-fatal exception?
-
- Posts: 44651
- Joined: Sun Feb 26, 2006 10:52 am
- Location: Auckland, NZ
Re: Bug in ChessGUI
Yes, this happens here also.pedrox wrote: Another little problem, sometimes when I go to play a tournament, I go to the Game menu, Engine Tournament and select Normal Chess and do nothing, I have to repeat this a second time and it works, it happens to someone else?
Pedro
gbanksnz at gmail.com
-
- Posts: 3245
- Joined: Thu Mar 09, 2006 9:10 am
Re: Bug in ChessGUI
pedrox wrote:I'm playing games without problems, I think I've played 700 games without a crash or loss of time with games of 1 minute and games 1 minute and 1 second of incr and games 40 moves en 1 minute (Now I check 32 times more if time is up).
In a game there is a loss of time for danasah, but really it is not, in the last move danasah capture a piece and both players remain with the king and bishop, the bishop is the same color, danasah sends the result draw to chessGUI, but the program continues to play and move a piece, then danasah not play and lost in time. ChessGUI then reviews the results and gives draw, but should not indicate the termination time.
In a endgamel of kings and bishops of the same color can be claimed draw.
Another little problem, sometimes when I go to play a tournament, I go to the Game menu, Engine Tournament and select Normal Chess and do nothing, I have to repeat this a second time and it works, it happens to someone else?
Pedro
Can you test DanaSah 3.97b in FRC at "40moves/1min repeating (300 games) in ChessGUI ?
Make it as gauntlet and change start positions randomly per game and alternate colours.
Maybe the rare crash is related to FRC.
If you have a ChessGUI debug of the draw, send it to me.
ChessGUI basically ignores all game results from engines except resign.
I know that the WB protocol behaves differently. Maybe I shall provide an option to behave like Winboard.
Starting a new tournament twice before it works is a bug I am aware of.
When I have enough time, I shall trace and fix it.
Matthias.
My engine was quite strong till I added knowledge to it.
http://www.chess.hylogic.de
http://www.chess.hylogic.de
-
- Posts: 3245
- Joined: Thu Mar 09, 2006 9:10 am
Re: Bug in ChessGUI
pedrox wrote:==========================================================================================================================
Eng2 (danasah416) <- 4 -65 0 2427 f8f7 c5b6 c7b6 b2a3 b7a6
GetWB_InfoValues() threw a non-fatal exception.
Eng2 (danasah416) <- 5 -67 0 4762 f8f7 b2a3 b6b5 a3b2 f7g7
Eng2 (danasah416) <- 6 -66 1 16383 f8f7 g2f1 b7a6 c5c6 d7c8 f1e2 a6e2 e1e2
Eng2 (danasah416) <- Pipe02Time 0000000995428453
Exact move time for danasah416
Eng2 (danasah416) <- move f8f7
Cancelling GameMoveTimerEvent() for danasah416 at 0000000995428453.
==========================================================================================================================
what is GetWB_InfoValues() threw a non-fatal exception?
I messed things up

The non-fatal exception is a divide by 0, if move info came from engine within 1 millisec of thinking. The result of the failed divide by 0 is only used in drawing graphics and affects only GUI. Bug will be fixed.
Matthias.
My engine was quite strong till I added knowledge to it.
http://www.chess.hylogic.de
http://www.chess.hylogic.de