peter-ch / MultiNEAT

Portable NeuroEvolution Library
http://MultiNEAT.com
GNU Lesser General Public License v3.0
327 stars 104 forks source link

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

Open MatisPatel opened 6 years ago

MatisPatel commented 6 years ago

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 commented 6 years ago

Thanks, I'll check it out.

MatisPatel commented 6 years ago

Thanks!

philipphoehn commented 3 years ago

@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().