The problem I have is not the same as the ticket. For one thing, I get
it "every time", lnot "occasionally"; also I am on X11, not Wayland.
Typing "gvim -N -u NONE" in a bash shell opens gvim with menu and
toolbar but no vertical space for a future editfile; in order to see a
command line I have to maximize the screen manually.
With just "gvim" my vimrc, which removes the toolbar display, is
sourced, and the GUI window is even smaller, just enough for the
menubar. In this case there is (every time) a message on the terminal
where gvim was started:
(gvim:1066803): Gtk-CRITICAL **: 11:46:29.128:
gtk_distribute_natural_allocation: assertion 'extra_space >= 0' failed
but not when sourcing the vimrc is avoided by one of -u NONE -u NORC
or -u DEFAULTS.
After -u DEFAULTS the GUI opens with a menubar, toolbar, and even a
visible comand-line, but no more than one line of edit window (or is
it an empty status line ?) above it