heal-research / HeuristicLab

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

Exception when changing the threshold in a classification threshold view #2808

Open HeuristicLab-Trac-Bot opened 6 years ago

HeuristicLab-Trac-Bot commented 6 years ago

Issue migrated from trac ticket # 2808

milestone: HeuristicLab 3.3.17 | component: Problems.DataAnalysis.Symbolic.Classification.Views | priority: medium

2017-07-12 16:00:21: @gkronber created the issue


Stack trace:

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
   at System.Windows.Forms.DataVisualization.Charting.Chart.get_Annotations()
   at HeuristicLab.Problems.DataAnalysis.Views.DiscriminantFunctionClassificationSolutionThresholdView.AddThresholds() in C:\reps\HeuristicLab\trunk\sources\HeuristicLab.Problems.DataAnalysis.Views\3.4\Classification\DiscriminantFunctionClassificationSolutionThresholdView.cs:line 170
   at HeuristicLab.Problems.DataAnalysis.Views.DiscriminantFunctionClassificationSolutionThresholdView.Model_ThresholdsChanged(Object sender, EventArgs e) in C:\reps\HeuristicLab\trunk\sources\HeuristicLab.Problems.DataAnalysis.Views\3.4\Classification\DiscriminantFunctionClassificationSolutionThresholdView.cs:line 105
   at System.EventHandler.Invoke(Object sender, EventArgs e)
   at HeuristicLab.Problems.DataAnalysis.DiscriminantFunctionClassificationModel.OnThresholdsChanged(EventArgs e) in C:\reps\HeuristicLab\trunk\sources\HeuristicLab.Problems.DataAnalysis\3.4\Implementation\Classification\DiscriminantFunctionClassificationModel.cs:line 138
   at HeuristicLab.Problems.DataAnalysis.DiscriminantFunctionClassificationModel.SetThresholdsAndClassValues(IEnumerable`1 thresholds, IEnumerable`1 classValues) in C:\reps\HeuristicLab\trunk\sources\HeuristicLab.Problems.DataAnalysis\3.4\Implementation\Classification\DiscriminantFunctionClassificationModel.cs:line 105
   at HeuristicLab.Problems.DataAnalysis.Views.DiscriminantFunctionClassificationSolutionThresholdView.chart_AnnotationPositionChanging(Object sender, AnnotationPositionChangingEventArgs e) in C:\reps\HeuristicLab\trunk\sources\HeuristicLab.Problems.DataAnalysis.Views\3.4\Classification\DiscriminantFunctionClassificationSolutionThresholdView.cs:line 285
   at System.Windows.Forms.DataVisualization.Charting.Chart.OnAnnotationPositionChanging(AnnotationPositionChangingEventArgs& args)
   at System.Windows.Forms.DataVisualization.Charting.Annotation.SetPositionRelative(RectangleF position, PointF anchorPoint, Boolean userInput)
   at System.Windows.Forms.DataVisualization.Charting.Annotation.AdjustLocationSize(SizeF movingDistance, ResizingMode resizeMode, Boolean pixelCoord, Boolean userInput)
   at System.Windows.Forms.DataVisualization.Charting.AnnotationCollection.OnMouseMove(MouseEventArgs e)
   at System.Windows.Forms.DataVisualization.Charting.Chart.OnChartMouseMove(MouseEventArgs e)
   at HeuristicLab.Visualization.ChartControlsExtensions.EnhancedChart.OnMouseMove(MouseEventArgs e) in C:\reps\HeuristicLab\trunk\sources\HeuristicLab.Visualization.ChartControlsExtensions\3.3\EnhancedChart.cs:line 142
   at System.Windows.Forms.Control.WmMouseMove(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
HeuristicLab-Trac-Bot commented 6 years ago

2017-07-13 15:57:51: @gkronber changed milestone from HeuristicLab 3.3.15 to HeuristicLab 3.3.16

HeuristicLab-Trac-Bot commented 5 years ago

2019-07-05 10:53:36: @gkronber changed milestone from HeuristicLab 3.3.16 to HeuristicLab 3.3.17