fowode / pychess

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

Pychess freeze while playing on FICS #888

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Played a rated blitz game with Meddyxx, then pychess freeze.

After logging in again, I show that the game hase been adjourned, koz I lost 
the connection to the server, and Meddyxx requested adjournment.

Original issue reported on code.google.com by gbtami on 16 Jun 2014 at 11:59

Attachments:

GoogleCodeExporter commented 9 years ago
Thread: Thread-5 (-1292866704)
  File "/usr/lib/python2.6/threading.py", line 504, in __bootstrap
    self.__bootstrap_inner()
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.6/threading.py", line 484, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/tamas/pychess/lib/pychess/ic/FICSConnection.py", line 280, in keep_alive
    time.sleep(30)

Thread: ChessClock.update:179 (-1353712784)
  File "/usr/lib/python2.6/threading.py", line 504, in __bootstrap
    self.__bootstrap_inner()
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/home/tamas/pychess/lib/pychess/System/ThreadPool.py", line 91, in run
    self.func()
  File "/home/tamas/pychess/lib/pychess/System/ThreadPool.py", line 62, in <lambda>
    a.func = lambda: func(*args, **kw)
  File "/home/tamas/pychess/lib/pychess/System/repeat.py", line 34, in run
    else: val = func()
  File "/home/tamas/pychess/lib/pychess/widgets/ChessClock.py", line 186, in update
    self.redraw_canvas()
  File "/home/tamas/pychess/lib/pychess/widgets/ChessClock.py", line 154, in redraw_canvas
    glock.acquire()
  File "/home/tamas/pychess/lib/pychess/System/glock.py", line 31, in acquire
    _rlock.acquire()
  File "/usr/lib/python2.6/threading.py", line 123, in acquire
    rc = self.__block.acquire(blocking)

Thread: MainThread (-1220171568)
  File "./pychess", line 138, in <module>
    chess_file, ics_host, ics_port)
  File "/home/tamas/pychess/lib/pychess/Main.py", line 492, in run
    gtk.main()

Thread: ICGameModel.run:537 (-1343222928)
  File "/usr/lib/python2.6/threading.py", line 504, in __bootstrap
    self.__bootstrap_inner()
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/home/tamas/pychess/lib/pychess/System/ThreadPool.py", line 91, in run
    self.func()
  File "/home/tamas/pychess/lib/pychess/System/ThreadPool.py", line 62, in <lambda>
    a.func = lambda: func(*args, **kw)
  File "/home/tamas/pychess/lib/pychess/Utils/GameModel.py", line 569, in run
    self.boards[-2])
  File "/home/tamas/pychess/lib/pychess/Players/ICPlayer.py", line 139, in makeMove
    item = self.queue.get(block=True)
  File "/usr/lib/python2.6/Queue.py", line 168, in get
    self.not_empty.wait()
  File "/usr/lib/python2.6/threading.py", line 239, in wait
    waiter.acquire()

Thread: ICLounge.__init__:48 (-1284138128)
  File "/usr/lib/python2.6/threading.py", line 504, in __bootstrap
    self.__bootstrap_inner()
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/home/tamas/pychess/lib/pychess/System/ThreadPool.py", line 91, in run
    self.func()
  File "/home/tamas/pychess/lib/pychess/System/ThreadPool.py", line 62, in <lambda>
    a.func = lambda: func(*args, **kw)
  File "/home/tamas/pychess/lib/pychess/System/GtkWorker.py", line 30, in run
    v = self.queue.get()
  File "/usr/lib/python2.6/Queue.py", line 168, in get
    self.not_empty.wait()
  File "/usr/lib/python2.6/threading.py", line 239, in wait
    waiter.acquire()

Thread: TimeModel.__zerolistener:55 (-1362105488)
  File "/usr/lib/python2.6/threading.py", line 504, in __bootstrap
    self.__bootstrap_inner()
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/home/tamas/pychess/lib/pychess/System/ThreadPool.py", line 91, in run
    self.func()
  File "/home/tamas/pychess/lib/pychess/System/ThreadPool.py", line 62, in <lambda>
    a.func = lambda: func(*args, **kw)
  File "/home/tamas/pychess/lib/pychess/System/repeat.py", line 26, in run
    time.sleep(time.time()-last + sleeptime)

Thread: TimeModel.__zerolistener:55 (-1326437520)
  File "/usr/lib/python2.6/threading.py", line 504, in __bootstrap
    self.__bootstrap_inner()
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/home/tamas/pychess/lib/pychess/System/ThreadPool.py", line 114, in run
    self.wcond.wait()    # wait for work
  File "/usr/lib/python2.6/threading.py", line 239, in wait
    waiter.acquire()

has glock
Thread: FICSConnection.run:288 (-1253590160)
  File "/usr/lib/python2.6/threading.py", line 504, in __bootstrap
    self.__bootstrap_inner()
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/home/tamas/pychess/lib/pychess/System/ThreadPool.py", line 91, in run
    self.func()
  File "/home/tamas/pychess/lib/pychess/System/ThreadPool.py", line 62, in <lambda>
    a.func = lambda: func(*args, **kw)
  File "/home/tamas/pychess/lib/pychess/ic/FICSConnection.py", line 294, in run
    self.client.parse()
  File "/home/tamas/pychess/lib/pychess/ic/VerboseTelnet.py", line 213, in parse
    answer = self.test_prediction(p, line)
  File "/home/tamas/pychess/lib/pychess/ic/VerboseTelnet.py", line 222, in test_prediction
    answer = prediction.handle(line.line)
  File "/home/tamas/pychess/lib/pychess/ic/VerboseTelnet.py", line 49, in handle
    self.callback(match)
  File "/home/tamas/pychess/lib/pychess/ic/managers/HelperManager.py", line 176, in on_player_connect
    player.update(copy)
  File "/home/tamas/pychess/lib/pychess/ic/FICSObjects.py", line 325, in update
    self.online = player.online
  File "/usr/lib/python2.6/site-packages/gobject/propertyhelper.py", line 172, in __set__
    instance.set_property(self.name, value)
  File "/home/tamas/pychess/lib/pychess/ic/FICSObjects.py", line 427, in online_changed
    self.emit("FICSPlayerEntered", player)
  File "/home/tamas/pychess/lib/pychess/ic/ICLounge.py", line 822, in onPlayerAdded
    with glock.glock:
  File "/home/tamas/pychess/lib/pychess/System/glock.py", line 96, in __enter__
    acquire()
  File "/home/tamas/pychess/lib/pychess/System/glock.py", line 36, in acquire
    threads_enter()

Thread: FICSConnection.run:288 (-1275745424)
  File "/usr/lib/python2.6/threading.py", line 504, in __bootstrap
    self.__bootstrap_inner()
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/home/tamas/pychess/lib/pychess/System/ThreadPool.py", line 91, in run
    self.func()
  File "/home/tamas/pychess/lib/pychess/System/ThreadPool.py", line 62, in <lambda>
    a.func = lambda: func(*args, **kw)
  File "/home/tamas/pychess/lib/pychess/ic/FICSConnection.py", line 294, in run
    self.client.parse()
  File "/home/tamas/pychess/lib/pychess/ic/VerboseTelnet.py", line 213, in parse
    answer = self.test_prediction(p, line)
  File "/home/tamas/pychess/lib/pychess/ic/VerboseTelnet.py", line 222, in test_prediction
    answer = prediction.handle(line.line)
  File "/home/tamas/pychess/lib/pychess/ic/VerboseTelnet.py", line 49, in handle
    self.callback(match)
  File "/home/tamas/pychess/lib/pychess/ic/managers/BoardManager.py", line 404, in onStyle12
    self.emit("boardUpdate", gameno, ply, curcol, lastmove, fen, wname, bname, wms, bms)
  File "/home/tamas/pychess/lib/pychess/ic/ICGameModel.py", line 97, in onBoardUpdate
    self.timemodel.updatePlayer (WHITE, wms/1000.)
  File "/home/tamas/pychess/lib/pychess/Utils/TimeModel.py", line 198, in updatePlayer
    self.emit("time_changed")
  File "/home/tamas/pychess/lib/pychess/widgets/ChessClock.py", line 174, in time_changed
    self.update()
  File "/home/tamas/pychess/lib/pychess/widgets/ChessClock.py", line 186, in update
    self.redraw_canvas()
  File "/home/tamas/pychess/lib/pychess/widgets/ChessClock.py", line 154, in redraw_canvas
    glock.acquire()
  File "/home/tamas/pychess/lib/pychess/System/glock.py", line 31, in acquire
    _rlock.acquire()
  File "/usr/lib/python2.6/threading.py", line 123, in acquire
    rc = self.__block.acquire(blocking)

Thread: SubProcess.linePublisher.emit (-1309652112)
  File "/usr/lib/python2.6/threading.py", line 504, in __bootstrap
    self.__bootstrap_inner()
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/home/tamas/pychess/lib/pychess/System/ThreadPool.py", line 91, in run
    self.func()
  File "/home/tamas/pychess/lib/pychess/System/ThreadPool.py", line 62, in <lambda>
    a.func = lambda: func(*args, **kw)
  File "/home/tamas/pychess/lib/pychess/System/GtkWorker.py", line 30, in run
    v = self.queue.get()
  File "/usr/lib/python2.6/Queue.py", line 168, in get
    self.not_empty.wait()
  File "/usr/lib/python2.6/threading.py", line 239, in wait
    waiter.acquire()

Thread: Thread-6 (-1301259408)
  File "/usr/lib/python2.6/threading.py", line 504, in __bootstrap
    self.__bootstrap_inner()
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.6/threading.py", line 484, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/tamas/pychess/lib/pychess/ic/FICSConnection.py", line 280, in keep_alive
    time.sleep(30)

Thread: debug.thread_dumper:11 (-1263318160)
  File "/usr/lib/python2.6/threading.py", line 504, in __bootstrap
    self.__bootstrap_inner()
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/home/tamas/pychess/lib/pychess/System/ThreadPool.py", line 91, in run
    self.func()
  File "/home/tamas/pychess/lib/pychess/System/ThreadPool.py", line 62, in <lambda>
    a.func = lambda: func(*args, **kw)
  File "/home/tamas/pychess/lib/pychess/System/debug.py", line 28, in thread_dumper
    dump_threads()
  File "/home/tamas/pychess/lib/pychess/System/debug.py", line 19, in dump_threads
    stack = traceback.format_list(traceback.extract_stack(frame))

Original comment by mattgatto on 20 Jun 2014 at 2:27

GoogleCodeExporter commented 9 years ago

Original comment by mattgatto on 26 Jun 2014 at 12:35

GoogleCodeExporter commented 9 years ago
Issue 909 has been merged into this issue.

Original comment by gbtami on 18 Sep 2014 at 8:22