In the above I get an infinite loop in the second for each loop even though it’s not doing anything at the moment. I have checked the startY and endY values and startY is always less than endY.
You might be running into the Blueprint Loop limit. Although this defaults to 1000000, which should be enough for most cases, nested loops can cause you to reach the limit anyway.
You can increase the limit in the Project Settings > Engine: General Settings > Blueprints.
I placed a break point but when I press Play it never gets caught and just crashes because of the infinite loop. No matter where I place the break point.
Not it means breakpoints aren’t working, because I put a print statement in the loop and a breakpoint on that and run it and it prints but it doesn’t break.
The crash log says there is an infinite loop at my two loops.
Just for clarification: Both of these screenshots show separate loops, right? And both are aborted as “infinite loops”?
In the first example, what happens inside the second loop? The first screenshot stops just where it gets interesting. How many iterations of loop 2 does it go through? (Use a Print node if you haven’t done that already.)