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

it doesn’t help cause when the bug happenes sit doesn’t call draw anymore

This is the first time I’ve ever heard of draw() stalling. Someone can correct me if I’m wrong but I thought that the loop() was based on some little vibrating crystal in the guts of a computer, the ‘internal clock’. I just can’t imagine that failing. I think there is a battery somewhere that keeps it powered up.