[vim/vim] gvim 9.1: resizing the window create transparent rows and columns (Issue #14233)

43 views
Skip to first unread message

Victor Stinner

unread,
Mar 19, 2024, 11:53:50 AM3/19/24
to vim/vim, Subscribed

Steps to reproduce

  1. Open a text file which is larger than the window
  2. Edit the text, if possible near the bottom-right (or at least near the center)
  3. Then resize the window to marge it larger. If possible, larger than the open dialog (see step 3, it's just make the bug easier to spot)
  4. Click on the File menu > Open
  5. See that some rows and lines are transparents

Expected behaviour

Text is renderer properly

Version of Vim

vim-X11-9.1.158-1.fc39.x86_64

Environment

  • OS: Fedora 39
  • Tterminal: GNOME Terminal 3.50.1 (but I'm using gvim)
  • Value of $TERM: xterm-256color
  • Shell: bash-5.2.26-1.fc39.x86_64
  • Xwayland: xorg-x11-server-Xwayland-23.2.4-1.fc39.x86_64
  • Gtk: gtk3-3.24.41-1.fc39.x86_64 (gvim is linked to /lib64/libgtk-3.so.0)

Logs and stack traces

No response


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/14233@github.com>

Christian Brabandt

unread,
Mar 19, 2024, 12:00:02 PM3/19/24
to vim/vim, Subscribed

can you please share a screen shot of the issue?


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/14233/2007567587@github.com>

Victor Stinner

unread,
Mar 19, 2024, 12:00:45 PM3/19/24
to vim/vim, Subscribed

Screenshot showing light rows and columns which are in fact my GNOME background since the gvim windows became partially transparent!

Capture.d.ecran.du.2024-03-19.16-54-05.png (view on web)

After a few edits + resize, gvim becomes completely unusuable, I cannot read text anymore :-(

Capture.d.ecran.du.2024-03-19.16-55-38.png (view on web)

Note: on my screen, it's rendered differently. Photo with my phone camera:

screen.png (view on web)

Sorry for the bad photo quality. It's just to show that it's very different on screen than using GNOME screenshot tool.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/14233/2007569131@github.com>

Christian Brabandt

unread,
Mar 19, 2024, 12:07:19 PM3/19/24
to vim/vim, Subscribed

Is this wayland or X11 environment? Does it happen in the other one?


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/14233/2007583082@github.com>

Victor Stinner

unread,
Mar 19, 2024, 12:13:15 PM3/19/24
to vim/vim, Subscribed

Is this wayland or X11 environment? Does it happen in the other one?

gvim is using X11, GNOME and all other applications are using Wayland. That's why I mentioned Xwayland which is started to run gvim.

Is there a way to run gvim with Wayland?


I started to have this issue after a Fedora update, but I don't know when exactly. "In February". I know for sure that I had this issue at February 20, 2024 since I posted my bug on my Mastodon profile :-)


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/14233/2007596401@github.com>

Victor Stinner

unread,
Mar 19, 2024, 12:14:03 PM3/19/24
to vim/vim, Subscribed

Oh, to check if gvim or another app is used X11 or not, I run import screenshot in a terminal: if the mouse cursor changes on an app, it uses X11, since import is a X11 app :-)


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/14233/2007598158@github.com>

Victor Stinner

unread,
Mar 20, 2024, 7:00:37 AM3/20/24
to vim/vim, Subscribed

Closed #14233 as completed.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issue/14233/issue_event/12183046693@github.com>

Victor Stinner

unread,
Mar 20, 2024, 7:00:45 AM3/20/24
to vim/vim, Subscribed

Sorry, the bug is not in gvim but somewhere lower, such as Mesa.

  • If I run vim with GVIM_ENABLE_WAYLAND=1, I cannot reproduce the bug anymore (gvim using Wayland).
  • If I put XWAYLAND_NO_GLAMOR=1 in /etc/environment, I cannot reproduce the bug anymore (gvim using X11, Xwayland no longer uses hardware optimizations).

I downgraded my Linux kernel from 6.7.9-200.fc39.x86_64 to kernel-6.7.1-200.fc39.x86_64, I can still reproduce the bug. So the kernel should not be in the kernel driver on my "Intel Comet Lake GT2" GPU (IGP?).

It may be a Mesa regression. Anyway, I close this vim bug report.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/14233/2009300418@github.com>

Olivier Fourdan

unread,
Mar 20, 2024, 9:19:01 AM3/20/24
to vim/vim, Subscribed

That seems to be a regression in GLAMOR, see https://gitlab.freedesktop.org/xorg/xserver/-/issues/1655


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/14233/2009546371@github.com>

Christian Brabandt

unread,
Mar 20, 2024, 9:48:47 AM3/20/24
to vim/vim, Subscribed

thansk for updating here!


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/14233/2009609640@github.com>

Victor Stinner

unread,
Mar 20, 2024, 9:54:46 AM3/20/24
to vim/vim, Subscribed

Workarounds:

  • Run gvim with GVIM_ENABLE_WAYLAND=1 environmenet variable.
  • or: Put XWAYLAND_NO_GLAMOR=1 in /etc/environment.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/14233/2009562347@github.com>

Vineet Gupta

unread,
Dec 10, 2024, 8:14:42 PM12/10/24
to vim/vim, Subscribed

Run gvim with GVIM_ENABLE_WAYLAND=1 environmenet variable.

Unfortunately this doesn't help.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/14233/2533391827@github.com>

Enno Gröper

unread,
Apr 7, 2025, 5:21:56 PMApr 7
to vim/vim, Subscribed

I suppose GVIM_ENABLE_WAYLAND=1 doesn't work with Ubuntu 24.04, since it was introduced with 9.1.0064 and Ubuntu 24.04 ships with 9.1.0016 (9.1.0016-1ubuntu7.7).


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/14233/2784655512@github.com>

egroeperegroeper left a comment (vim/vim#14233)

I suppose GVIM_ENABLE_WAYLAND=1 doesn't work with Ubuntu 24.04, since it was introduced with 9.1.0064 and Ubuntu 24.04 ships with 9.1.0016 (9.1.0016-1ubuntu7.7).


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/14233/2784655512@github.com>

Christian Brabandt

unread,
Apr 8, 2025, 4:27:26 AMApr 8
to vim/vim, Subscribed

well, compile your own version then


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/14233/2785644420@github.com>

chrisbrachrisbra left a comment (vim/vim#14233)

well, compile your own version then


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/14233/2785644420@github.com>

Vineet Gupta

unread,
Apr 11, 2025, 2:13:19 PMApr 11
to vim/vim, Subscribed

I tried building vim - making it build for gui is a reckoning of its own. Even if you figure out the magic incantations, there's a high change installing the various X dev packages will hose your existing working desktop env which is what exactly happened to me. Perhaps need to do this in a sandbox.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/14233/2797697339@github.com>

vineetgarc left a comment (vim/vim#14233)

I tried building vim - making it build for gui is a reckoning of its own. Even if you figure out the magic incantations, there's a high change installing the various X dev packages will hose your existing working desktop env which is what exactly happened to me. Perhaps need to do this in a sandbox.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/14233/2797697339@github.com>

Fausto B

unread,
2:14 AM (13 hours ago) 2:14 AM
to vim/vim, Subscribed
fausterix left a comment (vim/vim#14233)

Hi!
Any workaround?
I'm on Ubuntu 24.04.3 LTS and XDG_SESSION_TYPE=wayland

image.png (view on web)


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/14233/3350122470@github.com>

Reply all
Reply to author
Forward
0 new messages