Program "crashes" when I setResizable(true) and resize the Window

everything stopped working the program crashed