Aleks31 / pychess

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

CECPEngine.py doesn't clean up Timer() objects leading to orphaned threads #877

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
CECPEngine.py analyzers needs to clean up Timer() objects created in the below 
code or else orphaned threads start appearing.

t = Timer(conf.get("max_analysis_spin", 3), stop_analyze)

Original issue reported on code.google.com by mattgatto on 30 May 2014 at 10:10

GoogleCodeExporter commented 8 years ago
The threads appear in thread dumps like this:

Thread: Thread-185 (140269798287104)
  File "/usr/lib64/python2.7/threading.py", line 784, in __bootstrap
    self.__bootstrap_inner()
  File "/usr/lib64/python2.7/threading.py", line 811, in __bootstrap_inner
    self.run()
  File "/usr/lib64/python2.7/threading.py", line 1081, in run
    self.finished.wait(self.interval)
  File "/usr/lib64/python2.7/threading.py", line 621, in wait
    self.__cond.wait(timeout, balancing)
  File "/usr/lib64/python2.7/threading.py", line 361, in wait
    _sleep(delay)

Original comment by mattgatto on 30 May 2014 at 10:11

GoogleCodeExporter commented 8 years ago
This issue was closed by revision 1c2c8ee4255c.

Original comment by gbtami on 30 May 2014 at 10:16