fowode / pychess

Automatically exported from code.google.com/p/pychess
GNU General Public License v3.0
0 stars 0 forks source link

undo crash in Human vs. Human local game #849

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I got a crash after doing undo twice via Ctrl-Z to get back to the initial FEN 
position I'd loaded the gamewidget to, although the log file that's attached 
shows an earlier crash:

Traceback (most recent call last):
  File "/home/gatto/code/hg/pychess/lib/pychess/System/glock.py", line 89, in handler
    function(emitter, *extra)
  File "/home/gatto/code/hg/pychess/lib/pychess/widgets/BoardView.py", line 228, in moves_undoing
    board = model.boards[board.ply-model.lowply-1]
IndexError: list index out of range
Traceback (most recent call last):
  File "/home/gatto/code/hg/pychess/sidepanel/annotationPanel.py", line 164, in button_press_event
    self.boardview.setShownBoard(board.pieceBoard)
  File "/home/gatto/code/hg/pychess/lib/pychess/widgets/BoardView.py", line 333, in setShownBoard
    self.shown = self.model.variations[self.shownVariationIdx].index(board) + self.model.lowply
ValueError: #White - -
# . . . . . . . . 
# . . . . . . ♟ . 
# . . . ♚ . . ♟ . 
# . ♟ . . . . ♙ . 
# . . ♟ . . ♙ . . 
# . . ♙ . ♔ . . . 
# . ♙ . . . . . . 
# . . . . . . . . 
#  is not in list

Original issue reported on code.google.com by mattgatto on 4 Apr 2014 at 11:04

Attachments:

GoogleCodeExporter commented 9 years ago
Here's another instance.

Original comment by mattgatto on 4 Apr 2014 at 11:16

Attachments:

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

Original comment by gbtami on 5 Apr 2014 at 5:34