joaquimcid / mb-unit

Automatically exported from code.google.com/p/mb-unit
0 stars 0 forks source link

An exception occured while running the task #896

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Launch Icarus Test runner
2.Add the test file
3.Error shows Start is disabled

What is the expected output? What do you see instead?

Unhandled exception:
"An exception occured while running the task"  error

System.InvalidOperationException: Invoke or BeginInvoke cannot be called on a 
control until the window handle has been created.
   at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
   at System.Windows.Forms.Control.BeginInvoke(Delegate method, Object[] args)
   at Gallio.Icarus.AnnotationsWindow.<.ctor>b__0(Object sender, ListChangedEventArgs e)
   at System.ComponentModel.BindingList`1.OnListChanged(ListChangedEventArgs e)
   at System.ComponentModel.BindingList`1.FireListChanged(ListChangedType type, Int32 index)
   at System.ComponentModel.BindingList`1.ClearItems()
   at System.Collections.ObjectModel.Collection`1.Clear()
   at Gallio.Icarus.Controllers.AnnotationsController.UpdateList()
   at Gallio.Icarus.Controllers.AnnotationsController.Handle(ExploreFinished event)
   at Gallio.UI.Events.EventHandlerProxy`1.Handle(T event)
   at Gallio.UI.Events.EventAggregator.Send[T](Object sender, T message)
   at Gallio.Icarus.Controllers.TestController.Explore(IProgressMonitor progressMonitor, IEnumerable`1 testRunnerExtensions)
   at Gallio.Icarus.Commands.LoadPackageCommand.ExploreTests(IProgressMonitor progressMonitor)
   at Gallio.Icarus.Commands.LoadPackageCommand.Execute(IProgressMonitor progressMonitor)
   at Gallio.Icarus.Commands.OpenProjectCommand.LoadPackage(IProgressMonitor progressMonitor)
   at Gallio.Icarus.Commands.OpenProjectCommand.Execute(IProgressMonitor progressMonitor)
   at Gallio.UI.ProgressMonitoring.TaskRunner.<>c__DisplayClass2.<BeginNextTask>b__0()
Reported by: 
UnhandledExceptionPolicy
   at Gallio.UI.Common.Policies.UnhandledExceptionPolicy.Report(String message, Exception unhandledException)
   at Gallio.UI.ProgressMonitoring.TaskRunner.ProcessFailure(Exception exception, String queueId)
   at Gallio.UI.ProgressMonitoring.TaskRunner.TaskTerminated(Task workerTask, String queueId)
   at Gallio.UI.ProgressMonitoring.TaskRunner.<>c__DisplayClass2.<BeginNextTask>b__1(Object , TaskEventArgs )
   at Gallio.Common.Policies.EventHandlerPolicy.SafeInvoke[T](EventHandler`1 handlerChain, Object sender, T e) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Common\Policies\EventHandlerPolicy.cs:line 69
   at Gallio.Common.Concurrency.Task.Notify(EventHandler`1& chain) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Common\Concurrency\Task.cs:line 355
   at Gallio.Common.Concurrency.Task.OnTerminated() in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Common\Concurrency\Task.cs:line 343
   at Gallio.Common.Concurrency.Task.NotifyTerminated(TaskResult result) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Common\Concurrency\Task.cs:line 305
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

What version of the product are you using? On what operating system?
Tried all from 3.2.7 to latest 3.4.14 but throwing the same exception
Windows XP and Windows 7

Please provide any additional information below.
Error also occurs when selecting the other controls in the UI

Original issue reported on code.google.com by monta...@essilor.com.sg on 18 Sep 2012 at 6:35