fowode / pychess

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

crash when saving pgn in pgn.movecount() #844

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I tried to save a game i was observing on FICS and got a crash:

** Message: pygobject_register_sinkfunc is deprecated (GstObject)
'/home/gatto/COMPSpike vs. COMPFire.pgn'
Traceback (most recent call last):
  File "/home/gatto/code/hg/pychess/lib/pychess/Main.py", line 200, in on_save_game_as1_activate
    ionest.saveGameAs (gameDic[gamewidget.cur_gmwidg()])
  File "/home/gatto/code/hg/pychess/lib/pychess/widgets/ionest.py", line 283, in saveGameAs
    game.save(uri, saver, append, position)
  File "/home/gatto/code/hg/pychess/lib/pychess/Utils/GameModel.py", line 515, in save
    saver.save(fileobj, self, position)
  File "/home/gatto/code/hg/pychess/lib/pychess/Savers/pgn.py", line 114, in save
    walk(model.boards[0].board, result)
  File "/home/gatto/code/hg/pychess/lib/pychess/Savers/pgn.py", line 169, in walk
    walk(child[0], result)
  File "/home/gatto/code/hg/pychess/lib/pychess/Savers/pgn.py", line 151, in walk
    movecount = move_count(node)
  File "/home/gatto/code/hg/pychess/lib/pychess/Savers/pgn.py", line 178, in move_count
    ply = node.plyCount
AttributeError: LBoard instance has no attribute 'plyCount'

I can't attach a log because we exceeded our "Issue attachment storage quota" 
again... but i'll attach it later when they increase our quota.

Original issue reported on code.google.com by mattgatto on 2 Mar 2014 at 2:46

GoogleCodeExporter commented 9 years ago

Original comment by mattgatto on 3 Mar 2014 at 2:30

Attachments:

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

Original comment by gbtami on 4 Mar 2014 at 10:01