QGC crashes when changing airframe?

I’m buiding qgrouncontrol from source code and when I run it from QT or build and an image and run it and after connecting to px4 when I change the airfram and press apply and restart it crashes? This does not happen with qgroundcontrol image present online.