fowode / pychess

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

IndexError in annotation panel #930

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I was playing a game on FICS and got this IndexError:

Traceback (most recent call last):
  File "/home/gatto/code/hg/pychess/lib/pychess/System/glock.py", line 71, in handler
    function(emitter, *extra)
  File "/home/gatto/code/hg/pychess/sidepanel/annotationPanel.py", line 859, in update
    self.update_selected_node()
  File "/home/gatto/code/hg/pychess/sidepanel/annotationPanel.py", line 681, in update_selected_node
    shown_board = self.gamemodel.getBoardAtPly(self.boardview.shown, self.boardview.shownVariationIdx)
  File "/home/gatto/code/hg/pychess/lib/pychess/Utils/GameModel.py", line 324, in getBoardAtPly
    return self.variations[variation][self._plyToIndex(ply)]
  File "/home/gatto/code/hg/pychess/lib/pychess/Utils/GameModel.py", line 319, in _plyToIndex
    raise IndexError, "%s < %s\n" % (ply, self.lowply)
IndexError: 0 < 54

I've attached a truncated version of the log as it is too large to attach the 
complete log.

Original issue reported on code.google.com by mattgatto on 27 Nov 2014 at 7:11

Attachments:

GoogleCodeExporter commented 9 years ago
Matt, how can I reproduce this error? The .log file gives no help to reproduce.

Original comment by gbtami on 30 Nov 2014 at 12:11

GoogleCodeExporter commented 9 years ago
I don't know. Even when I reported it I'm not sure when it had happened
because I was playing a bunch of games and didn't notice the error until
later on.

Original comment by mattgatto on 30 Nov 2014 at 12:15