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

Segmentation fault (core dumped) -- While running example from website #40

Open
MatisPatel opened this issue Jan 25, 2018 · 3 comments
Open

Comments

@MatisPatel
Copy link

MatisPatel commented Jan 25, 2018

So while trying to go through the example from the website I run into this crash.

I do have boost c++ library and the OpenCV 3.3.1 (if that could matter)

Specifically it seems the crash occurs when the genome variable is accessed or used.

Running on ubuntu 16.04, python 3.5.4

params = NEAT.Parameters()

# define pop size as 100 default is 300
params.PopulationSize = 100

# create a 3 inputs and 2 outputs network
genome = NEAT.Genome(0, 3, 0, 2, False, NEAT.ActivationFunction.UNSIGNED_SIGMOID,
NEAT.ActivationFunction.UNSIGNED_SIGMOID, 0, params, 0)

# create the actual Population
pop = NEAT.Population(genome, params, True, 1.0, 0) # the 0 is the RNG seed
@peter-ch
Copy link
Owner

Thanks, I'll check it out.

@MatisPatel
Copy link
Author

Thanks!

@philipphoehn
Copy link

@MatisPatel: Did you ever find the chance to understand this error and find a the cause or a fix? I am running into the same problem, seemingly after a small but seemingly random number of generations when calling pop.Epoch().

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

3 participants