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

I have just figured out that the time that it breaks it doesn’t call windowResized() which is very odd