analogWrite freeze the arduino

here the partial of the code

Nope. We need to see all of the code. Which pins are you using for the LEDs?