heal-research / HeuristicLab

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

Statistical tests view throws exception before opening #2354

Closed HeuristicLab-Trac-Bot closed 9 years ago

HeuristicLab-Trac-Bot commented 9 years ago

Issue migrated from trac ticket # 2354

milestone: HeuristicLab 3.3.12 | component: Analysis.Statistics.Views | priority: medium | resolution: done

2015-03-08 17:59:27: @abeham created the issue


To reproduce:

  • Open GA-TSP sample
  • Change MaximumGenerations to 10, change PopulationSize to 10
  • Make 6 runs
  • Change PopulationSize to 20
  • Make 6 runs
  • Open statistical tests view on RunCollection

In my case I got this exception and the view didn't open:

System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
   at System.Collections.Generic.List`1.get_Item(Int32 index)
   at HeuristicLab.Analysis.Views.HistogramControl.CalculateDensity(Series series, List`1 row, Double bandwidth) in c:\SomePath\HL3\stable\HeuristicLab.Analysis.Views\3.3\HistogramControl.cs:line 199
   at HeuristicLab.Analysis.Views.HistogramControl.UpdateHistogram(Double bandwith) in c:\SomePath\HL3\stable\HeuristicLab.Analysis.Views\3.3\HistogramControl.cs:line 180
   at HeuristicLab.Analysis.Views.HistogramControl.AddPoints(String name, IEnumerable`1 points, Boolean replace) in c:\SomePath\HL3\stable\HeuristicLab.Analysis.Views\3.3\HistogramControl.cs:line 119
   at HeuristicLab.Analysis.Statistics.Views.StatisticalTestsView.GenerateChart(DataTable histogramTable) in c:\SomePath\HL3\stable\HeuristicLab.Analysis.Statistics.Views\3.3\StatisticalTestsView.cs:line 232
   at HeuristicLab.Analysis.Statistics.Views.StatisticalTestsView.RebuildDataTable() in c:\SomePath\HL3\stable\HeuristicLab.Analysis.Statistics.Views\3.3\StatisticalTestsView.cs:line 226
   at HeuristicLab.Analysis.Statistics.Views.StatisticalTestsView.groupComboBox_SelectedValueChanged(Object sender, EventArgs e) in c:\SomePath\HL3\stable\HeuristicLab.Analysis.Statistics.Views\3.3\StatisticalTestsView.cs:line 269
   at System.Windows.Forms.ComboBox.OnSelectedValueChanged(EventArgs e)
   at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)
   at System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value)
   at HeuristicLab.Analysis.Statistics.Views.StatisticalTestsView.OnContentChanged() in c:\SomePath\HL3\stable\HeuristicLab.Analysis.Statistics.Views\3.3\StatisticalTestsView.cs:line 80
   at HeuristicLab.MainForm.WindowsForms.ContentView.set_Content(IContent value) in c:\SomePath\HL3\stable\HeuristicLab.MainForm.WindowsForms\3.3\Views\ContentView.cs:line 52
   at HeuristicLab.MainForm.WindowsForms.ViewHost.OnContentChanged() in c:\SomePath\HL3\stable\HeuristicLab.MainForm.WindowsForms\3.3\Controls\ViewHost.cs:line 149
   at HeuristicLab.MainForm.WindowsForms.ContentView.set_Content(IContent value) in c:\SomePath\HL3\stable\HeuristicLab.MainForm.WindowsForms\3.3\Views\ContentView.cs:line 52
   at HeuristicLab.MainForm.WindowsForms.MainForm.ShowContent(IContent content, Type viewType) in c:\SomePath\HL3\stable\HeuristicLab.MainForm.WindowsForms\3.3\MainForms\MainForm.cs:line 261
   at HeuristicLab.Optimization.Views.RunCollectionView.menuItem_Click(Object sender, EventArgs e) in c:\SomePath\HL3\stable\HeuristicLab.Optimization.Views\3.3\RunCollectionViews\RunCollectionView.cs:line 349
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
HeuristicLab-Trac-Bot commented 9 years ago

2015-03-10 10:49:26: @Shabbafru changed status from new to accepted

HeuristicLab-Trac-Bot commented 9 years ago

2015-03-10 10:49:26: @Shabbafru commented


r12173 fixed bug in HistogramControl when the interval is zero

HeuristicLab-Trac-Bot commented 9 years ago

2015-03-10 10:49:37: @Shabbafru changed status from accepted to reviewing

HeuristicLab-Trac-Bot commented 9 years ago

2015-03-10 10:49:37: @Shabbafru changed owner from @Shabbafru to @abeham

HeuristicLab-Trac-Bot commented 9 years ago

2015-03-10 12:59:40: @abeham changed status from reviewing to assigned

HeuristicLab-Trac-Bot commented 9 years ago

2015-03-10 12:59:40: @abeham changed owner from @abeham to @Shabbafru

HeuristicLab-Trac-Bot commented 9 years ago

2015-03-10 12:59:40: @abeham commented


The histogram page now is just empty. The legend is displayed, but no chart is actually drawn. Please put a message on the view that displays the reason for the missing chart...

Take a look at the bubble chart for example. A similar message is displayed there when you first open it.

HeuristicLab-Trac-Bot commented 9 years ago

2015-06-16 14:36:22: @Shabbafru changed status from assigned to accepted

HeuristicLab-Trac-Bot commented 9 years ago

2015-06-16 14:36:22: @Shabbafru commented


r12458 show label when no data is displayed and don't show the legend

HeuristicLab-Trac-Bot commented 9 years ago

2015-06-16 14:36:51: @Shabbafru changed status from accepted to reviewing

HeuristicLab-Trac-Bot commented 9 years ago

2015-06-16 14:36:51: @Shabbafru changed owner from @Shabbafru to @abeham

HeuristicLab-Trac-Bot commented 9 years ago

2015-07-08 13:36:23: @abeham changed status from reviewing to readytorelease

HeuristicLab-Trac-Bot commented 9 years ago

2015-07-08 13:36:23: @abeham changed owner from @abeham to @Shabbafru

HeuristicLab-Trac-Bot commented 9 years ago

2015-07-08 13:36:23: @abeham commented


Tested the functionality, it works. I think we may run into a merge conflict with ticket #2270. They should be released together.

HeuristicLab-Trac-Bot commented 9 years ago

2015-07-11 13:38:03: @Shabbafru changed status from readytorelease to closed

HeuristicLab-Trac-Bot commented 9 years ago

2015-07-11 13:38:03: @Shabbafru removed resolution

HeuristicLab-Trac-Bot commented 9 years ago

2015-07-11 13:38:03: @Shabbafru commented


r12725: merged r12173, r12458, r12077, r12599, r12613, r12112, r12116, r12117, r12131, r12631, r12672, r12684, r12690, r12692 into stable