Skip to content

AddNodeStrategy.CreateChildGenome() has an unhandled case that results in an IndexOutOfRangeException #97

@joelmeaders

Description

@joelmeaders

I'm running into a case where insertIdx1 is resolved to -1, which leads to stopIdx, copyLen and parentIdx being -1. IndexOutOfRangeException is thrown at connArr[childIdx] = newConnArr[newConIdx];

newConnArr:
0,14
8,0

newWeightArr:
-0.4854858
1

parentConnArr:
0,14
4,14
8,14
13,14

parentWeightArr:
-4.0975833
-3.7439632
-0.4854858
0.24271071

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions