kovidgoyal / kitty

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

Glitching rendering fonts - Virtualbox 7.0.12 3D enabled #6920

Closed jpcozar closed 9 months ago

jpcozar commented 9 months ago

Glitching rendering fonts - Virtualbox 7.0.12 3D enabled Kitty is not rendering the fonts and background when 3D is enabled. Alacritty or x-terminal-emulator work ok.

To Reproduce Steps to reproduce the behavior:

  1. Enabled 3D in Virtualbox 7.0.12 with Guest Additions installed
  2. Launch kitty and alacacritty and x-terminal-emulator

Screenshots kitty-3d-virtualbox

Environment details

kitty 0.31.0 created by Kovid Goyal
Linux huca 6.5.0-kali3-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.5.6-1kali1 (2023-10-09) x86_64
Kali GNU/Linux Rolling huca /dev/tty

Running under: X11
Frozen: False
Paths:
  kitty: /usr/bin/kitty
  base dir: /usr/lib/kitty
  extensions dir: /usr/lib/kitty/kitty
  system shell: /usr/bin/zsh
Loaded config files:
  /home/jpcozar/.config/kitty/kitty.conf

Config options different from defaults:
background_opacity         0.95
cursor_beam_thickness      1.8
cursor_shape               2
cursor_underline_thickness 1.0
enable_audio_bell          False
font_family                Hack Nerd Font
font_size                  13.0
shell                      zsh
tab_bar_style              powerline
window_padding_width       FloatEdges(left=20.0, top=20.0, right=20.0, bottom=20.0)
Added shortcuts:
    ctrl+down →  neighboring_window down
    ctrl+left →  neighboring_window left
    ctrl+right →  neighboring_window right
    ctrl+up →  neighboring_window up
    f1 →  copy_to_buffer a
    f2 →  paste_from_buffer a
    f3 →  copy_to_buffer b
    f4 →  paste_from_buffer b
Changed shortcuts:
    kitty_mod+enter →  new_window_with_cwd
    kitty_mod+t →  new_tab_with_cwd
    kitty_mod+z →  toggle_layout stack
Colors:
    active_tab_background      #98c379   
    background                 #1a1b26   
    color0                     #414868   
    color1                     #f7768e   
    color10                    #73daca   
    color11                    #e0af68   
    color12                    #7aa2f7   
    color13                    #bb9af7   
    color14                    #7dcfff   
    color15                    #c0caf5   
    color2                     #73daca   
    color3                     #e0af68   
    color4                     #7aa2f7   
    color5                     #bb9af7   
    color6                     #7dcfff   
    color7                     #c0caf5   
    color8                     #414868   
    color9                     #f7768e   
    cursor                     #c0caf5   
    cursor_text_color          #1a1b26   
    foreground                 #a9b1d6   
    inactive_tab_background    #e06c75   
    inactive_tab_foreground    #000000   
    selection_background       #28344a   
    selection_foreground       #7aa2f7   
    tab_bar_margin_color       #000000   
    url_color                  #61afef   

Important environment variables seen by the kitty process:
    PATH                                /home/jpcozar/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
    LANG                                es_ES.UTF-8
    SHELL                               /usr/bin/zsh
    DISPLAY                             :0
    USER                                jpcozar
    XDG_SEAT                            seat0
    XDG_SESSION_TYPE                    x11
    XDG_SEAT_PATH                       /org/freedesktop/DisplayManager/Seat0
    XDG_SESSION_CLASS                   user
    XDG_SESSION_ID                      2
    XDG_SESSION_PATH                    /org/freedesktop/DisplayManager/Session0
    XDG_RUNTIME_DIR                     /run/user/1001
    XDG_SESSION_DESKTOP                 bspwm
    XDG_GREETER_DATA_DIR                /var/lib/lightdm/data/jpcozar
    XDG_VTNR                            7

On older versions of kitty, run kitty --debug-config instead

Additional context glxinfo|grep "OpenGL version" OpenGL version string: 4.1 (Compatibility Profile) Mesa 23.2.1-1

kitty --config NONE show same problems. kitty config none

As a workaround I am using software rendering for kitty: LIBGL_ALWAYS_SOFTWARE=true GALLIUM_DRIVER=llvmpipe /usr/bin/kitty

But I think that's not the solution.

Thank you in advance

kovidgoyal commented 9 months ago

this is an issue with the GPU driver in the VM. I suggest you use software rendering.