GSB Forums

Exception

roma_1111 - 10-7-2017 at 10:36 AM

Hello Peter,
I was trying to run GSB on @FGBL data (German Bund).
I get always this exception

Exception.png - 66kB

admin - 10-7-2017 at 05:18 PM

Can you zip up the data file and send to me?
Also give me the exception code as .txt file.
A screen shot of the GUI would be good too.
A tip can be, use GSB on the defaults, then vary things a bit.
Changing lots of things at once when your not familiar with GSB is more likely to land you
in unproductive areas.

roma_1111 - 11-7-2017 at 03:01 AM

Yes,
here is the .txt
System.AggregateException: One or more errors occurred. ---> System.ArgumentException: Destination array was not long enough. Check destIndex and length, and the array's lower bounds.
at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
at System.Collections.Generic.List`1.ToArray()
at GSB.Optimizers.Optimizer.UpdatePerformancesTop(PerformanceSummary performance)
at GSB.Optimizers.Optimizer.UpdateState(PerformanceCombined pc, ParallelLoopState state)
at GSB.Optimizers.GeneticAlgorithm.BackTest(Single[] parameters, Int32 i, ParallelLoopState state, PerformanceSummary[] performances)
at GSB.Optimizers.GeneticAlgorithm.<>c__DisplayClass83_0.b__0(Int32 i, ParallelLoopState state)
at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.b__1()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass176_0.b__0(Object )
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)
at System.Threading.Tasks.Parallel.For(Int32 fromInclusive, Int32 toExclusive, Action`2 body)
at GSB.Optimizers.GeneticAlgorithm.OptimizeChromosomes(Chromosome[] chromosomes, Int32 index)
at GSB.Optimizers.GeneticAlgorithm.Optimize()
at GSB.Optimizers.Optimizer.Optimize(Boolean isResume)
at GSB.UI.Forms.MainForm.<>c__DisplayClass107_0.b__0()
---> (Inner Exception #0) System.ArgumentException: Destination array was not long enough. Check destIndex and length, and the array's lower bounds.
at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
at System.Collections.Generic.List`1.ToArray()
at GSB.Optimizers.Optimizer.UpdatePerformancesTop(PerformanceSummary performance)
at GSB.Optimizers.Optimizer.UpdateState(PerformanceCombined pc, ParallelLoopState state)
at GSB.Optimizers.GeneticAlgorithm.BackTest(Single[] parameters, Int32 i, ParallelLoopState state, PerformanceSummary[] performances)
at GSB.Optimizers.GeneticAlgorithm.<>c__DisplayClass83_0.b__0(Int32 i, ParallelLoopState state)
at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.b__1()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass176_0.b__0(Object )<---

Where can I find the data file?

Thank You

admin - 11-7-2017 at 04:34 AM

data files are in Data\Price Data
can you email me team viewer details so I can look at this?

admin - 11-7-2017 at 10:56 PM

Problem was due to a machine that had 3.5 gb ram, less usable