Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single instance Kitty windows freeze when a window is obstructed by tiling #5495

Closed
Scrumplex opened this issue Sep 9, 2022 · 0 comments
Closed
Labels

Comments

@Scrumplex
Copy link

I have bisected this bug. Commit 60d33f2 introduces this.

Describe the bug
When I have two single instance Kitty windows open and one of them is "hidden" by switching my tiling mode to Tabbed on Sway, all windows of that Kitty instance freeze and don't render new frames.

To Reproduce
Steps to reproduce the behavior:

  1. Open two Kitty windows using single instance mode
  2. Move one window to a separate workspace alongside some other arbitrary window and "hide" it by switching to a stacking/tabbed layout
  3. Try to interact with still visible window

Screenshots

recording.webm

In this video I am opening kitty instances using a hotkey that runs kitty -1

Environment details

kitty 0.26.2 created by Kovid Goyal
Linux andromeda 5.19.7-zen2-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Mon, 05 Sep 2022 18:33:28 +0000 x86_64
Arch Linux 5.19.7-zen2-1-zen (/dev/tty)

�[?12l�[?25h
DISTRIB_ID="Arch"
DISTRIB_RELEASE="rolling"
DISTRIB_DESCRIPTION="Arch Linux"
Running under: Wayland
Frozen: False
Paths:
  kitty: /usr/bin/kitty
  base dir: /usr/lib/kitty
  extensions dir: /usr/lib/kitty/kitty
  system shell: /usr/bin/fish
Loaded config files:
  /home/scrumplex/.config/kitty/kitty.conf

Config options different from defaults:
background_opacity      0.975
disable_ligatures       1
font_family             Fira Code
modify_font:
    baseline 0
    cell_height 0
    cell_width 0
placement_strategy      top-left
symbol_map:
	U+23fb - U+23fe → Symbols Nerd Font
	U+2665 - U+2665 → Symbols Nerd Font
	U+26a1 - U+26a1 → Symbols Nerd Font
	U+e000 - U+e00d → Symbols Nerd Font
	U+e0a3 - U+e0a3 → Symbols Nerd Font
	U+e0b4 - U+e0c8 → Symbols Nerd Font
	U+e0ca - U+e0ca → Symbols Nerd Font
	U+e0cc - U+e0d2 → Symbols Nerd Font
	U+e0d4 - U+e0d4 → Symbols Nerd Font
	U+e200 - U+e2a9 → Symbols Nerd Font
	U+e300 - U+e3eb → Symbols Nerd Font
	U+e5fa - U+e62b → Symbols Nerd Font
	U+e700 - U+e7c5 → Symbols Nerd Font
	U+eb58 - U+eb58 → Symbols Nerd Font
	U+f000 - U+f2e0 → Symbols Nerd Font
	U+f27c - U+f27c → Symbols Nerd Font
	U+f300 - U+f313 → Symbols Nerd Font
	U+f400 - U+f4a8 → Symbols Nerd Font
	U+f500 - U+fd46 → Symbols Nerd Font
tab_bar_style           powerline
Added shortcuts:
	alt+super+, →  debug_config
	alt+super+page_down →  scroll_line_down
	alt+super+page_up →  scroll_line_up
	alt+super+r →  clear_terminal reset active
	alt+super+s →  toggle_macos_secure_keyboard_entry
	ctrl+super+, →  load_config_file
	ctrl+super+f →  toggle_fullscreen
	ctrl+super+space →  kitten unicode_input
	kitty_mod+y →  scroll_to_prompt -1
	shift+super+- →  change_font_size all -2.0
	shift+super+/ →  open_url https://sw.kovidgoyal.net/kitty/
	shift+super+= →  change_font_size all +2.0
	shift+super+[ →  previous_tab
	shift+super+] →  next_tab
	shift+super+d →  close_window
	shift+super+i →  set_tab_title
	shift+super+w →  close_os_window
	super++ →  change_font_size all +2.0
	super+, →  edit_config_file
	super+- →  change_font_size all -2.0
	super+0 →  change_font_size all 0
	super+1 →  first_window
	super+2 →  second_window
	super+3 →  third_window
	super+4 →  fourth_window
	super+5 →  fifth_window
	super+6 →  sixth_window
	super+7 →  seventh_window
	super+8 →  eighth_window
	super+9 →  ninth_window
	super+= →  change_font_size all +2.0
	super+c →  copy_to_clipboard
	super+down →  scroll_line_down
	super+end →  scroll_end
	super+enter →  new_window
	super+home →  scroll_home
	super+k →  clear_terminal to_cursor active
	super+n →  new_os_window
	super+page_down →  scroll_page_down
	super+page_up →  scroll_page_up
	super+r →  start_resizing_window
	super+t →  new_tab
	super+up →  scroll_line_up
	super+v →  paste_from_clipboard
	super+w →  close_tab
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                                /home/scrumplex/bin:/home/scrumplex/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/usr/local/bin:/usr/bin
	LANG                                en_IE.UTF-8
	EDITOR                              /usr/bin/nvim
	SHELL                               /usr/bin/fish
	DISPLAY                             :0
	WAYLAND_DISPLAY                     wayland-1
	USER                                scrumplex
	XCURSOR_SIZE                        24
	XDG_SESSION_DESKTOP                 sway
	XDG_SESSION_TYPE                    wayland
	XDG_CURRENT_DESKTOP                 sway
	XDG_RUNTIME_DIR                     /run/user/1000
	XDG_DATA_DIRS                       /home/scrumplex/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/

Additional context
Reproducible using kitty --config NONE

Git Bisection:

# bad: [16a4845a72d1a488d243ac5e43c8a06744c41873] version 0.26.0
# good: [ad128a3c29729e3a9a03791a6e924e18a39b572c] version 0.25.2
git bisect start 'v0.26.0' 'v0.25.2'
# bad: [5d2a276172f5137a4de5e48b5f72ee691ab3d6d3] ...
git bisect bad 5d2a276172f5137a4de5e48b5f72ee691ab3d6d3
# bad: [512db660a184ff46b07cf823a4b7caf189fb48e7] macOS: Fix unable to open new tab/window when there is no OS window
git bisect bad 512db660a184ff46b07cf823a4b7caf189fb48e7
# good: [a89e1b55739273b1c4e78e01aca564e35da74bb1] Fix horizontal wheel events not being reported to client programs when they grab the mouse
git bisect good a89e1b55739273b1c4e78e01aca564e35da74bb1
# good: [c3df6d2fe360ce9cbbc29f6ca8b510783a943a9f] Remove executable perms from kitten files
git bisect good c3df6d2fe360ce9cbbc29f6ca8b510783a943a9f
# bad: [a94a0f30266a9ed0dfc89d4bffa20e6fc9190183] Fix fd leak in prewarm zygote
git bisect bad a94a0f30266a9ed0dfc89d4bffa20e6fc9190183
# bad: [4f29dea8ef6400e50042005fbc52c2131b898100] Utility function to detect when running inside tmux
git bisect bad 4f29dea8ef6400e50042005fbc52c2131b898100
# bad: [295fbe42ad2c6f31d4d01ca21b3013fc4b2b9af7] Merge branch 'misc' of https://github.com/page-down/kitty
git bisect bad 295fbe42ad2c6f31d4d01ca21b3013fc4b2b9af7
# good: [cd369f633a24e88d787c3ec6030093fba0575a32] Wayland: Ensure that opengl buffer swapping does not happen till the xdg surface is configured
git bisect good cd369f633a24e88d787c3ec6030093fba0575a32
# bad: [60d33f28471d4fb247ebe8f8205211240b7c4382] Wayland: Reduce flicker at startup by not using render frames immediately after a resize
git bisect bad 60d33f28471d4fb247ebe8f8205211240b7c4382
# first bad commit: [60d33f28471d4fb247ebe8f8205211240b7c4382] Wayland: Reduce flicker at startup by not using render frames immediately after a resize
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant