Luca Russo

Results 8 comments of Luca Russo

While running the code today i got a similar error with a more detailed stack trace. Looks like the problem is related to multiprocessing. ``` Windows fatal exception: access violation...

Thanks for the reply and for developing this great library. I'm not sure what you mean by call into Pymunk but I'll give you a brief step-by-step summary of what...

Really appreciate you going to the effort. I've found that reducing the number of pymunk objects causes less frequent crashes. When i first reported the problem i had `self.n_genes` in...

`n_genes` corresponds to the number limbs that the randomly generated creature has. By increasing `n_genes` by 1 you add an additional `pymunk.Body()`, `pymunk.Segment()` and between 1-3 `pymunk.constraints()`. A `PivotJoint` is...

Fantastic, thank you so much for the help. I'll add your modification and see if the error happens anymore. Will keep the issue open for another day but hopefully that...

Following your example I've added some code to manually set all the `pymunk.Body()` and `pymunk.Segment` objects in the error causing dictionary to `None`. ``` for organism in population.cohort.values(): for limb...

Error hasn't occurred since manually resetting objects in the dictionary as mentioned above. Looks like the issue was caused by freeing a large number of pymunk shapes from memory simultaneously.