kovidgoyal / kitty

Cross-platform, fast, feature-rich, GPU based terminal
https://sw.kovidgoyal.net/kitty/
GNU General Public License v3.0
24.42k stars 979 forks source link

Graphical glitch causing terminal #8012

Closed RaphGL closed 3 hours ago

RaphGL commented 3 hours ago

Recently I've been noticing a graphical glitch on kitty, where the entire window becomes garbled. This seems to happen at random or at least I haven't spotted what causes it yet. Resizing the window fixes the issue for me.

Screenshot image

Environment details

kitty 0.37.0 created by Kovid Goyal
Linux archlinux 6.11.5-arch1-1 #1 SMP PREEMPT_DYNAMIC Tue, 22 Oct 2024 18:31:38 +0000 x86_64
Arch Linux 6.11.5-arch1-1 (/dev/tty)

Running under: X11
OpenGL: '4.6 (Core Profile) Mesa 21.3.9-arch.6 Amber' Detected version: 4.6
Frozen: False
Fonts:
  medium: JetBrainsMono-Regular: /usr/share/fonts/TTF/JetBrainsMono-Regular.ttf:0
          Features: ()
    bold: JetBrainsMono-SemiBold: /usr/share/fonts/TTF/JetBrainsMono-SemiBold.ttf:0
          Features: ()
  italic: JetBrainsMono-Italic: /usr/share/fonts/TTF/JetBrainsMono-Italic.ttf:0
          Features: ()
      bi: JetBrainsMono-SemiBoldItalic: /usr/share/fonts/TTF/JetBrainsMono-SemiBoldItalic.ttf:0
          Features: ()
Paths:
  kitty: /usr/bin/kitty
  base dir: /usr/lib/kitty
  extensions dir: /usr/lib/kitty/kitty
  system shell: /bin/zsh
Loaded config files:
  /home/raph/.config/kitty/kitty.conf

Config options different from defaults:
background_opacity   0.96
clipboard_control    ('write-clipboard', 'write-primary')
disable_ligatures    1
font_family          JetBrains Mono
font_size            12.0
linux_display_server x11
open_url_with        ['firefox']
Colors:
    background           #19191d   
    color1               #ff5555   
    color10              #5af78e   
    color11              #f4f99d   
    color12              #caa9fa   
    color13              #ff92d0   
    color14              #9aedfe   
    color15              #e6e6e6   
    color2               #50fa7b   
    color3               #f1fa8c   
    color4               #bd93f9   
    color5               #ff79c6   
    color6               #8be9fd   
    color7               #bfbfbf   
    color8               #4d4d4d   
    color9               #ff6e67   
    foreground           #f8f8f2   

Important environment variables seen by the kitty process:
    PATH                                /usr/local/bin:/usr/bin:/usr/local/sbin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/rustup/bin
    LANG                                en_US.UTF-8
    VISUAL                              nvim
    EDITOR                              nvim
    SHELL                               /bin/zsh
    DISPLAY                             :0
    WAYLAND_DISPLAY                     wayland-0
    USER                                raph
    XDG_DATA_DIRS                       /home/raph/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/
    XDG_RUNTIME_DIR                     /run/user/1000
    XDG_CURRENT_DESKTOP                 GNOME
    XDG_MENU_PREFIX                     gnome-
    XDG_SESSION_CLASS                   user
    XDG_SESSION_DESKTOP                 gnome
    XDG_SESSION_TYPE                    wayland

Additional context I keep kitty opened almost all day long everyday, so this wasn't happening before. What did change on my end tho is that I've changed from using the standard mesa package to using mesa-amber because the regular mesa driver for this old CPU I'm using causes very frequent crashes on my system. But apart from kitty no other program is having any graphical issues.

kovidgoyal commented 3 hours ago

This is almost certainly a GPU driver issue. You should report it to whoever maintains mesa-amber. I'm afraid I dont have the time/interest to try to workaround bugs in legacy drivers. If you do, a PR is welcome, provided it has no costs for mainstream use cases.