Other aps usually dont have popup menu created all the time and they create it only in popup-menu signal handler (and maybe in button-press-event too).
Simple "fix" for this crash is to add `gtk_widget_grab_focus(vc->vte);` into vte_popup_menu_clicked / POPUP_PASTE.