fowode / pychess

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

Not showing result for observed game on FICS #372

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. observe a game on FICS
2. wait until you are quite sure it has already finished
3. nothing happens in pychess

What is the expected output? What do you see instead?
I would expect pychess to let me know the result of the game (and even stop
the clock for both players). Additionaly, reason for result should be given
(white resigned, draw, black lost on time, game has been adjourned, whatever).

Does it happen every time?
I really think so.

What version of the product are you using?
0.10 alpha

Did you use an installed version of PyChess or did you run in from a
tarball/svn?
deb package

Original issue reported on code.google.com by pe3...@gmail.com on 10 Jan 2009 at 1:13

GoogleCodeExporter commented 9 years ago
I can reproduce this one.
The log shows that the observed game was reported ended. (e.g. {Game 25 
(GuestLNDH
vs. horgen) GuestLNDH resigns} 0-1), but the UI doesn't seam to connect to the 
signal.

Original comment by lobais on 10 Jan 2009 at 3:39

GoogleCodeExporter commented 9 years ago
When I closed PyChess, I got the following trace:

16:18:09 Default Warning: Chatpanel loaded with no local players
  File
"/home/thomas/Programmering/workspace/pychess/lib/pychess/System/ThreadPool.py",
 line
15, in encaps
    self._Thread__bootstrap_inner()
  File "/usr/lib/python2.5/threading.py", line 460, in __bootstrap
    self.run()
  File
"/home/thomas/Programmering/workspace/pychess/lib/pychess/System/ThreadPool.py",
 line
73, in run
    self.func()
  File
"/home/thomas/Programmering/workspace/pychess/lib/pychess/System/ThreadPool.py",
 line
46, in <lambda>
    a.func = lambda: func(*args, **kw)
  File
"/home/thomas/Programmering/workspace/pychess/lib/pychess/ic/FICSConnection.py",
 line
198, in run
    self._connect()
  File
"/home/thomas/Programmering/workspace/pychess/lib/pychess/ic/FICSConnection.py",
 line
190, in _connect
    self.emit("connected")
  File "/home/thomas/Programmering/workspace/pychess/lib/pychess/ic/ICLogon.py", line
150, in onConnected
    self.lounge = ICLounge(connection)
  File "/home/thomas/Programmering/workspace/pychess/lib/pychess/ic/ICLounge.py",
line 49, in __init__
    GameTabSection(w,c),
  File "/home/thomas/Programmering/workspace/pychess/lib/pychess/ic/ICLounge.py",
line 609, in __init__
    ParrentListSection.__init__(self)
  File "/home/thomas/Programmering/workspace/pychess/lib/pychess/ic/ICLounge.py",
line 271, in __init__
    self.listPublisher.start()
  File
"/home/thomas/Programmering/workspace/pychess/lib/pychess/System/ThreadPool.py",
 line
107, in start
    pool.start(self.run)
  File
"/home/thomas/Programmering/workspace/pychess/lib/pychess/System/GtkWorker.py", 
line
48, in run
    self.func(l)
  File "/home/thomas/Programmering/workspace/pychess/lib/pychess/ic/ICLounge.py",
line 269, in updateLists
    func(*task[1:])
  File "/home/thomas/Programmering/workspace/pychess/lib/pychess/ic/ICLounge.py",
line 696, in onGameUnobserved
    threeiter = self.games[gameno]
<type 'exceptions.KeyError'> '0'

Original comment by lobais on 10 Jan 2009 at 3:46

GoogleCodeExporter commented 9 years ago
I got this nailed down to a variable override and fixed.
Such a problem would never have happened in a strict typing language :P

Original comment by lobais on 12 Jan 2009 at 10:21