11235813 / matlabadin

Automatically exported from code.google.com/p/matlabadin
0 stars 0 forks source link

fsm.exe crashes when parallelization is initiated #19

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. run calc_statscaling after updating the C# code
2. Once the code starts the hit scaling loop and enters the "if useParallel" 
section of rotation_model, the following error occurs:

Deleting file 
data\\^WB_^SS_SotR_CS_J_AS_Cons_HW\\Prot_003000\\T3_10000_90000_1_.csv as it 
was generated by a previous build. 
Deleting file 
data\\^WB_^SS_SotR_CS_J_AS_Cons_HW\\Prot_003000\\T3_10000_90000_1_.csv as it 
was generated by a previous build. 
Deleting file 
data\\^WB_^SS_SotR_CS_J_AS_Cons_HW\\Prot_003000\\T3_10000_90000_1_.csv as it 
was generated by a previous build. 
Deleting file 
data\\^WB_^SS_SotR_CS_J_AS_Cons_HW\\Prot_003000\\T3_10000_90000_1_.csv as it 
was generated by a previous build. 
Deleting file 
data\\^WB_^SS_SotR_CS_J_AS_Cons_HW\\Prot_003000\\T3_10000_90000_1_.csv as it 
was generated by a previous build. 
Deleting file 
data\\^WB_^SS_SotR_CS_J_AS_Cons_HW\\Prot_003000\\T3_10000_90167_1_.csv as it 
was generated by a previous build. 
Deleting file 
data\\^WB_^SS_SotR_CS_J_AS_Cons_HW\\Prot_003000\\T3_10000_90167_1_.csv as it 
was generated by a previous build. 
Deleting file 
data\\^WB_^SS_SotR_CS_J_AS_Cons_HW\\Prot_003000\\T3_10000_90167_1_.csv as it 
was generated by a previous build. 
Deleting file 
data\\^WB_^SS_SotR_CS_J_AS_Cons_HW\\Prot_003000\\T3_10000_90167_1_.csv as it 
was generated by a previous build. 
Deleting file 
data\\^WB_^SS_SotR_CS_J_AS_Cons_HW\\Prot_003000\\T3_10000_90167_1_.csv as it 
was generated by a previous build. 
Deleting file 
data\\^WB_^SS_SotR_CS_J_AS_Cons_HW\\Prot_003000\\T3_10000_90167_1_.csv as it 
was generated by a previous build. 
Deleting file 
data\\^WB_^SS_SotR_CS_J_AS_Cons_HW\\Prot_003000\\T3_10000_90167_1_.csv as it 
was generated by a previous build. 
Deleting file 
data\\^WB_^SS_SotR_CS_J_AS_Cons_HW\\Prot_003000\\T3_10000_90167_1_.csv as it 
was generated by a previous build. 
Unhandled Exception: System.AggregateException: One or more errors occurred. 
---> System.Collections.Generic.KeyNotFoundException: The given key was not 
present in the dictionary. 
   at Matlabadin.MatlabadinGraph`1.<>c__DisplayClassb.<.ctor>b__5(Choice c) 
   at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext() 
   at System.Linq.Buffer`1..ctor(IEnumerable`1 source) 
   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source) 
   at Matlabadin.MatlabadinGraph`1..ctor(MatlabadinGraph`1 graph, GraphParameters`1 gp) 
   at Matlabadin.Program.GenerateGraph(Int64GraphParameters gp, String rotation, Double[]& hintPr) 
   at Matlabadin.Program.ProcessGraph(TextWriter stream, String rotation, Int32 stepsPerGcd, PaladinSpec spec, PaladinTalents talents, Double haste, Double mehit, Double sphit) 
   at Matlabadin.Program.ProcessGraph(String file, String rotation, Int32 stepsPerGcd, PaladinSpec spec, PaladinTalents talents, Double haste, Double mehit, Double sphit) 
   at Matlabadin.Program.ProcessParams(String[] args) 
   at System.Threading.Tasks.Task.Execute() 
   --- End of inner exception stack trace --- 
   at System.Threading.Tasks.Task.WaitAll(Task[] tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) 
   at System.Threading.Tasks.Task.WaitAll(Task[] tasks, Int32 millisecondsTimeout) 
   at System.Threading.Tasks.Task.WaitAll(Task[] tasks) 
   at Matlabadin.Program.ParallelProcess(TextReader input) 
   at Matlabadin.Program.Main(String[] args)

and a pop-up window warning that fsm.exe has crashed appears.  Clicking "OK" on 
the window will allow the program to resume, but the same error may occur 
multiple times in both the hit and exp loops.

Original issue reported on code.google.com by theckhd on 8 Apr 2012 at 11:11

GoogleCodeExporter commented 8 years ago

Original comment by iminmm...@gmail.com on 9 Apr 2012 at 5:59