Skip to content

Segmentation fault when kitty @ resize‑os‑window is executed inside +kitten panel on wayland #8550

@codelif

Description

@codelif

Describe the bug
Running kitty +kitten panel ... and issuing a remote‑control command to resize the OS window reliably crashes kitty with a segmentation fault on wayland

To Reproduce
Steps to reproduce the behavior:

  1. Start a panel kitten with remote control enabled inside a wayland session and try to resize it.
    kitty +kitten panel -o allow_remote_control=yes --config=NONE \ bash -c 'kitty @ resize-os-window --height=20; read'
  2. Kitty terminates with “Segmentation fault (core dumped)”

Environment details

kitty 0.41.1 created by Kovid Goyal
Linux codelif 6.12.23-1-lts #1 SMP PREEMPT_DYNAMIC Thu, 10 Apr 2025 13:28:36 +0000 x86_64
S{PRETTY_NAME} 6.12.23-1-lts (/dev/tty)

DISTRIB_ID="Arch"
DISTRIB_RELEASE="rolling"
DISTRIB_DESCRIPTION="Arch Linux"
Running under: Wayland (Hyprland v0.48.1,) missing: blur icon
OpenGL: '3.1.0 NVIDIA 550.144.03' Detected version: 3.1
Frozen: False
Fonts:
  medium: SpaceMonoNF: /usr/share/fonts/TTF/SpaceMonoNerdFont-Regular.ttf:0
          Features: ()
    bold: SpaceMonoNF-Bold: /usr/share/fonts/TTF/SpaceMonoNerdFont-Bold.ttf:0
          Features: ()
  italic: SpaceMonoNF-Italic: /usr/share/fonts/TTF/SpaceMonoNerdFont-Italic.ttf:0
          Features: ()
      bi: SpaceMonoNF-BoldItalic: /usr/share/fonts/TTF/SpaceMonoNerdFont-BoldItalic.ttf:0
          Features: ()
Paths:
  kitty: /usr/bin/kitty
  base dir: /usr/lib/kitty
  extensions dir: /usr/lib/kitty/kitty
  system shell: /usr/bin/zsh
System color scheme: dark. Applied color theme type: none
Loaded config files:
  /home/harsh/.config/kitty/kitty.conf
Loaded config overrides:
  allow_remote_control yes

Config options different from defaults:
allow_remote_control    yes
cursor_trail            3
font_family             family="SpaceMono Nerd Font"
font_size               15.0
tab_bar_style           powerline
tab_powerline_style     slanted
tab_title_template      {title}{' :{}:'.format(num_windows) if num_windows > 1 else ''}
Colors:
	active_border_color     #a48cf2   
	active_tab_background   #04d1f9   
	active_tab_foreground   #171928   
	background              #171928   
	color0                  #21222c   
	color1                  #f9515d   
	color10                 #69f8b3   
	color11                 #f1fc79   
	color12                 #a48cf2   
	color13                 #fd92ce   
	color14                 #66e4fd   
	color2                  #37f499   
	color3                  #e9f941   
	color4                  #9071f4   
	color5                  #f265b5   
	color6                  #04d1f9   
	color7                  #ebfafa   
	color8                  #7081d0   
	color9                  #f16c75   
	cursor                  #37f499   
	cursor_text_color       #f8f8f2   
	foreground              #ebfafa   
	inactive_border_color   #171928   
	inactive_tab_background #323449   
	inactive_tab_foreground #37f499   
	mark1_background        #f9515d   
	mark1_foreground        #171928   
	selection_background    #bf4f8e   
	selection_foreground    #ebfafa   
	url_color               #04d1f9   

Important environment variables seen by the kitty process:
	PATH                                /opt/google-cloud-cli/bin:/home/harsh/.local/share/gem/ruby/3.0.0/bin:/home/harsh/.local/bin:/home/harsh/go/bin:/home/harsh/.local/share/npm-global/bin:/home/harsh/.cargo/bin:/usr/local/bin:/home/harsh/.local/share/zinit/polaris/bin:/opt/google-cloud-cli/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/emscripten:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
	LANG                                en_US.UTF-8
	EDITOR                              vim
	SHELL                               /usr/bin/zsh
	DISPLAY                             :0
	WAYLAND_DISPLAY                     wayland-1
	USER                                harsh
	XCURSOR_SIZE                        32
	XDG_CONFIG_DIRS                     /etc/xdg
	XDG_MENU_PREFIX                     Hyprland-
	XDG_BACKEND                         wayland
	XDG_DATA_HOME                       /home/harsh/.local/share
	XDG_CONFIG_HOME                     /home/harsh/.config
	XDG_SEAT                            seat0
	XDG_SESSION_DESKTOP                 Hyprland
	XDG_SESSION_TYPE                    wayland
	XDG_CURRENT_DESKTOP                 Hyprland
	XDG_CACHE_HOME                      /home/harsh/.cache
	XDG_SESSION_CLASS                   user
	XDG_VTNR                            1
	XDG_SESSION_ID                      3
	XDG_STATE_HOME                      /home/harsh/.local/state
	XDG_RUNTIME_DIR                     /run/user/1000
	XDG_DATA_DIRS                       /usr/local/share:/usr/share

Additional context
running with --debug-rendering flag:

[0.094] Compositor missing capabilities: blur icon
[0.119] Creating window 1 at size: 1920x21 and scale 1
[0.119] Compositor will be informed that layer size: 0x21 viewport: 1920x21 at next surface commit
[0.127] Layer shell configure event: width: 1920 height: 21
[0.128] Waiting for swap to commit Wayland surface for window: 1
[0.128] Calculating layer shell window size at scale: 1.000000
[0.128] Attached temp buffer during window 1 creation of size: 1920x21 and rgba(0, 0, 0, 255)
[0.128] Waiting for compositor to send fractional scale for window 1
[0.128] Fractional scale requested: 120/120 = 1.00 for window 1
[0.128] Resizing framebuffer of window: 1 to: 1920x21 window size: 1920x21 at scale: 1.000
[0.128] Waiting for swap to commit Wayland surface for window: 1
[0.128] Creating OpenGL context and attaching it to window
[0.177] GL version string: '3.1.0 NVIDIA 550.144.03' Detected version: 3.1
[0.178] Window 1 swapped committing surface
[0.190] The output buffer does not support sRGB color encoding, colors will be incorrect.
[0.190] OS Window created
[0.202] Child launched
[0.205] system color-scheme changed to: dark is_initial_value: 1
[0.205] Changing cursor shape to: WP_CURSOR_SHAPE_DEVICE_V1_SHAPE_TEXT with serial: 0
[0.205] Got notification server capabilities: frozenset({'body'})
[0.230] Resizing framebuffer of window: 1 to: 1920x400 window size: 1920x400 at scale: 1.000
[0.238] Waiting for swap to commit Wayland surface for window: 1
[0.238] Setting window 1 "visible area" geometry in SetWindowSize event: x=0 y=0 1920x400 viewport: 1920x400
zsh: segmentation fault (core dumped)  kitty +kitten panel -o allow_remote_control=yes --config=NONE  bash -c 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions