PreArm: EKF attitude is bad

I use the command “sim_vehicle.py -w -v ArduCopter --map --console” to start the SITL, but it failed and it gave the message “PreArm:EKF attitude is bad”