sabago / pysph

Automatically exported from code.google.com/p/pysph
0 stars 0 forks source link

possible race in controller #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
run a a solver and mayavi_viewer; sometimes once in a while this error shows up
"thread.error: release unlocked lock", and the solver crashes:

Traceback (most recent call last):
  File "stress2d_shear.py", line 214, in <module>
    app.run()
  File "/mnt/data/CourseWare/ddp/pysph-bb/source/pysph/solver/application.py", line 445, in run
    self._solver.solve(not self.options.quiet)
  File "/mnt/data/CourseWare/ddp/pysph-bb/source/pysph/solver/solver.py", line 514, in solve
    self.execute_commands(self)
  File "/mnt/data/CourseWare/ddp/pysph-bb/source/pysph/solver/controller.py", line 256, in execute_commands
    self.run_queued_commands()
  File "/mnt/data/CourseWare/ddp/pysph-bb/source/pysph/solver/controller.py", line 290, in run_queued_commands
    self.queue_lock_map[lock_id].release()
thread.error: release unlocked lock

Original issue reported on code.google.com by pankaj86 on 10 Jun 2011 at 10:40

GoogleCodeExporter commented 9 years ago
Another error which occurs sometimes is:

Traceback (most recent call last):
  File "stress2d_shear.py", line 198, in <module>
    app.run()
  File "/mnt/data/CourseWare/ddp/pysph-bb/source/pysph/solver/application.py", line 470, in run
    self._solver.solve(not self.options.quiet)
  File "/mnt/data/CourseWare/ddp/pysph-bb/source/pysph/solver/solver.py", line 513, in solve
    self.execute_commands(self)
  File "/mnt/data/CourseWare/ddp/pysph-bb/source/pysph/solver/controller.py", line 257, in execute_commands
    self.run_queued_commands()
  File "/mnt/data/CourseWare/ddp/pysph-bb/source/pysph/solver/controller.py", line 284, in run_queued_commands
    meth, args, kwargs = self.queue_dict[lock_id]
KeyError: 140194511319312

An attempt to fix this issue is committed in 
http://code.google.com/r/pankaj86-pysph/source/detail?r=d7848e9babb9adda2ad930f9
f4545986972ac275 
Waiting on further testing before pushing

Original comment by pankaj86 on 19 Jun 2011 at 6:12