rijalati / raptor-chess-interface

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

Errors updating move list in examined games. #548

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Observe lecture bot.
Activate the move list.
As lecturebot changes positions, you get these errors when the move list is 
drawn on new moves:

java.lang.IllegalArgumentException: Index out of bounds
    at org.eclipse.swt.SWT.error(Unknown Source)
    at org.eclipse.swt.SWT.error(Unknown Source)
    at org.eclipse.swt.SWT.error(Unknown Source)
    at org.eclipse.swt.custom.StyledText.replaceTextRange(Unknown Source)
    at raptor.swt.chess.movelist.TextAreaMoveList.updateToGame(TextAreaMoveList.java:232)
    at raptor.swt.chess.controller.ObserveController.refresh(ObserveController.java:386)
    at raptor.swt.chess.ChessBoardController.refresh(ChessBoardController.java:559)
    at raptor.swt.chess.controller.ObserveController$1$4.execute(ObserveController.java:160)
    at raptor.util.RaptorRunnable.run(RaptorRunnable.java:51)
    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(Raptor.java:182)

16:53:37,509 ERROR IcsConnector:40 - Error in exceute
java.lang.IllegalArgumentException: Index out of bounds
    at org.eclipse.swt.SWT.error(Unknown Source)
    at org.eclipse.swt.SWT.error(Unknown Source)
    at org.eclipse.swt.SWT.error(Unknown Source)
    at org.eclipse.swt.custom.StyledText.replaceTextRange(Unknown Source)
    at raptor.swt.chess.movelist.TextAreaMoveList.updateToGame(TextAreaMoveList.java:232)
    at raptor.swt.chess.controller.ObserveController.refresh(ObserveController.java:386)
    at raptor.swt.chess.ChessBoardController.refresh(ChessBoardController.java:559)
    at raptor.swt.chess.controller.ObserveController$1$4.execute(ObserveController.java:160)
    at raptor.util.RaptorRunnable.run(RaptorRunnable.java:51)
    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(Raptor.java:182)

16:53:42,884 ERROR IcsConnector:40 - Error in exceute
java.lang.IllegalArgumentException: Index out of bounds
    at org.eclipse.swt.SWT.error(Unknown Source)
    at org.eclipse.swt.SWT.error(Unknown Source)
    at org.eclipse.swt.SWT.error(Unknown Source)
    at org.eclipse.swt.custom.StyledText.replaceTextRange(Unknown Source)
    at raptor.swt.chess.movelist.TextAreaMoveList.updateToGame(TextAreaMoveList.java:232)
    at raptor.swt.chess.controller.ObserveController.refresh(ObserveController.java:386)
    at raptor.swt.chess.ChessBoardController.refresh(ChessBoardController.java:559)
    at raptor.swt.chess.controller.ObserveController$1$4.execute(ObserveController.java:160)
    at raptor.util.RaptorRunnable.run(RaptorRunnable.java:51)
    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(Raptor.java:182)

Original issue reported on code.google.com by carsonday on 26 Feb 2011 at 9:57

GoogleCodeExporter commented 9 years ago
This happens when updating the move list when you are observing examined games 
some times.

I have not tracked down exactly why. It seems to happen with GamesBot and 
LectureBot if you observe them.

Original comment by carsonday on 2 Mar 2011 at 2:44

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r2130.

Original comment by carsonday on 6 Mar 2011 at 6:58