[bisected][regression] kitty fails to start due to `glfwWindowHint(GLFW_SRGB_CAPABLE,true)`
since mesa 6a084e2b the terminal app kitty 0.32.2 (or newer)
fails with
$ kitty
[075 21:17:57.069937] [glfw error 65544]: EGL: Failed to create window surface: Arguments are inconsistent
[075 21:17:57.075025] Traceback (most recent call last):
File "/usr/bin/../lib/kitty/kitty/main.py", line 561, in main
_main()
File "/usr/bin/../lib/kitty/kitty/main.py", line 553, in _main
run_app(opts, cli_opts, bad_lines)
File "/usr/bin/../lib/kitty/kitty/main.py", line 296, in __call__
_run_app(opts, args, bad_lines)
File "/usr/bin/../lib/kitty/kitty/main.py", line 268, in _run_app
window_id = create_os_window(
^^^^^^^^^^^^^^^^^
ValueError: Failed to create GLFWwindow
as mentioned in kitty/issues/7174
workarounds: launching with KITTY_DISABLE_WAYLAND=1 kitty
or
compiling kitty without line 1080 in kitty/glfw.c
if (!global_state.is_wayland || !is_nvidia_gpu_driver()) glfwWindowHint(GLFW_SRGB_CAPABLE, true);
sysinfo:
System:
Host: blackbox Kernel: 6.7.9-arch1-1 arch: x86_64 bits: 64 compiler: gcc
v: 13.2.1
Desktop: Sway v: 1.9 lm: greetd Distro: Arch Linux
CPU:
Info: 8-core model: AMD Ryzen 7 5700X bits: 64 type: MT MCP arch: Zen 3+
rev: 2 cache: L1: 512 KiB L2: 4 MiB L3: 32 MiB
Speed (MHz): avg: 1254 high: 4663 min/max: 550/4663 boost: enabled cores:
1: 4663 2: 550 3: 550 4: 550 5: 550 6: 4663 7: 550 8: 550 9: 550 10: 550
11: 550 12: 550 13: 550 14: 3600 15: 550 16: 550 bogomips: 108836
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3
Graphics:
Device-1: AMD Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT]
vendor: Tul / PowerColor AXRX driver: amdgpu v: kernel arch: RDNA-1 pcie:
speed: 16 GT/s lanes: 16 ports: active: DP-1 empty: DP-2,DP-3,HDMI-A-1
bus-ID: 0b:00.0 chip-ID: 1002:731f
Display: wayland server: X.org v: 1.21.1.11 with: Xwayland v: 23.2.4
compositor: Sway v: 1.9 driver: gpu: amdgpu display-ID: 1
Monitor-1: DP-1 model: Dell UP2516D res: 2560x1440 dpi: 118
diag: 634mm (25")
API: EGL v: 1.5 platforms: device: 0 drv: radeonsi device: 1 drv: swrast
surfaceless: drv: radeonsi wayland: drv: radeonsi x11: drv: radeonsi
inactive: gbm
API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd v: N/A glx-v: 1.4
direct-render: yes renderer: AMD Radeon RX 5700 XT (radeonsi navi10 LLVM
17.0.6 DRM 3.57 6.7.9-arch1-1) device-ID: 1002:731f
API: Vulkan v: 1.3.279 surfaces: xcb,xlib,wayland device: 0
type: discrete-gpu driver: mesa radv device-ID: 1002:731f