Looks like you are setting resolution which your GPU doesn't support or something?

Try to play with r_mode 4 for test. Also make sure you have latest GPU drivers.