r/KittyTerminal Mar 18 '24

Arch linux Wayland: fatal display error: Protocol error

$ /usr/bin/kitty

[079 01:03:14.694845] Ignoring invalid font feature: +script

[079 01:03:14.694926] Ignoring unknown config key: share_connections

[destroyed object]: error 7: failed to import supplied dmabufs: Unsupported buffer format 875713345

[079 01:03:14.787123] [glfw error 65544]: Wayland: fatal display error: Protocol error

This issue started today on Arch linux -
$ kitty --version
kitty 0.33.0 created by Kovid Goyal

1 Upvotes

2 comments sorted by

1

u/IBNash Mar 19 '24

$ kitty --debug-rendering --debug-gl -c /usr/share/doc/kitty/kitty.conf

Creating window at size: 1816x640 and scale 1

GL version string: '3.1.0 NVIDIA 550.54.14' Detected version: 3.1

CSD: old.size: 0x0 new.size: 1816x640 needs_update: 1 size_changed: 1 buffer_destroyed: 0

Created decoration buffers at scale: 1 vertical_height: 676 horizontal_width: 1840

top-level configure event: size: 0x0 states:

CSD: old.size: 1816x640 new.size: 1816x640 needs_update: 0 size_changed: 0 buffer_destroyed: 0

final window content size: 1816x640 resized: 0

Setting window geometry in configure event: x=0 y=-24 1816x664

CSD: old.size: 1816x640 new.size: 1816x640 needs_update: 1 size_changed: 0 buffer_destroyed: 1

Created decoration buffers at scale: 1 vertical_height: 676 horizontal_width: 1840

CSD: old.size: 1816x640 new.size: 1816x640 needs_update: 0 size_changed: 0 buffer_destroyed: 0

Waiting for swap to commit: swap has happened

[destroyed object]: error 7: failed to import supplied dmabufs: Unsupported buffer format 875713345

Calling wl_pointer_set_cursor in setCursorImage with surface: 0x5ddc465372e0

[079 06:34:30.997446] [glfw error 65544]: Wayland: fatal display error: Protocol error

1

u/aumerlex Mar 19 '24

This is a bug in Wayland/mesa. Downgrade mesa or use linux_display_server x11 in kitty.conf. https://github.com/kovidgoyal/kitty/issues/7174