heal-research / HeuristicLab

HeuristicLab - An environment for heuristic and evolutionary optimization
https://dev.heuristiclab.com
GNU General Public License v3.0
39 stars 16 forks source link

GUI might freeze when downloading multiple Hive jobs concurrently #2834

Open HeuristicLab-Trac-Bot opened 7 years ago

HeuristicLab-Trac-Bot commented 7 years ago

Issue migrated from trac ticket # 2834

milestone: HeuristicLab 3.3.17 | component: Hive.Client | priority: medium

2017-09-11 19:09:35: @gkronber created the issue


I ran into what seems to be a GUI deadlock today while I was downloading Jobs from the Hive Server (multiple downloads concurrently).

The threads stopped in the following methods:

  • HeuristicLab.Clients.Hive.JobManager.Views.RefreshableHiveJobView.OnContentChanged
  • HeuristicLab.MainForm.WindowsForms.AsynchronousContentView.Invoke
  • System.Windows.Forms.Control.WaitForWaitHandle

The GUI froze but execution of algorithms in the background was not affected.

RefreshableHiveJobView.OnContentChanged contains a lock() statement. The code in OptimizerHiveTask contains operations with ReaderWriterLocks. I presume the observed behavior can be traced back to these methods.

HeuristicLab-Trac-Bot commented 6 years ago

2017-11-16 16:36:01: @abeham changed milestone from HeuristicLab 3.3.15 to HeuristicLab 3.3.16

HeuristicLab-Trac-Bot commented 5 years ago

2019-07-17 22:33:45: @abeham changed milestone from HeuristicLab 3.3.16 to HeuristicLab 3.3.17

HeuristicLab-Trac-Bot commented 5 years ago

2019-07-17 22:33:45: @abeham commented


I would suggest to move this to 3.3.17. As a workaround, download all jobs in sequence.