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 #909

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
freeze

Original issue reported on code.google.com by gbtami on 26 Aug 2014 at 11:09

GoogleCodeExporter commented 9 years ago

Original comment by gbtami on 26 Aug 2014 at 11:09

Attachments:

GoogleCodeExporter commented 9 years ago

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

GoogleCodeExporter commented 9 years ago
13:06:31 Default DEBUG: 
Thread: ICGameModel.run:542 (140616769214208)
  File "/usr/lib/python2.7/threading.py", line 783, in __bootstrap
    self.__bootstrap_inner()
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/home/tamas/pychess/lib/pychess/Utils/GameModel.py", line 574, in run
    self.boards[-2])
  File "/home/tamas/pychess/lib/pychess/Players/Human.py", line 149, in makeMove
    item = self.queue.get(block=True)
  File "/usr/lib/python2.7/Queue.py", line 168, in get
    self.not_empty.wait()
  File "/usr/lib/python2.7/threading.py", line 339, in wait
    waiter.acquire()

Thread: ChessClock.update:179 (140617019549440)
  File "/usr/lib/python2.7/threading.py", line 783, in __bootstrap
    self.__bootstrap_inner()
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/tamas/pychess/lib/pychess/System/repeat.py", line 37, 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.7/threading.py", line 173, in acquire
    rc = self.__block.acquire(blocking)

Thread: SubProcess.linePublisher (140617465874176)
  File "/usr/lib/python2.7/threading.py", line 783, in __bootstrap
    self.__bootstrap_inner()
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/home/tamas/pychess/lib/pychess/System/GtkWorker.py", line 29, in run
    v = self.queue.get()
  File "/usr/lib/python2.7/Queue.py", line 168, in get
    self.not_empty.wait()
  File "/usr/lib/python2.7/threading.py", line 339, in wait
    waiter.acquire()

Thread: MainThread (140618591516480)
  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: FICSConnection:keep_alive:275 (140617482659584)
  File "/usr/lib/python2.7/threading.py", line 783, in __bootstrap
    self.__bootstrap_inner()
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/tamas/pychess/lib/pychess/ic/FICSConnection.py", line 281, in keep_alive
    time.sleep(30)

has glock
Thread: FICSConnection.run:289 (140618110387968)
  File "/usr/lib/python2.7/threading.py", line 783, in __bootstrap
    self.__bootstrap_inner()
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/home/tamas/pychess/lib/pychess/ic/FICSConnection.py", line 295, 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 180, in on_player_disconnect
    self.connection.players.player_disconnected(FICSPlayer(name))
  File "/home/tamas/pychess/lib/pychess/ic/FICSObjects.py", line 465, in player_disconnected
    player.status = IC_STATUS_OFFLINE
  File "/usr/lib/python2.7/dist-packages/gobject/propertyhelper.py", line 172, in __set__
    instance.set_property(self.name, value)
  File "/home/tamas/pychess/lib/pychess/ic/ICLounge.py", line 877, in status_changed
    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: ICLounge.__init__:48 (140617491052288)
  File "/usr/lib/python2.7/threading.py", line 783, in __bootstrap
    self.__bootstrap_inner()
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/home/tamas/pychess/lib/pychess/System/GtkWorker.py", line 29, in run
    v = self.queue.get()
  File "/usr/lib/python2.7/Queue.py", line 168, in get
    self.not_empty.wait()
  File "/usr/lib/python2.7/threading.py", line 339, in wait
    waiter.acquire()

Thread: debug:thread_dumper:11 (140617719879424)
  File "/usr/lib/python2.7/threading.py", line 783, in __bootstrap
    self.__bootstrap_inner()
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  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))

Thread: FICSConnection.run:289 (140617728272128)
  File "/usr/lib/python2.7/threading.py", line 783, in __bootstrap
    self.__bootstrap_inner()
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/home/tamas/pychess/lib/pychess/ic/FICSConnection.py", line 295, 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 411, 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.7/threading.py", line 173, in acquire
    rc = self.__block.acquire(blocking)

Thread: FICSConnection:keep_alive:275 (140617474266880)
  File "/usr/lib/python2.7/threading.py", line 783, in __bootstrap
    self.__bootstrap_inner()
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/tamas/pychess/lib/pychess/ic/FICSConnection.py", line 281, in keep_alive
    time.sleep(30)

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

GoogleCodeExporter commented 9 years ago

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