Please see how to report bugs.
It doesn't seem to be a C2 bug, but probably you've made an inifinite while loop.
See the system conditions manual entry:
Repeat the event until one of the other conditions in the event becomes false or a Stop loop action is used. Be careful not to create infinite loops which will cause the game to hang.
So here it is, you need another condition along your while that will be false at some point to stop it.
Or use the system action "Stop loop".
This is probably a topic you should have posted in the "How do I" forums, rather than in the "Bugs".