fowode / pychess

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

crash in cord2Rect() #843

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I was observing a crazyhouse game with Sjeng as an analyzer, and at some point 
I got the following crash which I often see when using analyzers:
Traceback (most recent call last):
  File "/home/gatto/code/hg/pychess/lib/pychess/widgets/gamewidget.py", line 357, in _on_analyze
    self._set_arrow(analyzer_type, (cord0, moves[0].cord1))
  File "/home/gatto/code/hg/pychess/lib/pychess/widgets/gamewidget.py", line 342, in _set_arrow
    self.board.view._set_greenarrow(coordinates)
  File "/home/gatto/code/hg/pychess/lib/pychess/widgets/BoardView.py", line 1249, in _set_greenarrow
    r = rect(self.cord2RectRelative(paintCords[0]))
  File "/home/gatto/code/hg/pychess/lib/pychess/widgets/BoardView.py", line 1367, in cord2RectRelative
    cx, cy, s = self.cord2Rect(cord, y)
  File "/home/gatto/code/hg/pychess/lib/pychess/widgets/BoardView.py", line 1350, in cord2Rect
    x, y = cord.x, cord.y
AttributeError: 'NoneType' object has no attribute 'x'

My log file is attached but is bzip2'd because it's +300MB uncompressed because 
I'm running pychess with a patch to turn on glock debugging by default.

Original issue reported on code.google.com by mattgatto on 26 Feb 2014 at 10:46

Attachments:

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

Original comment by gbtami on 27 Feb 2014 at 12:59