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

Crashes on multiple games when using multitouch pad input gestures on Wayland #5744

Open
NicolasDerumigny opened this issue Apr 3, 2022 · 43 comments

Comments

@NicolasDerumigny
Copy link

NicolasDerumigny commented Apr 3, 2022

Compatibility Report

  • Affected games: One Finger Death Punch, Trackmania Nation Forever, Heavy Rain, Realm of the Mad god Exalt
  • Steam AppID of the game: 264200, 11020, 960910, 200210

System Information

  • GPU: Intel Iris Plus (iGPU of the i7-1065G7)
  • Driver/LLVM version: Mesa 22.0.0
  • Kernel version: 5.17.1-zen1-1-zen
  • Full system is a Lenovo C940 with 16 GiB RAM and 512 NVMe SSD under Arch Linux
  • Proton version: 7.0-1

I confirm:

  • [ x ] that I haven't found an existing compatibility report for this game.
  • [ x ] that I have checked whether there are updates for my system available.

Symptoms

When an affected game is launched, any use of three fingers gestures results in a crash in GNOME, such as changing the virtual desktop. Using the keyboards shortcuts for the same action does not result in a crash.

This bug was not present ~5 month ago and is probably linked to the support of mutitouch gesture in XWayland, added in december.

This may also be linked to #5703.

Reproduction

  1. Launch any of the games on GNOME 41.5/42 with Wayland.
  2. Input any multitasking shortcut with the touchpad (three fingers slide up/left/right).

Logs

steam-11020.log
steam-960910.log
steam-200210.log
steam-264200.log

@kisak-valve
Copy link
Member

These look like some lines of interest from the log:

X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  131 (XInputExtension)
  Minor opcode of failed request:  28 (X_GetDeviceButtonMapping)
  Serial number of failed request:  311
  Current serial number in output stream:  311
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  131 (XInputExtension)
  Minor opcode of failed request:  28 (X_GetDeviceButtonMapping)
  Serial number of failed request:  183
  Current serial number in output stream:  183

This is followed by an access violation (c0000005).

@sonic2kk
Copy link

sonic2kk commented Apr 5, 2022

This also affects Plasma Wayland, but it affects all Wine applications as far as I can tell. It affects every Steam game I have tried unless they are running through Gamescope.

@aeikum aeikum changed the title Crashes on multiple games when using mutitouch pad input gestures on Wayland Crashes on multiple games when using multitouch pad input gestures on Wayland Apr 6, 2022
@Hanna-Kitten
Copy link

Can confirm that Proton v7+ crashes all my games with multitouch touchpad inputs.

This bug does not occur with proton v6 or lower

System:
Fedora Linux 36
GNOME 42
Wayland

Apps tested (all crashed with the touchpad gestures):
Runescape 3
OldSchool Runescape
Cookie Clicker
Farming Simulator
winecfg (protontricks)

@atsen-dev
Copy link

atsen-dev commented Apr 11, 2022

Same for me with Football Manager 2022 with Proton 5.X, and I've never noticed that months ago also with same version of Proton.

"This bug was not present ~5 month ago and is probably linked to the support of mutitouch gesture in XWayland"
I think you're right, because I've never noticed that and the last time I've played to this game on my laptop was before december and it was working very well

@hayer969
Copy link

Same thing with all proton games which I tryied
Crash when using any three finger gestures
Same for any wine apps, for example log from lutris:

X Error of failed request:  BadMatch (invalid parameter attributes)
 Major opcode of failed request:  131 (XInputExtension)
  Minor opcode of failed request:  28 (X_GetDeviceButtonMapping)
  Serial number of failed request:  481
  Current serial number in output stream:  481
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  10 (X_UnmapWindow)
  Resource id in failed request:  0x3a00003
  Serial number of failed request:  49645
  Current serial number in output stream:  49646

System:

OS: Fedora Linux 36 (Workstation Edition) x86_64
Host: Aspire A515-44 V1.09
Kernel: 5.17.6-300.fc36.x86_64
Resolution: 1920x1080
DE: GNOME 42.0
WM: Mutter
CPU: AMD Ryzen 3 4300U with Radeon Graphics (4) @ 2.700GHz
GPU: AMD ATI 05:00.0 Renoir
Steam from flatpak

Work for Sid Meier's Ace Patrol with Proton 4.11-13
Any higher Proton version lead to crash

@biji
Copy link

biji commented May 16, 2022

This bug does not occur with proton v6 or lower

For me proton v6 still crash, tomb raider

@chrisbrasington
Copy link

Started seeing this freezing/unresponsive (then force quitting) on all the final fantasy pixel remaster games with three-finger trackpad swipe between multiple desktops in gnome/wayland. Took me a while to realize it was specific to gestures on the trackpad causing the issue. Only occurs with the trackpad, same gesture on touchscreen has no issues.

@chrisbrasington
Copy link

Adding to my above comment. Nearly same log as others above.

X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  131 (XInputExtension)
  Minor opcode of failed request:  28 (X_GetDeviceButtonMapping)

System

Proton Version: Experimental (did see issue on 6.3-8 and 7.0-2)
OS: Manjaro Linux X86_64
Host: XPS 13 1950
Kernel: 5.16.20-2-MANJARO 
DE: GNOME 42.1 
CPU: Intel i5-6200U (4) @ 2.800GHz 
GPU: Intel Skylake GT2 [HD Graphics 520]

@atsen-dev
Copy link

Anyone know if this bug is handled by any developer ?

It's a very uncomfortable bug..

@CapSel
Copy link

CapSel commented Jun 23, 2022

I have same issue with vanilla wine. It seems to be upstream bug but I can't find it reported.
My ASUS laptop has no intel inside - just nvidia + amd

@CapSel
Copy link

CapSel commented Jun 23, 2022

I tried to register at WineHQ bugzilla but I'm still waiting for email...
anyway I think this could be our upstream bug https://bugs.winehq.org/show_bug.cgi?id=53114

@All3xJ
Copy link

All3xJ commented Sep 27, 2022

I still have this bug

@nyaccino
Copy link

nyaccino commented Dec 9, 2022

I was able to work around this issue by using an older version of Proton. Currently I am able to gesture between workspaces while using Proton 4.11-13

The versions I tried which do not work:

  • Current experimental (2022.12.09)
  • 7.0-5
  • 6.3-8
  • 5.13-6
  • 5.0-10

I'm currently trying to play Dwarf fortress, but for the sake of this comment I also (very briefly) tested a couple other games with the same result.

Hopefully that will help find the root cause.

Edit: I just noticed I missed the comment above also stating that 4.11 seems to work, so +1 I guess

@lopataa
Copy link

lopataa commented Dec 15, 2022

+1

@flexagoon
Copy link

I am also getting this issue when playing Disco Elysium and Dwarf Fortress. Guess I'll have to use Proton 4.11 for them, but it's really annoying.

@flexagoon
Copy link

As mentioned in the upstream bug discussion, disabling touchpad gestures for all XWayland app fixes the issue

xinput list --name-only | grep ^xwayland-pointer-gestures | xargs -n1 xinput disable

@dylanmtaylor
Copy link

This also affects Plasma Wayland, but it affects all Wine applications as far as I can tell. It affects every Steam game I have tried unless they are running through Gamescope.

It seems to not affect Sid Myer's Civ 6, which is not a wine application so I'd imagine this is a wine bug.

@dylanmtaylor
Copy link

xinput list --name-only | grep ^xwayland-pointer-gestures | xargs -n1 xinput disable

@kisak-valve Is there any way Steam could automatically run this command when launching XWayland games? I lost nearly 2 hours of progress in a game because it crashed due to this bug.

@flexagoon
Copy link

xinput list --name-only | grep ^xwayland-pointer-gestures | xargs -n1 xinput disable

@kisak-valve Is there any way Steam could automatically run this command when launching XWayland games? I lost nearly 2 hours of progress in a game because it crashed due to this bug.

@dylanmtaylor The WineHQ bug discussion linked above describes a way to make this change persistent and permanently disable touchpad gestures for all XWayland apps. Most of the apps don't even use any touchpad gestures, so this change probably won't affect you

@dylanmtaylor
Copy link

xinput list --name-only | grep ^xwayland-pointer-gestures | xargs -n1 xinput disable

@kisak-valve Is there any way Steam could automatically run this command when launching XWayland games? I lost nearly 2 hours of progress in a game because it crashed due to this bug.

@dylanmtaylor The WineHQ bug discussion linked above describes a way to make this change persistent and permanently disable touchpad gestures for all XWayland apps. Most of the apps don't even use any touchpad gestures, so this change probably won't affect you

That's completely fair, but it would be really nice if the steam client would run that command before starting a game so that it will not crash for everyone and nobody would have to do a workaround.

@flexagoon
Copy link

nobody would have to do a workaround

I think running that command in and of itself is a workaround. The proper solution is to address the upstream Wine bug

@dylanmtaylor
Copy link

nobody would have to do a workaround

I think running that command in and of itself is a workaround. The proper solution is to address the upstream Wine bug

Yes, but in the meantime, surely it'd be nice to not have it crashing for users?

@ZoeTheTransHoe
Copy link

ZoeTheTransHoe commented Jul 26, 2023

Hello
Running

xinput list --name-only | grep ^xwayland-pointer-gestures | xargs -n1 xinput disable

in the terminal works to fix this issue!
I cant use gestures while in game (ive tested Bloons Tower Defense 6 and Rayman Lengends both running through proton) But i can use gestures if im on a different workspace to go back to the workspace with my game on it, without the game crashing. I can also use the trackpad as normal as a tracking device in Bloons, as you would a mouse.

On Fedora 38 on GNOME Wayland and on an Intel XE/Intel i5-1135G7 with up to date mesa drivers etc

Edit: The Command needs to be ran everytime the computer reboots, or the problem persists.

@flexagoon
Copy link

Edit: The Command needs to be ran everytime the computer reboots, or the problem persists.

@ZoeTheTransHoe check the WineHQ thread linked above for a way to make this permanent

@jothi-prasath
Copy link

jothi-prasath commented Aug 22, 2023

xinput list --name-only | grep ^xwayland-pointer-gestures | xargs -n1 xinput disable

the @ZoeTheTransHoe command fix's the issue

@atsen-dev
Copy link

I don´t know why but I did not have this issue anymore on running Football Manager 2023 through Proton 8 out of the box, I'm running Manjaro Gnome so I'm on rolling release and a lot of things where updated recently.

Good news for this bug!

@jothi-prasath
Copy link

I don´t know why but I did not have this issue anymore on running Football Manager 2023 through Proton 8 out of the box, I'm running Manjaro Gnome so I'm on rolling release and a lot of things where updated recently.

Good news for this bug!

I am using Debian 12 lol

@pbburke
Copy link

pbburke commented Sep 7, 2023

Same thing with most games I've tried, borderless or fullscreen, Wayland on Fedora 38 with RTX 4070 and i7-13700H

@DanielGolan-mc
Copy link

Can confirm with Townscaper & Enter The Gungeon, Proton Experimental, Gnome 42, Pop! OS, Lutris.

@myAinsel
Copy link

myAinsel commented Nov 5, 2023

Still occurring with Scrivener 3, under Bottles on GNOME 45, Fedora Silverblue.

@flexagoon
Copy link

@myAinsel to be fair you shouldn't use Proton with software like Scrivener

@TheSmilingTurtle
Copy link

Can confirm with Overwatch 2 and Deep Rock Galactic on fedora 38.

@covalspace
Copy link

having this bug please fix !!!

@ryanabx
Copy link

ryanabx commented Dec 11, 2023

Having the same issue. Gnome 45, Fedora 39, Proton Experimental

@frak0d
Copy link

frak0d commented Dec 18, 2023

same issue in Detroit and Genshin, proton 8 in bottles, kde plasma.
3 finger and 4 finger gestures work fine, but if i use two finger pinch it crashes.

@jothi-prasath
Copy link

@frak0d Genshin?

@dylanmtaylor
Copy link

dylanmtaylor commented Feb 4, 2024

I am hitting this issue on the new Apollo Justice: Ace Attorney game in GNOME Wayland.

Edit: It's fixed for me with the new XWayland version 23.2.6.

@flexagoon
Copy link

flexagoon commented Feb 4, 2024

This is an upstream issue in Wine. You should report everything there instead of commenting about it here.

https://bugs.winehq.org/show_bug.cgi?id=53114

The thread also provides a simple workaround which solves this problem. If you have this issue as well, you should read that and perhaps join the upstream discussion instead of leaving a +1 comment here, where it's most likely not going to help whatsoever.

Additionally, there already is a merged XWayland PR that supposedly fixes this issue.

https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1215

You should wait for XWayland to update and include the fix.

@1player
Copy link

1player commented Feb 8, 2024

There's now a PR open to backport the fix to the 23.2 branch of Xwayland, so it'll hopefully land soon.

@miguilimzero
Copy link

@1player could you send the PR link here? Thanks!

@taoky
Copy link

taoky commented Feb 23, 2024

@1player could you send the PR link here? Thanks!

https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1282

And it looks like xserver releases every month so we just need to wait for 23.2.5.

@dylanmtaylor
Copy link

This is fixed in XWayland 23.2.6 on Fedora 40 :)

@dylanmtaylor
Copy link

dylanmtaylor commented Apr 20, 2024

Ubuntu should also have the fix for this with its new XWayland version in 24.04. :)
https://packages.ubuntu.com/source/noble/xwayland
Arch Linux too. https://archlinux.org/packages/extra/x86_64/xorg-xwayland/
@kisak-valve I think this can finally be closed.

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

No branches or pull requests