Compiled a new firmware, flashed successfully, but cannot calibrate

I added a new airframe, compiled and uploaded, I did this through linux command and QGC, both works, but when I try to calibrate compass, it freeze. What is the problems?