amitkumar3968 / raptor-chess-interface

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

Fischer Random #780

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Queen suddenly changed to rook!!!!

Raptor thinks Qf3 is illegal. An attempt was made to correct the position.
java.lang.IllegalArgumentException: Invalid move Qf3
 emptyBB            occupiedBB         notColorToMoveBB   color[WHITE]       color[BLACK]      
 1 1 0 1 1 1 1 1    0 0 1 0 0 0 0 0    1 1 1 1 1 1 1 1    0 0 0 0 0 0 0 0    0 0 1 0 0 0 0 0   
 0 0 0 1 1 0 1 0    1 1 1 0 0 1 0 1    1 1 1 1 1 1 1 1    0 0 0 0 0 0 0 0    1 1 1 0 0 1 0 1   
 1 1 1 1 1 0 0 1    0 0 0 0 0 1 1 0    1 1 1 1 1 1 1 1    0 0 0 0 0 0 0 0    0 0 0 0 0 1 1 0   
 1 1 1 1 1 1 1 1    0 0 0 0 0 0 0 0    1 1 1 1 1 1 1 1    0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0   
 1 1 1 0 1 0 1 1    0 0 0 1 0 1 0 0    1 1 1 0 1 0 1 1    0 0 0 1 0 1 0 0    0 0 0 0 0 0 0 0   
 1 1 1 1 0 1 0 1    0 0 0 0 1 0 1 0    1 1 1 1 1 1 0 1    0 0 0 0 0 0 1 0    0 0 0 0 1 0 0 0   
 0 1 1 1 1 1 1 0    1 0 0 0 0 0 0 1    0 1 1 1 1 1 1 0    1 0 0 0 0 0 0 1    0 0 0 0 0 0 0 0   
 0 0 1 0 1 1 1 1    1 1 0 1 0 0 0 0    1 0 1 0 1 1 1 1    0 1 0 1 0 0 0 0    1 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 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 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 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 1 0 0 0 0    0 1 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 1 0 0 0 0 0   
 1 1 1 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 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 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    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   

|*|*|k|*|*|*|*|*|   To Move: White Last Move: Nxe3
|p|p|p|*|*|p|*|p|   Piece counts [WP=3 WN=2 WB=0 WR=0 WQ=1 WK=1][BP=6 BN= 1 
BB=1 BR=0 BQ=1 BK=1]
|*|*|*|*|*|q|p|*|   Moves: 42 EP: - Castle: K
|*|*|*|*|*|*|*|*|   FEN: 2k5/ppp2p1p/5qp1/8/3N1N2/4n1P1/P6P/bK1r4 w K - 0 22
|*|*|*|N|*|N|*|*|   State: 7241 Variant=fischerRandom Result=*
|*|*|*|*|n|*|P|*|   Event: 3 0 rated wild/fr Site=freechess.org Date=2014.09.25
|P|*|*|*|*|*|*|P|   WhiteName: Wrglbrmpft BlackName=franta WhiteTime=37383 
whiteLag=4328 blackRemainingTImeMillis = 73024 blackLag=5263
|b|K|*|R|*|*|*|*|   initialWhiteClock: 00:03:00.0 initialBlackClocks=00:03:00.0

Legals=[Rc1, Re1, Rf1, Rg1, Rh1, Rc2, Rd2, Re2, Rb3, Rd3, Rf3, Ra4, Rg4, Rh5,
Nc2, Nde2, Nb3, Nf3, Nb5, Nf5, Nc6, Nde6, Nfe2, Ng2, Nd3, Nh3, Nd5, Nh5, Nfe6,
a3, a4, h3, h4, g4, Kc1, Nxg6, Kxa1]
Movelist=[e4, g6, d3, Bg7, c3, d5, exd5, Rxd5, d4, Bf5+, Bd3, Bxd3+, Nxd3,
O-O-O, g3, e5, Be3, exd4, cxd4, Bxd4, Nb4, Bxb2, Rxd5, Bxa1, Rxd8+, Kxd8, Nd3,
Nd6, Qd5, Ne7, Qb3, Nef5, Ne2, Nxe3, fxe3, Qf6, Qd1, Nc4, Ndf4+, Kc8, Nd4, Nxe3]
Squares with promote masks: []
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 exceute
java.lang.NullPointerException
    at raptor.swt.chess.controller.PlayingController.isUserMove(Unknown Source)
    at raptor.swt.chess.controller.PlayingController.handleSpeakMove(Unknown Source)
    at raptor.swt.chess.controller.PlayingController$2$3.execute(Unknown Source)
    at raptor.util.RaptorRunnable.run(Unknown Source)
    at org.eclipse.swt.widgets.RunnableLock.run(Unknown Source)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Unknown Source)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Unknown Source)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
    at org.eclipse.jface.window.Window.open(Window.java:801)
    at raptor.Raptor.main(Unknown Source)

Original issue reported on code.google.com by christia...@gmail.com on 25 Sep 2014 at 12:56

GoogleCodeExporter commented 9 years ago
Hello,

Thanks for the error report: it was very helpful in finding the root cause. 
Unfortunately, it is not something that can be fixed quickly. For the 
technically minded: a data structure is accessed from multiple threads but no 
synchronization mechanism is in place to prevent corrupting the data structure 
by simultaneous operations by different threads (in brief: a threading issue) 
The results can be unpredictable.
This particular data structure is used in several parts of the code, that is 
why a quick fix is not realistic (only doing this in my spare time) but it is 
on my todo list, so eventually I might get to it.

Regards,

Eddy.

Original comment by evil...@gmail.com on 25 Sep 2014 at 5:19

GoogleCodeExporter commented 9 years ago
Thanks for looking into the error.  I suggest that even if right now we lack 
the means to fix it, we still accept this issue since it was reported correctly 
and we understand that it's a defect.

Original comment by DandyD...@gmail.com on 8 Nov 2014 at 7:27

GoogleCodeExporter commented 9 years ago
Here again the error with the ghost rook:

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.
NullPointerException: 
java.lang.NullPointerException
    at raptor.chess.pgn.PgnUtils.getMove(Unknown Source)
    at raptor.chess.ClassicGame.toPgn(Unknown Source)
    at raptor.chess.pgn.PgnUtils.appendGameToFile(Unknown Source)
    at raptor.swt.chess.controller.PlayingController$2$2$1.run(Unknown Source)
    at raptor.service.ThreadService$RunnableExceptionDecorator.run(Unknown Source)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
    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:895)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
    at java.lang.Thread.run(Thread.java:695)

Original comment by christia...@gmail.com on 15 Nov 2014 at 10:49

GoogleCodeExporter commented 9 years ago
Thanks for the additional info. Like mentioned before, the underlying problem 
has been identified, but is not something that can be fixed quickly (meaning: 
more time than I can devote to Raptor maintenance for now)

From the information that you provided, I can conclude that the issue depends 
on exact timing of several events, some of which that the Raptor user has no 
control over (events coming in from the chess server) That means that under 
most circumstances, you would not see this error, but I do aggree that when it 
happens, it can very annoying.

Original comment by evil...@gmail.com on 15 Nov 2014 at 2:47

GoogleCodeExporter commented 9 years ago
Its annoying, but I am getting useed to it, needs some extra creativity ;-).
Raptor is such I great interface and I am so thankful for the brilliant work 
you are providing, so I could wait!

Original comment by christia...@gmail.com on 15 Nov 2014 at 2:51