Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#1148 closed defect (done)

Running an experiment may throw an exception when updating the ExecutionTime

Reported by: abeham Owned by: swagner
Priority: high Milestone: HeuristicLab 3.3.1
Component: Core.Views Version: 3.3.1
Keywords: Cc: mkommend

Description

To reproduce:

  1. Create a new experiment
  2. Create a new batch run
  3. Create a new GeneticAlgorithm and a TravelingSalesmanProblem
  4. With all these elements open in the same view, click run on the experiment
  5. Click in the experiment's optimizer list to hide all views

An exception is thrown in HeuristicLab.Core.Views.EngineView.cs:97

Exception detail:
System.NullReferenceException occurred
  Message=Object reference not set to an instance of an object.
  Source=HeuristicLab.Core.Views-3.3
  StackTrace:
   at HeuristicLab.Core.Views.EngineView.Content_ExecutionTimeChanged(Object sender, EventArgs e)
   at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
   at System.Threading.ExecutionContext.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.UserControl.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.Run(Form mainForm)
   at HeuristicLab.Optimizer.HeuristicLabOptimizerApplication.Run()
   at HeuristicLab.PluginInfrastructure.DefaultApplicationManager.Run(ApplicationDescription appInfo) in D:\HL3\trunk\sources\HeuristicLab.PluginInfrastructure\3.3\DefaultApplicationManager.cs:line 123
   at HeuristicLab.PluginInfrastructure.DefaultApplicationManager.Run(ApplicationDescription appInfo)
   at HeuristicLab.PluginInfrastructure.Manager.PluginManager.Run(ApplicationDescription appInfo) in D:\HL3\trunk\sources\HeuristicLab.PluginInfrastructure\3.3\Manager\PluginManager.cs:line 130
   at HeuristicLab.PluginInfrastructure.Starter.StarterForm.<>c__DisplayClass8.<StartApplication>b__6() in D:\HL3\trunk\sources\HeuristicLab.PluginInfrastructure\3.3\Starter\StarterForm.cs:line 144

Change History (4)

comment:1 Changed 12 years ago by swagner

  • Status changed from new to assigned

comment:2 Changed 12 years ago by swagner

  • Resolution set to fixed
  • Status changed from assigned to closed
  • Version changed from 3.3 to 3.3.1

Fixed in r4216.

comment:3 Changed 12 years ago by swagner

  • Milestone changed from Iteration 4 to Current

Milestone Iteration 4 deleted

comment:11 Changed 12 years ago by swagner

  • Milestone changed from Current to HeuristicLab 3.3.0

Milestone Current deleted

Note: See TracTickets for help on using tickets.