kovidgoyal / kitty

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

Japanese fonts appear as boxes in random cases #7323

Closed nonetrix closed 6 months ago

nonetrix commented 6 months ago

Describe the bug For some reason Japanese characters will start to appear as boxes after a certain point, as if it didn't have the correct fonts installed. However, this isn't the case. Pasting the same text inside another kitty instance will render the text correctly

To Reproduce Steps to reproduce the behavior:

  1. Use something that prints some Japanese text
  2. See that it works fine
  3. Eventually it breaks and starts displaying random characters as boxes
  4. Paste the same text inside another instance of kitty with the same settings and fonts and see that it's fine

Screenshots image image image

Environment details

kitty 0.33.1 created by Kovid Goyal
Linux nixos 6.8.3 #1-NixOS SMP PREEMPT_DYNAMIC Wed Apr  3 13:32:51 UTC 2024 x86_64

<<< Welcome to NixOS 24.05.20240403.fd281bd (x86_64) - /dev/tty >>>

Run 'nixos-help' for the NixOS manual.

DISTRIB_CODENAME=uakari
DISTRIB_DESCRIPTION="NixOS 24.05 (Uakari)"
DISTRIB_ID=nixos
DISTRIB_RELEASE="24.05"
LSB_VERSION="24.05 (Uakari)"
Running under: Wayland
Frozen: False
Paths:
  kitty: /nix/store/d03vq9y80w0vkmd9c37jf3zigr8s4v5p-kitty-0.33.1/bin/kitty
  base dir: /nix/store/d03vq9y80w0vkmd9c37jf3zigr8s4v5p-kitty-0.33.1/lib/kitty
  extensions dir: /nix/store/d03vq9y80w0vkmd9c37jf3zigr8s4v5p-kitty-0.33.1/lib/kitty/kitty
  system shell: /run/current-system/sw/bin/zsh
Loaded config files:
  /home/noah/.config/kitty/kitty.conf

Config options different from defaults:
background_opacity      0.9
font_family             JetBrainsMono Nerd Font
shell_integration       frozenset({'no-rc'})
Colors:
    active_border_color     #b4befe   
    active_tab_background   #cba6f7   
    active_tab_foreground   #11111b   
    background              #1e1e2e   
    bell_border_color       #f9e2af   
    color0                  #45475a   
    color1                  #f38ba8   
    color10                 #a6e3a1   
    color11                 #f9e2af   
    color12                 #89b4fa   
    color13                 #f5c2e7   
    color14                 #94e2d5   
    color15                 #a6adc8   
    color2                  #a6e3a1   
    color3                  #f9e2af   
    color4                  #89b4fa   
    color5                  #f5c2e7   
    color6                  #94e2d5   
    color7                  #bac2de   
    color8                  #585b70   
    color9                  #f38ba8   
    cursor                  #f5e0dc   
    cursor_text_color       #1e1e2e   
    foreground              #cdd6f4   
    inactive_border_color   #6c7086   
    inactive_tab_background #181825   
    inactive_tab_foreground #cdd6f4   
    mark1_background        #b4befe   
    mark1_foreground        #1e1e2e   
    mark2_background        #cba6f7   
    mark2_foreground        #1e1e2e   
    mark3_background        #74c7ec   
    mark3_foreground        #1e1e2e   
    selection_background    #f5e0dc   
    selection_foreground    #1e1e2e   
    tab_bar_background      #11111b   
    url_color               #f5e0dc   

Important environment variables seen by the kitty process:
    PATH                                /nix/store/d03vq9y80w0vkmd9c37jf3zigr8s4v5p-kitty-0.33.1/bin:/nix/store/32hx7y3vn8l5wvpzw7jgradnxnlsb6y2-imagemagick-7.1.1-29/bin:/nix/store/2nhjsfc4pg74vqnsbjmnpi7359y6f3wi-ncurses-6.4-dev/bin:/run/wrappers/bin:/home/noah/.local/share/flatpak/exports/bin:/var/lib/flatpak/exports/bin:/home/noah/.nix-profile/bin:/nix/profile/bin:/home/noah/.local/state/nix/profile/bin:/etc/profiles/per-user/noah/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:/nix/store/bd0ii4p72zgiy1jfaww5h3xihxn2l56x-gcc-wrapper-13.2.0/bin:/nix/store/jsjfmx7r6cpyixxsg7bjl5cy3y8hw7k7-binutils-wrapper-2.41/bin:/nix/store/pc6yqwmnzy0xqdzm7j9kxhl0hrmk4p50-pciutils-3.11.1/bin
    LANG                                en_US.UTF-8
    EDITOR                              nvim
    SHELL                               /run/current-system/sw/bin/zsh
    DISPLAY                             :0
    WAYLAND_DISPLAY                     wayland-1
    USER                                noah
    XDG_CONFIG_DIRS                     /etc/xdg:/home/noah/.local/share/flatpak/exports/etc/xdg:/var/lib/flatpak/exports/etc/xdg:/home/noah/.nix-profile/etc/xdg:/nix/profile/etc/xdg:/home/noah/.local/state/nix/profile/etc/xdg:/etc/profiles/per-user/noah/etc/xdg:/nix/var/nix/profiles/default/etc/xdg:/run/current-system/sw/etc/xdg
    XDG_BACKEND                         wayland
    LC_ADDRESS                          en_US.UTF-8
    LC_NAME                             en_US.UTF-8
    LC_MONETARY                         en_US.UTF-8
    XDG_SEAT                            seat0
    XDG_SESSION_TYPE                    wayland
    LC_PAPER                            en_US.UTF-8
    XDG_CURRENT_DESKTOP                 Hyprland
    XDG_SESSION_CLASS                   user
    LC_IDENTIFICATION                   en_US.UTF-8
    LC_TELEPHONE                        en_US.UTF-8
    LC_MEASUREMENT                      en_US.UTF-8
    XDG_VTNR                            1
    XDG_SESSION_ID                      3
    XDG_RUNTIME_DIR                     /run/user/1000
    LC_TIME                             en_US.UTF-8
    XDG_DATA_DIRS                       /home/noah/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/home/noah/.nix-profile/share:/nix/profile/share:/home/noah/.local/state/nix/profile/share:/etc/profiles/per-user/noah/share:/nix/var/nix/profiles/default/share:/run/current-system/sw/share
    LC_NUMERIC                          en_US.UTF-8

Additional context Try to reproduce the problem with kitty --config NONE if you cannot then post a minimal kitty.conf that reproduces the problem. If the problem involves interaction with some other terminal program post a minimal config for that program to reproduce the problem as well.

Works here as well: image

Also, likely not relevant at all, but for more context and maybe some might be curious, but I was using llama cpp and the command-r-plus model

nonetrix commented 6 months ago

Also seems to effect Korean and seems to be worse actually, now everything is blank image

kovidgoyal commented 6 months ago

dup of #7263

nonetrix commented 6 months ago

Thanks, sorry for the duplicate. I couldn't find it when searching