Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unhandled exception output having extra blank lines #234

Open
hhyyrylainen opened this issue Dec 15, 2022 · 0 comments
Open

Fix unhandled exception output having extra blank lines #234

hhyyrylainen opened this issue Dec 15, 2022 · 0 comments
Labels

Comments

@hhyyrylainen
Copy link
Member

For some reason the launcher output (and perhaps only on Windows), has extra lines between exception lines:

Background task caused an exception: System.AggregateException: One or more errors occurred. (Object reference not set to an instance of an object) ---> System.NullReferenceException: Object reference not set to an instance of an object



  at AutoEvo.ChunkFoodSource.FitnessScore (Species species, AutoEvo.SimulationCache simulationCache, WorldGenerationSettings worldSettings) [0x0002e] in <197e20afc99848a09209810cf2fe82cc>:0 



  at AutoEvo.PopulationSimulation.SimulatePatchStep (AutoEvo.SimulationConfiguration simulationConfiguration, Patch patch, System.Collections.Generic.IEnumerable`1[T] genericSpecies, System.Random random, AutoEvo.SimulationCache cache, IAutoEvoConfiguration autoEvoConfiguration, WorldGenerationSettings worldSettings) [0x001f6] in <197e20afc99848a09209810cf2fe82cc>:0 



  at AutoEvo.PopulationSimulation.RunSimulationStep (AutoEvo.SimulationConfiguration parameters, System.Collections.Generic.List`1[T] species, System.Collections.Generic.IEnumerable`1[T] patchesToSimulate, System.Random random, AutoEvo.SimulationCache cache, IAutoEvoConfiguration autoEvoConfiguration, WorldGenerationSettings worldSettings) [0x00057] in <197e20afc99848a09209810cf2fe82cc>:0 



  at AutoEvo.PopulationSimulation.Simulate (AutoEvo.SimulationConfiguration parameters, AutoEvo.SimulationCache existingCache) [0x000bc] in <197e20afc99848a09209810cf2fe82cc>:0 



  at AutoEvo.FindBestMutation.TryVariant () [0x00082] in <197e20afc99848a09209810cf2fe82cc>:0 



  at AutoEvo.VariantTryingStep.RunStep (AutoEvo.RunResults results) [0x0002d] in <197e20afc99848a09209810cf2fe82cc>:0 



  at AutoEvoRun.RunSingleStepToCompletion (AutoEvo.IRunStep step) [0x00008] in <197e20afc99848a09209810cf2fe82cc>:0 



  at AutoEvoRun+<>c__DisplayClass58_0.<Step>b__1 () [0x00000] in <197e20afc99848a09209810cf2fe82cc>:0 



  at System.Threading.Tasks.Task.InnerInvoke () [0x0000f] in <c84d94161bca414384015e66544862cf>:0 



  at System.Threading.Tasks.Task.Execute () [0x00000] in <c84d94161bca414384015e66544862cf>:0 



   --- End of inner exception stack trace ---



---> (Inner Exception #0) System.NullReferenceException: Object reference not set to an instance of an object



  at AutoEvo.ChunkFoodSource.FitnessScore (Species species, AutoEvo.SimulationCache simulationCache, WorldGenerationSettings worldSettings) [0x0002e] in <197e20afc99848a09209810cf2fe82cc>:0 



  at AutoEvo.PopulationSimulation.SimulatePatchStep (AutoEvo.SimulationConfiguration simulationConfiguration, Patch patch, System.Collections.Generic.IEnumerable`1[T] genericSpecies, System.Random random, AutoEvo.SimulationCache cache, IAutoEvoConfiguration autoEvoConfiguration, WorldGenerationSettings worldSettings) [0x001f6] in <197e20afc99848a09209810cf2fe82cc>:0 



  at AutoEvo.PopulationSimulation.RunSimulationStep (AutoEvo.SimulationConfiguration parameters, System.Collections.Generic.List`1[T] species, System.Collections.Generic.IEnumerable`1[T] patchesToSimulate, System.Random random, AutoEvo.SimulationCache cache, IAutoEvoConfiguration autoEvoConfiguration, WorldGenerationSettings worldSettings) [0x00057] in <197e20afc99848a09209810cf2fe82cc>:0 



  at AutoEvo.PopulationSimulation.Simulate (AutoEvo.SimulationConfiguration parameters, AutoEvo.SimulationCache existingCache) [0x000bc] in <197e20afc99848a09209810cf2fe82cc>:0 



  at AutoEvo.FindBestMutation.TryVariant () [0x00082] in <197e20afc99848a09209810cf2fe82cc>:0 



  at AutoEvo.VariantTryingStep.RunStep (AutoEvo.RunResults results) [0x0002d] in <197e20afc99848a09209810cf2fe82cc>:0 



  at AutoEvoRun.RunSingleStepToCompletion (AutoEvo.IRunStep step) [0x00008] in <197e20afc99848a09209810cf2fe82cc>:0 



  at AutoEvoRun+<>c__DisplayClass58_0.<Step>b__1 () [0x00000] in <197e20afc99848a09209810cf2fe82cc>:0 



  at System.Threading.Tasks.Task.InnerInvoke () [0x0000f] in <c84d94161bca414384015e66544862cf>:0 



  at System.Threading.Tasks.Task.Execute () [0x00000] in <c84d94161bca414384015e66544862cf>:0 <---





Background task caused an exception: System.AggregateException: One or more errors occurred. (Object reference not set to an instance of an object) ---> System.NullReferenceException: Object reference not set to an instance of an object



  at System.Linq.Enumerable.Where[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x0001c] in <8dc7f7cf628440cbb575eaa126cc9c6d>:0 



  at AutoEvo.PopulationSimulation.RunSimulationStep (AutoEvo.SimulationConfiguration parameters, System.Collections.Generic.List`1[T] species, System.Collections.Generic.IEnumerable`1[T] patchesToSimulate, System.Random random, AutoEvo.SimulationCache cache, IAutoEvoConfiguration autoEvoConfiguration, WorldGenerationSettings worldSettings) [0x00045] in <197e20afc99848a09


@hhyyrylainen hhyyrylainen moved this to High priority bugs / issues in Thrive Planning Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: High priority bugs / issues
Development

No branches or pull requests

1 participant