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

Stuck in an infinity loop in Genome::Genome(std::ifstream &a_DataFile) #64

Open
ClarkyMacLeod opened this issue Apr 26, 2021 · 0 comments

Comments

@ClarkyMacLeod
Copy link

I saved my previous population with Genome::Save(FILE *a_file) and stopped the evolution.
When I tried to resume where I left, the program froze and threw a Runtime Error.

After some digging and debugging, I found the Bug.
In the Genome constructor, Genome.cpp, row 3467 is a do-while loop, which runs forever, when the file format given as an argument uses commas instead of dots as decimal separator.

The workaround is to change the language format in the OS-settings.

Steps to reproduce the issue:

Change your formats for numbers etc. so it uses commas for decimal separators: 3,14 instead of 3.14.
Let population evolve and interrupt the process after a couple generations and save your progress with Genome::Save(FILE *a_file).
Then load your previously evolved population with NEAT.Population(a_file)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant