CppStars / mb-unit

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

Icarus - ArgumentOutOfRangeException when reloading a dll #645

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
This occurred when I had loaded my test dll, changed the name of the
classes within that dll, and clicked "Reload" - "An exception occurred
while running a task" was displayed.

Tested on Gallio Icarus 3.2 build 385 from GallioBundle-3.2.388.0-Setup-x86.msi

System.ArgumentOutOfRangeException: Total work units must be finite and
positive or NaN.
Parameter name: totalWorkUnits
Actual value was 0.
ActualValue: 0
ParamName: totalWorkUnits
   at
Gallio.Runtime.ProgressMonitoring.ObservableProgressMonitor.BeginTask(String 
taskName,
Double totalWorkUnits) in c:\Server\Projects\MbUnit
v3.2\Work\src\Gallio\Gallio\Runtime\ProgressMonitoring\ObservableProgressMonitor
.cs:line
224
   at Gallio.Icarus.Commands.RestoreFilterCommand.Execute(IProgressMonitor
progressMonitor)
   at Gallio.Icarus.Commands.ReloadCommand.Execute(IProgressMonitor
progressMonitor)
   at
Gallio.UI.ProgressMonitoring.TaskManager.<>c__DisplayClass6.<RunTask>b__4()
Reported by: 
UnhandledExceptionPolicy
   at Gallio.UI.Common.Policies.UnhandledExceptionPolicy.Report(String
message, Exception unhandledException)
   at
Gallio.UI.ProgressMonitoring.TaskManager.<>c__DisplayClass6.<RunTask>b__5(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)
   at System.Threading.ThreadHelper.ThreadStart()

Original issue reported on code.google.com by gmcdonald@vividas.com on 30 Mar 2010 at 3:44

GoogleCodeExporter commented 8 years ago
Hmm, interesting.

Original comment by grahamr...@gmail.com on 30 Mar 2010 at 4:46

GoogleCodeExporter commented 8 years ago
Getting this one when reloading a dll in 3.2 build 505:

System.ArgumentOutOfRangeException: Value of '5' is not valid for 'Value'. 
'Value' should be between 'minimum' and 'maximum'.
Parameter name: Value
ParamName: Value
   at System.Windows.Forms.ProgressBar.set_Value(Int32 value)
   at Gallio.UI.ProgressMonitoring.ToolStripProgressBar.set_CompletedWork(Double value)
   at Gallio.Icarus.Main.<.ctor>b__a(Object s, PropertyChangedEventArgs e)
   at System.ComponentModel.PropertyChangedEventHandler.Invoke(Object sender, PropertyChangedEventArgs e)
   at Gallio.UI.DataBinding.Observable`1.OnPropertyChanged()
   at Gallio.UI.DataBinding.Observable`1.<set_Value>b__4(Object )
Reported by: 
UnhandledExceptionPolicy
   at Gallio.Icarus.IcarusProgram.<UnhandledErrorPolicy>b__5(Object sender, ThreadExceptionEventArgs e)
   at System.Windows.Forms.Application.ThreadContext.OnThreadException(Exception t)
   at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
   at System.Windows.Forms.Control.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.Callback(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(IntPtr 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 Gallio.UI.ErrorReporting.ErrorDialogUnhandledExceptionHandler.RunApplicationWithHandler(Form mainForm)
   at Gallio.Icarus.IcarusProgram.RunImpl(String[] args)
   at Gallio.Runtime.ConsoleSupport.ConsoleProgram`1.Run(IRichConsole console, String[] args) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Runtime\ConsoleSupport\ConsoleProgram.cs:line 198
   at Gallio.Icarus.IcarusProgram.Main(String[] args)

Original comment by gmcdonald@vividas.com on 12 Jul 2010 at 2:11

GoogleCodeExporter commented 8 years ago
Also getting this.

Original comment by dmitrinesteruk on 17 Aug 2010 at 7:42