I can reproduce this with another (tiling) windowmanager: Debian Sid (upgraded today) with wmii. It works as long as I keep the window on the screen where I started gvim. When I move it to my second screen it freezes, resulting in the error you quoted on the terminal.