Mystery of escaping a while loop?

It just cycles through led brightness level from the end of an array to the start of it and then back up again. The issue is that it somehow escapes and I cannot see why it would meet the condition


while(pulse_complete == false)

on its time going through the code and escapes immediately.