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

0.32.0 release fails to start/open due to glfw error 65544 #7021

Closed
xmers opened this issue Jan 19, 2024 · 17 comments
Closed

0.32.0 release fails to start/open due to glfw error 65544 #7021

xmers opened this issue Jan 19, 2024 · 17 comments
Labels

Comments

@xmers
Copy link

xmers commented Jan 19, 2024

Describe the bug
After the 0.32.0 release, kitty fails to open, either by clicking on the icon or attempting to execute it from another terminal.

To Reproduce

  1. Upgrade to the new release
  2. Double-clicking the kitty desktop icon produces no response.
  3. From another terminal, running the kitty command, the below error is thrown.

Screenshots

~  kitty -v
kitty 0.32.0 created by Kovid Goyal
~  kitty
[destroyed object]: error 7: failed to import supplied dmabufs: Unsupported buffer format 875713345
[019 14:14:27.520528] [glfw error 65544]: Wayland: fatal display error: Protocol error
~  kitty --debug-gl
Creating window at size: 1185x1234 and scale 1
GL version string: '3.1.0 NVIDIA 545.29.06' Detected version: 3.1
CSD: old.size: 0x0 new.size: 1185x1234 needs_update: 1 size_changed: 1 buffer_destroyed: 0
Created decoration buffers at scale: 1 vertical_height: 1270 horizontal_width: 1209
top-level configure event: size: 0x0 states: 
CSD: old.size: 1185x1234 new.size: 1185x1234 needs_update: 0 size_changed: 0 buffer_destroyed: 0
final window content size: 1185x1234 resized: 0
Setting window geometry in configure event: x=0 y=-24 1185x1258
CSD: old.size: 1185x1234 new.size: 1185x1234 needs_update: 1 size_changed: 0 buffer_destroyed: 1
Created decoration buffers at scale: 1 vertical_height: 1270 horizontal_width: 1209
CSD: old.size: 1185x1234 new.size: 1185x1234 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: 0x555612e630c0
[019 14:16:24.934781] [glfw error 65544]: Wayland: fatal display error: Protocol error

Environment details

~  hostnamectl | egrep -i 'operating|kernel'
    Operating System: Fedora Linux 39 (Workstation Edition)
              Kernel: Linux 6.6.11-200.fc39.x86_64
~  kitty --config NONE
[destroyed object]: error 7: failed to import supplied dmabufs: Unsupported buffer format 875713345
[019 14:27:59.356143] [glfw error 65544]: Wayland: fatal display error: Protocol error

Sys logs

Jan 19 14:33:29 gnome-shell[2383]: WL: error in client communication (pid 30227)
Jan 19 14:34:17 gnome-shell[2383]: WL: error in client communication (pid 31959)
@xmers xmers added the bug label Jan 19, 2024
@kovidgoyal
Copy link
Owner

kovidgoyal commented Jan 20, 2024

This has nothing to do with kitty. It's an incompatibility between NVIDIA
drivers and Wayland. Upstream bug report: NVIDIA/egl-wayland#85 This bug is exposed in kitty 0.32 because now kitty explicitly asks for SRGB output buffers, to ensure color rendering is correct. See 97f5cad

Use linux_display_server x11 in kitty.conf to use XWayland or better
yet, just switch back to X and be headache free.

Alternately, hold off updating kitty until the NVIDIA bug is fixed.

@solopasha
Copy link
Contributor

Where did you install the package from? Does the crash happen with 0.31.0? I'm curious if I should push it to the stable fedora 39 repo or not... (and it works fine for me, NVIDIA 545.29.06 kde plasma wayland).

@songww
Copy link

songww commented Jan 21, 2024

I have the same problem on debian sid, 0.32 with nightly doesn't work, but 0.31 is fine.

@kovidgoyal
Copy link
Owner

Then that will be because your system is not providing an SRGB output buffer which kitty now explicitly requests. See 97f5cad

As I said, use the X11 backend. Presumably earlier your system was happily not providing an sRGB output buffer which means colors would have been incorrect.

@ondrejj
Copy link

ondrejj commented Jan 21, 2024

Same problem here. Using gnome+wayland+kitty 0.32. After downgrade to kitty-0.31 everything works again. Manual downgrade to Xwayland is not a solution for me.

@kovidgoyal
Copy link
Owner

Then stick to kitty 0.31 until you can upgrade the rest of your software stack.

@kovidgoyal
Copy link
Owner

And this is the upstream bug report, follow up there: NVIDIA/egl-wayland#85

@ondrejj
Copy link

ondrejj commented Jan 26, 2024

Same problem with latest kitty 0.32.1:

<home:pts0:~>$ rpm -q kitty
kitty-0.32.1-1.fc40.x86_64
<home:pts0:~>$ kitty 
[destroyed object]: error 7: failed to import supplied dmabufs: Unsupported buffer format 875713345
[026 16:12:53.246878] [glfw error 65544]: Wayland: fatal display error: Chyba protokolu
<home:pts0:~>$ 

Looks like still not fixed. :-(

@kovidgoyal
Copy link
Owner

You will need to followup upstream then. There is only so much I can do
to workaround the insanity that is Wayland.

@pierrot-lc
Copy link

And this is the upstream bug report, follow up there: NVIDIA/egl-wayland#85

The issue is now fixed in the 550.60 drivers.

@officiallymarky
Copy link

And this is the upstream bug report, follow up there: NVIDIA/egl-wayland#85

The issue is now fixed in the 550.60 drivers.

Should it be fixed in 555.58.02 as well?

@pierrot-lc
Copy link

Should it be fixed in 555.58.02 as well?

Yes it is fixed in 555.

@officiallymarky
Copy link

officiallymarky commented Aug 31, 2024

Should it be fixed in 555.58.02 as well?

Yes it is fixed in 555.

I'm still getting the message about srgb with wayland.

@kovidgoyal
Copy link
Owner

Yes, the actual issue in the drivers isn't fixed, it just doesn't prevent kitty from starting anymore.

@jknedlik
Copy link

Hi!
I do get the very same error when using my amd rx 550 and the newest amd drivers.

@kovidgoyal
Copy link
Owner

And? Your drives don't support sRGB colors, you need to report the issue to your driver's developers.

@officiallymarky
Copy link

Yes, the actual issue in the drivers isn't fixed, it just doesn't prevent kitty from starting anymore.

Ahh, thanks! Didn't know it didn't launch before. I was using an old version of Kitty which I just realized so I upgraded and started to notice it when using some functions of kitten.

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

8 participants