kovidgoyal / kitty

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

macOS: blank window sometimes after wake up #6999

Closed ecerulm closed 10 months ago

ecerulm commented 10 months ago

Describe the bug The kitty window contents are blank, and even when I try to close the window it does not show the usual message "Are you sure you want ot close this OS window"

To Reproduce

It's not reproducible on demand, it happens rarely I think this is the second time it happened to me in a period of 3 month.

I think in both occasions I noticed after the laptop wake up from sleep or it was locked.

Screenshots image

The window title says "Close OS window" and the content should show the "Are you sure you want to close this OS window..." but it's just blank.

Environment details

Taken from a new window:

kitty 0.31.0 (b247fda672) created by Kovid Goyal
Darwin Ruben-Laguna 23.2.0 Darwin Kernel Version 23.2.0: Wed Nov 15 21:54:10 PST 2023; root:xnu-10002.61.3~2/RELEASE_X86_64 x86_64
ProductName:            macOS ProductVersion:           14.2.1 BuildVersion:            23C71
Frozen: True
Paths:
  kitty: /Applications/kitty.app/Contents/MacOS/kitty
  base dir: /Applications/kitty.app/Contents/Resources/kitty
  extensions dir: /Applications/kitty.app/Contents/Resources/Python/lib/kitty-extensions
  system shell: /bin/zsh
Loaded config files:
  /Users/rubelagu/.config/kitty/kitty.conf

Config options different from defaults:
allow_remote_control               yes
bold_font                          JetBrains Mono ExtraBold
bold_italic_font                   JetBrains Mono ExtraBold Italic
copy_on_select                     clipboard
disable_ligatures                  2
enabled_layouts                    ['tall:bias=50;full_size=1;mirrored=false', 'horizontal', 'stack']
font_family                        JetBrains Mono
font_features:
{'FiraCode-Bold': ('+cv02', '+ss03', '+ss07'),
 'FiraCode-Light': ('+cv02', '+ss03', '+ss07'),
 'FiraCode-Medium': ('+cv02', '+ss03', '+ss07'),
 'FiraCode-Regular': ('+cv02', '+ss03', '+ss07'),
 'FiraCode-Retina': ('+cv02', '+ss03', '+ss07'),
 'FiraCode-SemiBold': ('+cv02', '+ss03', '+ss07'),
 'JetBrainsMono-BoldItalic': ('+zero',),
 'JetBrainsMono-ExtraBold': ('+zero',),
 'JetBrainsMono-ExtraBoldItalic': ('+zero',),
 'JetBrainsMono-Italic': ('+zero',),
 'JetBrainsMono-Regular': ('+zero',)}
font_size                          13.0
italic_font                        JetBrains Mono Italic
listen_on                          unix:/tmp/mykitty
macos_option_as_alt                2
macos_quit_when_last_window_closed True
shell                              /bin/zsh --login --interactive
visual_bell_duration               0.2
Added shortcuts:
        ctrl+. →  layout_action bias 50 62 70
        ctrl+/ →  layout_action mirror toggle
        f1 →  toggle_layout stack
        f7 →  focus_visible_window

Important environment variables seen by the kitty process:
        PATH                                /Applications/kitty.app/Contents/MacOS:/usr/bin:/bin:/usr/sbin:/sbin
        LANG                                en_US.UTF-8
        SHELL                               /bin/sh
        DISPLAY                             /private/tmp/com.apple.launchd.O6e6LQdxBg/org.xquartz:0
        USER                                xxxx.xxx@xxxx.xxx

This debug output has been copied to the clipboard

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.

kovidgoyal commented 10 months ago

dup of #6034