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

Eyedropper color picker not working with XWayland #88550

Closed
Tracked by #88346
TuTiuTe opened this issue Feb 19, 2024 · 6 comments · Fixed by #93072
Closed
Tracked by #88346

Eyedropper color picker not working with XWayland #88550

TuTiuTe opened this issue Feb 19, 2024 · 6 comments · Fixed by #93072

Comments

@TuTiuTe
Copy link

TuTiuTe commented Feb 19, 2024

Tested versions

  • This bug is doable on every version since at least 4.0 as long as you're on wayland linux
  • Tested on Fedora, Arch, Debian, multiple different computers too

System information

Godot v4.2.1.stable - Fedora Linux 39 (Workstation Edition) - Wayland - Vulkan (Forward+) - integrated Intel(R) UHD Graphics 620 (WHL GT2) () - Intel(R) Core(TM) i5-8365U CPU @ 1.60GHz (8 Threads)

Issue description

When trying to chose a color with the eyedropper, it immediately goes black and starts pumping out error messages

platform/linuxbsd/x11/display_server_x11.cpp:1108 - Unhandled XServer error: BadMatch (invalid parameter attributes)
Major opcode of failed request: 73
Serial number of failed request: 0
Current serial number in output stream: 41303

I am not knowledgeable enough to know if this is a Xwayland or a Godot problem

Steps to reproduce

Try to chose a color with the eyedropper on wayland linux

Screencast.from.2024-02-19.14-20-16.webm

Minimal reproduction project (MRP)

This is a global issue and doesn't need a MRP

@akien-mga akien-mga changed the title Eyedropper color picker not working with Wayland Eyedropper color picker not working with XWayland Feb 19, 2024
@Riteo
Copy link
Contributor

Riteo commented Feb 22, 2024

I'm not sure if XWayland can read the screen at all, as it's some weird semi-headless server thing, I think.

@donte5405
Copy link

I wonder a little bit of why it doesn't happen with 3.x?

Maybe X11 display on 3.x is simple enough that XWayland can cover it all?

@Calinou
Copy link
Member

Calinou commented May 15, 2024

I wonder a little bit of why it doesn't happen with 3.x?

Maybe X11 display on 3.x is simple enough that XWayland can cover it all?

ColorPicker in 3.x reads from the editor window by querying the viewport data, without relying on any OS-specific API. The upside is that this works regardless of sandboxing, but it won't work outside the editor window.

I guess we need to bring back the 3.x ColorPicker eyedropper as a fallback when using OS APIs isn't feasible due to sandboxing (e.g. web platform, Wayland, Android, iOS).

@eobet
Copy link
Contributor

eobet commented May 16, 2024

We seem to be on a similar distro, but I get a slightly different problematic behavior that I already commented about here.

@ChildishGiant
Copy link

Trying to use this does effectively crash my pc like @eobet has said. Hopefully it can be disabled on incompatible platforms or the old picker has a fallback.

@solitudealma
Copy link

i use 4.3 on nixos hyprland 0.42 has same problem, but my hypr has no response. it seems like hibernate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants