TheRealCDay / raptor-chess-interface

Automatically exported from code.google.com/p/raptor-chess-interface
0 stars 0 forks source link

Regular chess runtime-error #553

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
.98 RC8 ran into an error while observing a blitz game:

Error occured! We are trying to make Raptor bug free and we need your help! 
Please take a moment to report this issue by selecting the menu:
  Help -> Report Issue 

Error in ThreadService Runnable.
RuntimeException: Error occured parsing message: 
<12> -----r-- -r-b--k- -pNPp--p -Pn---p- --R---P- -------- --Q----P ----R-K- W 
-1 0 0 0 0 3 31 Diboss meetarora 0 5 0 26 20 97459 53434 42 K/h7-g7 (0:04.703) 
Kg7 0 1 300
fics% 
java.lang.RuntimeException: Error occured parsing message: 
<12> -----r-- -r-b--k- -pNPp--p -Pn---p- --R---P- -------- --Q----P ----R-K- W 
-1 0 0 0 0 3 31 Diboss meetarora 0 5 0 26 20 97459 53434 42 K/h7-g7 (0:04.703) 
Kg7 0 1 300
fics% 
    at raptor.connector.ics.IcsConnector$12.run(Unknown Source)
    at raptor.service.ThreadService$RunnableExceptionDecorator.run(Unknown Source)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:636)
Caused by: java.lang.IllegalArgumentException: Invalid move Kg7
 emptyBB            occupiedBB         notColorToMoveBB   color[WHITE]       color[BLACK]      
 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0   
 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0   
 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0   
 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0   
 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0   
 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0   
 0 0 0 0 0 0 0 0    0 0 1 0 0 0 0 1    0 0 0 0 0 0 0 0    0 0 1 0 0 0 0 1    0 0 0 0 0 0 0 0   
 0 0 0 0 0 0 0 0    0 0 0 0 1 0 1 0    0 0 0 0 0 0 0 0    0 0 0 0 1 0 1 0    0 0 0 0 0 0 0 0   

 [WHITE][PAWN]      [WHITE][KNIGHT]    [WHITE][BISHOP]    [WHITE][ROOK]      [WHITE][QUEEN]     [WHITE][KING]     
 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0   
 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0   
 0 0 0 1 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0   
 0 1 0 0 0 0 0 0    0 0 0 0 1 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0   
 0 0 0 0 0 0 1 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 1 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0   
 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0   
 0 0 0 0 0 0 0 1    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 1 0 0 0 0 0    0 0 0 0 0 0 0 0   
 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 1 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 1 0   

 [BLACK][PAWN]      [BLACK][KNIGHT]    [BLACK][BISHOP]    [BLACK][ROOK]      [BLACK][QUEEN]     [BLACK][KING]     
 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 1 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0   
 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 1 0 0 0 0    0 1 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 1 0   
 0 1 0 0 1 0 0 1    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0   
 0 0 0 0 0 0 1 0    0 0 1 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0   
 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0   
 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0   
 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0   
 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0   

|*|*|*|*|*|r|*|*|   To Move: Black Last Move: 
|*|r|*|b|*|*|k|*|   Piece counts [WP=4 WN=1 WB=0 WR=2 WQ=1 WK=1][BP=4 BN= 1 
BB=1 BR=2 BQ=0 BK=1]
|*|p|*|P|p|*|*|p|   Moves: 83 EP: - Castle: -
|*|P|n|*|N|*|p|*|   FEN: 5r2/1r1b2k1/1p1Pp2p/1Pn1N1p1/2R3P1/8/2Q4P/4R1K1 b - - 
4 42
|*|*|R|*|*|*|P|*|   State: 3393 Variant=blitz Result=*
|*|*|*|*|*|*|*|*|   Event: 5 0 rated blitz Site=freechess.org Date=2011.02.27
|*|*|Q|*|*|*|*|P|   WhiteName: Diboss BlackName=meetarora WhiteTime=94475 
whiteLag=9480 blackRemainingTImeMillis = 53434 blackLag=24522
|*|*|*|*|R|*|K|*|   initialWhiteClock: 00:05:00.0 initialBlackClocks=00:05:00.0

Legals=[Nb3, Nd3, Na4, Ne4, Na6, Bc6, Bc8, Be8, Ra7, Rc7, Rbb8, Rf1, Rf2, Rf3,
Rf4, Rf5, Rf6, Rf7, Ra8, Rfb8, Rc8, Rd8, Re8, Rg8, Rh8, h5, Kf6, Kg8, Kh8, Bxb5]
Movelist=[]
Squares with promote masks: []
    at raptor.chess.ClassicGame.testForSanDisambiguationFromCheck(Unknown Source)
    at raptor.chess.ClassicGame.makeSanMove(Unknown Source)
    at raptor.connector.ics.IcsUtils.addCurrentMove(Unknown Source)
    at raptor.connector.ics.IcsParser.processStyle12Adjustment(Unknown Source)
    at raptor.connector.ics.IcsParser.process(Unknown Source)
    at raptor.connector.ics.IcsParser.parseGameEvents(Unknown Source)
    at raptor.connector.ics.IcsParser.parse(Unknown Source)
    ... 10 more

Original issue reported on code.google.com by jessego...@gmail.com on 27 Feb 2011 at 7:45

GoogleCodeExporter commented 9 years ago
I have seen this in several places lately too. I think its related to the 
bughouse bug. Something broke in the move validation and needs to be fixed.

Original comment by carsonday on 27 Feb 2011 at 7:57

GoogleCodeExporter commented 9 years ago

Original comment by carsonday on 27 Feb 2011 at 7:58

GoogleCodeExporter commented 9 years ago
Here is another similar one. I got this obsing a 1 0 game.

Error occured! We are trying to make Raptor bug free and we need your help! 
Please take a moment to report this issue by selecting the menu:
  Help -> Report Issue 

Error in ThreadService Runnable.
RuntimeException: Error occured parsing message: 
<12> -------- ---p--k- ----p--- pp-n---- ---P---- P-P----- KPR----- ------rr B 
-1 0 0 0 0 9 99 reggieside Madmin 0 1 0 9 17 11007 3028 38 R/f2-c2 (0:01.147) 
Rc2 0 1 131
fics% 
java.lang.RuntimeException: Error occured parsing message: 
<12> -------- ---p--k- ----p--- pp-n---- ---P---- P-P----- KPR----- ------rr B 
-1 0 0 0 0 9 99 reggieside Madmin 0 1 0 9 17 11007 3028 38 R/f2-c2 (0:01.147) 
Rc2 0 1 131
fics% 
    at raptor.connector.ics.IcsConnector$12.run(IcsConnector.java:2000)
    at raptor.service.ThreadService$RunnableExceptionDecorator.run(ThreadService.java:48)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.IllegalArgumentException: Invalid move Rc2
 emptyBB            occupiedBB         notColorToMoveBB   color[WHITE]       color[BLACK]      
 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0   
 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0   
 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0   
 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0   
 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0   
 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0   
 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0   
 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0   

 [WHITE][PAWN]      [WHITE][KNIGHT]    [WHITE][BISHOP]    [WHITE][ROOK]      [WHITE][QUEEN]     [WHITE][KING]     
 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0   
 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0   
 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0   
 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0   
 0 0 0 1 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0   
 1 0 1 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0   
 0 1 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 1 0 0 0 0 0    0 0 0 0 0 0 0 0    1 0 0 0 0 0 0 0   
 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0   

 [BLACK][PAWN]      [BLACK][KNIGHT]    [BLACK][BISHOP]    [BLACK][ROOK]      [BLACK][QUEEN]     [BLACK][KING]     
 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0   
 0 0 0 1 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 1 0   
 0 0 0 0 1 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0   
 0 1 0 0 0 0 0 0    0 0 0 1 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0   
 1 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0   
 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0   
 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0   
 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0    0 0 0 0 0 0 1 1    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0   

|*|*|*|*|*|*|*|*|   To Move: White Last Move: 
|*|*|*|p|*|*|k|*|   Piece counts [WP=4 WN=0 WB=0 WR=1 WQ=0 WK=1][BP=4 BN= 1 
BB=0 BR=2 BQ=0 BK=1]
|*|*|*|*|p|*|*|*|   Moves: 76 EP: - Castle: -
|*|p|*|n|*|*|*|*|   FEN: 8/3p2k1/4p3/1p1n4/p2P4/P1P5/KPR5/6rr w - - 0 39
|p|*|*|P|*|*|*|*|   State: 3393 Variant=lightning Result=*
|P|*|P|*|*|*|*|*|   Event: 1 0 rated lightning Site=freechess.org 
Date=2011.02.27
|K|P|R|*|*|*|*|*|   WhiteName: reggieside BlackName=Madmin WhiteTime=11007 
whiteLag=3455 blackRemainingTImeMillis = 2928 blackLag=6827
|*|*|*|*|*|*|r|r|   initialWhiteClock: 00:01:00.0 initialBlackClocks=00:01:00.0

Legals=[Rc1, Rd2, Re2, Rf2, Rg2, Rh2, b3, b4, c4]
Movelist=[]
Squares with promote masks: []
    at raptor.chess.ClassicGame.testForSanDisambiguationFromCheck(ClassicGame.java:2451)
    at raptor.chess.ClassicGame.makeSanMove(ClassicGame.java:980)
    at raptor.connector.ics.IcsUtils.addCurrentMove(IcsUtils.java:123)
    at raptor.connector.ics.IcsParser.processStyle12Adjustment(IcsParser.java:1206)
    at raptor.connector.ics.IcsParser.process(IcsParser.java:845)
    at raptor.connector.ics.IcsParser.parseGameEvents(IcsParser.java:521)
    at raptor.connector.ics.IcsParser.parse(IcsParser.java:216)
    at raptor.connector.ics.IcsConnector$12.run(IcsConnector.java:1998)
    ... 9 more

Original comment by carsonday on 28 Feb 2011 at 4:21

GoogleCodeExporter commented 9 years ago
I have a hunch why this is might be happening. Before timeseal was optimized 
there was a 50ms delay when publishing moves. I had forgotten why I added this. 
I think what might be happening is moves are being made out of sequence on the 
chess board. 

Original comment by carsonday on 28 Feb 2011 at 4:27

GoogleCodeExporter commented 9 years ago
always comment everything :)

Original comment by jessego...@gmail.com on 28 Feb 2011 at 5:03

GoogleCodeExporter commented 9 years ago
It turned out it wasn't the delay. I will have to dig into it and see what is 
going on. Either the fics message parsing code is buggy, or there is a bug in 
the Chess Game api. It might take me a week or two to track this down.

Original comment by carsonday on 2 Mar 2011 at 12:10

GoogleCodeExporter commented 9 years ago
I think these have been fixed. I will close it out and keep a close eye on it. 
If it shows up again ill open it back up.

Original comment by carsonday on 6 Mar 2011 at 4:25