In case the file contained invalid commands, this was shown to the user by
using vb_echo() which writes the error message into the inpubox. But this
triggered the already buffer_changed_cb that delegated the changed buffer
event to the current mode.
Long story short, there was no current mode set before which caused the
segfault.
 #endif
     map_init();
 
+    /* enter normal mode */
+    vb_enter('n');
+
     setup_signals();
 
     /* make sure the main window and all its contents are visible */
         g_object_set(G_OBJECT(setting), "enable-default-context-menu", false, NULL);
     }
 
-    /* enter normal mode */
-    vb_enter('n');
-
     vb.config.default_zoom = 1.0;
 
 #ifdef FEATURE_HIGH_DPI