Unity crash from overloading

Hi, I’m working with the “Curvy” plug-in.

I’m using it in a way that for every click on the game, a dot is being drawn, which creates a node in the plugin which creates a path node for the mesh, it’s like drawing a track.

Also, for every click, I have something like 10 different stacks that hold information about this node, so I can undo the last action.

From some reason, as soon as I pass the 20th node (I didn’t count) the game simply stands still, nothing happens, and I have to exit manually, it happens on the pc, and also on the android device. I have no idea why that happens.

By the way, music is still playing in the background, but the game simply stuck, it’s sort of a crash.

I’m getting no errors at all, any idea what happens?

Sounds like some memory leak within the node Curvy system, or in your code, not sure, but that is what is looking like