you are probably creating an infinite loop.
make sure a while event has a way to get out.
since the event sheet runs every tick there is also a very good chance you don't need while - as long as the main condition is true the event will keep running every tick without using while.