pop-os / cosmic-comp

Compositor for the COSMIC desktop environment
GNU General Public License v3.0
418 stars 51 forks source link

Xwayland clients are invisible and compositor crashes when a 2nd Xwayland client is launched #498

Closed git-f0x closed 1 month ago

git-f0x commented 1 month ago

Sorry if it's a bit early to report. I believe this wasn't the case before the latest commit 4f076e07530db2e9a671edf63c2b51bdaea826c9. Xwayland apps with CSD are completely invisible (other than the active hint, if enabled), while those with SSD just show the decorations. Launching a second Xwayland app causes a compositor crash. The logs don't seem to be terribly helpful, but here's the stderr output of comp with RUST_BACKTRACE=1:

[2024-05-21T22:26:11Z ERROR sctk_adwaita::config] XDG Settings Portal did not return response in time: timeout: 100ms, key: color-scheme
[2024-05-21T22:26:11Z WARN  sctk_adwaita::buttons] Ignoring unknown button type: 

thread 'main' has overflowed its stack
fatal runtime error: stack overflow
Io error: Broken pipe (os error 32)
Io error: Broken pipe (os error 32)
[2024-05-21T22:29:28Z ERROR winit::platform_impl::platform::wayland::event_loop] Error dispatching event loop: other error during loop operation
Io error: Broken pipe (os error 32)

Edit: This is on AMD graphics.

gabriele2000 commented 1 month ago

Confirmed. Hybrid Intel GPU + Nvidia GPU, on a laptop

Drakulix commented 1 month ago

This seems to be an issue caused by Pop!_OS outdated Xwayland version (or rather the ubuntu package we are shipping). This will be fixed shortly by packaging a newer version.

git-f0x commented 1 month ago

Can confirm that it's fixed with the newer Xwayland version. Cursors still don't work properly in fullscreen (and borderless window) modes in games, but that's a separate issue.