smithay icon indicating copy to clipboard operation
smithay copied to clipboard

Running Xwayland rootful with -hidpi returns xdg_surface error 3

Open effects3d opened this issue 9 months ago • 7 comments

Running Xwayland in rootful mode with the -hidpi option fails and outputs the following error:

XWAYLAND: xdg_surface#15: error 3: must ack the initial configure before attaching buffer

Reproducible on both cosmic-comp 1.0.8 and niri 25.11 and requires the scale factor to be above one (1.25 in my case).

Sadly wasn't able to test this with Anvil, as I couldn't figure out how to change the scale factor.

effects3d avatar Feb 26 '26 22:02 effects3d

Anvil keybinings are here: https://github.com/Smithay/smithay/blob/f1d0d2c43e843233119af3dcf76d619e1afff4ee/anvil/src/input_handler.rs#L1317

cmeissl avatar Feb 26 '26 22:02 cmeissl

Reproducible under Anvil with the latest commit of Smithay.

effects3d avatar Feb 27 '26 14:02 effects3d

Apparently the latest commit of Xwayland works in rootful mode with the -hidpi option. It's only version 24.1.9 that has this issue, so I don't know what to do with this thread.

effects3d avatar Feb 27 '26 16:02 effects3d

The error message you provided represents a protocol error, which is fatal in wayland. Protocol errors are posted by the compositor in response to protocol violations. Some compositors are more strict than others. So it can either be a buggy client or the compositor handles something wrong. You can generate a wayland debug log and upload it here which might give us a hint what happens. The debug log can be enabled by setting the WAYLAND_DEBUG environment variable to 1.

cmeissl avatar Feb 27 '26 20:02 cmeissl

You can generate a wayland debug log and upload it here which might give us a hint what happens.

Here it is. xwayland-debug.log

effects3d avatar Feb 28 '26 01:02 effects3d

Apparently the latest commit of Xwayland works in rootful mode with the -hidpi option. It's only version 24.1.9 that has this issue, so I don't know what to do with this thread.

Nope, it's still an issue with Xwayland 24.1.12 which was released on Jun 2: https://lists.x.org/archives/xorg-announce/2026-June/003704.html

pocek avatar Jun 17 '26 09:06 pocek

I was specifically talking about the main branch, which would become the basis of Xwayland 26.1. Xwayland 24.1.x is not based on the current main branch.

effects3d avatar Jun 18 '26 18:06 effects3d