Editor crashes after stop playing

Just the 4.5 puzzle game template. I had modified it to use hexes instead of squares, and I was doing two nested loops for spawning the hexes.

The crashes were random, I think one happened when I clicked Stop after ejecting from the controller, and another happened when I was still controlling.

They are no longer happening, although I have no idea what is responsible for that.