fowode / pychess

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

Annotation panel IndexError crash #857

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I don't remember what I was doing because I didn't know the crash until 2 hours 
later, but at the time, I'd been logged into FICS observing a game I think. 
It's probably not a good idea to have expressions that could crash with 
IndexError in log statements.

Traceback (most recent call last):
  File "/home/gatto/code/hg/pychess/sidepanel/annotationPanel.py", line 362, in remove_variation
    self.update()
  File "/home/gatto/code/hg/pychess/sidepanel/annotationPanel.py", line 679, in update
    self.insert_nodes(self.gamemodel.boards[0].board, result=result)
  File "/home/gatto/code/hg/pychess/sidepanel/annotationPanel.py", line 468, in insert_nodes
    shown_board = self.gamemodel.getBoardAtPly(self.boardview.shown, self.boardview.shownVariationIdx)
  File "/home/gatto/code/hg/pychess/lib/pychess/Utils/GameModel.py", line 318, in getBoardAtPly
    log.error("%d\t%d\t%d\t%d" % (self.lowply, ply, self.ply, len(self.variations[variation])))
IndexError: list index out of range

Original issue reported on code.google.com by mattgatto on 27 Apr 2014 at 11:58

Attachments:

GoogleCodeExporter commented 9 years ago
Changed the crashing log statement in Revision: af163c467191 

Original comment by gbtami on 28 Apr 2014 at 8:48

GoogleCodeExporter commented 9 years ago
I can't reproduce this. Can you?

Original comment by gbtami on 5 May 2014 at 8:30

GoogleCodeExporter commented 9 years ago
No I can't.

Original comment by mattgatto on 6 May 2014 at 11:51