SOLVED: The Bug has nothing to do with the Repeat loop, I was just diving by 0 somewhere else and it caused the crash. Huge thank you to Kriand for finding my error!
Just today I opened my Construct project and it suddenly started freezing the Chrome tab with construct 3 and the preview project whenever I try to preview it.
I was using the beta release r118, then r119, now I've copied the whole code into a new file that is in release r111, but still chrome, standalone and firefox all freeze the editor and the preview window due to this condition.
+ System: Repeat 160 times
+ (no conditions)
-----> Val: Add key "Bar"&loopindex+1&"Progress" with value 0
-----> Val: Add key "Bar"&loopindex+1&"TotalFills" with value loopindex=0?1:0
-----> Val: Add key "Bar"&loopindex+1&"Number" with value loopindex+1
-----> Val: Add key "Bar"&loopindex+1&"Income" with value (loopindex+1)^2
-----> Val: Add key "Bar"&loopindex+1&"Speed" with value 1
-----> Val: Add key "Bar"&loopindex+1&"Width" with value 8+((loopindex)×1.8)
-----> Val: Add key "Bar"&loopindex+1&"WidthRandomScale" with value loopindex=0?1:1+((loopindex)÷2)
-----> Val: Add key "Bar"&loopindex+1&"WidthActual" with value 0
The loop is part of a function to setup the dictionary entries that the game uses, and gets called once at the start of the game.
I've already tried disabling and enabling different "Val" Additions (Val being a dictionary), and after removing "Speed" it worked, but now it again freezes.
It doesnt freeze with repeat being on 1, everything above that and C3 and the Preview freeze.
For the last 3 days everything was working fine, and I don't think I can really find a workaround for this essential component.
Anyone have any idea what this may be?
Edit: Added clarification that the loop gets called on once at the start of the layout.