ValveSoftware / gamescope

SteamOS session compositing window manager
Other
2.98k stars 198 forks source link

Gamescope crashes on Wayland backend if cursor enters or exits window #1434

Open grimshins opened 1 month ago

grimshins commented 1 month ago

Test environment: Ubuntu 24.04, GNOME Wayland session, Ryzen 5 5600, RX 6700, mesa 24.1.4 from kisak ppa

Beginning with the commits to master on July 15, gamescope -- vkcube crashes with terminate called after throwing an instance of 'std::system_error' what(): Invalid argument as soon as the mouse cursor enters or exits the window. gamescope --force-grab-cursor -- vkcube and gamescope --backend sdl -- vkcube behave as expected. The crash does not occur on 3.14.24 and earlier.

Joshua-Ashton commented 1 month ago

Can you send a full backtrace?

grimshins commented 1 month ago

https://gist.github.com/grimshins/93b8ebbac623a25a2ebad21ca11ec79a

Apologies if this isn't correct, I'm sort of learning by doing here

grimshins commented 1 month ago

I did some more digging on this and the commit that appears to have caused this is 1ebfacbb7477437ef295eb821a972ff3cfe992df

grimshins commented 3 weeks ago

Interestingly the crash does not occur if the -b or -f flags are used. Might have something to do with window decorations?

Vash63 commented 1 week ago

I'm facing the same issue. Fedora 40 but with Gamescope 3.15.1 stolen from GloriousEggroll's Nobara COPR. Adding -b or -f does fix it for me as well, so this does seem client-side-decoration related.

Gist with full backtrace: https://gist.github.com/Vash63/881dbdc85f8421390d985294769a0d43