Thank you for your answer Erel, Effectively a blank UI program do not throw the error. I am also able to create a layout and it shows, but as soon as I add a button I have the error. I did not test all the views but I know a label works but a button crash.
I also have another question, is it normal I cannot see the program running in a VNC viewer I can only see it on an HDMI display.