Gamemode breaks Shadow Warrior game
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps used to reproduce the behavior:
- Install Shadow Warrior in steam (appid: 233130)
- Set launch options to:
gamemoderun %command% - Launch game
- Game crashes at some point of loading or may not have sound in game(still sound may present in intro video)
Expected behavior Game works
System Info (please complete the following information):
- OS and version: [e.g. Ubuntu 18.04] Arch Linux
- GameMode Version [e.g. 1.1 or git sha] https://github.com/FeralInteractive/gamemode/commit/d5620e88df9c9d2c7aaa62aad84a8c328e14dd2f
Additional context Game may require you to install (arch package names):
libpulse lib32-libpulse openal lib32-openal alsa-plugins lib32-alsa-plugins
I don't think this is specific to shadow warrier, I'm also on arch, and gamemode recently broke for me, too. It segfaults when I try to open shadow of the tomb raider.
relavent logs:
Feb 22 09:12:04 my-desktop /usr/bin/gamemoded[1929525]: Adding game: 2054544 [/usr/bin/env]
Feb 22 09:12:04 my-desktop /usr/bin/gamemoded[1929525]: Entering Game Mode...
Feb 22 09:12:04 my-desktop /usr/bin/gamemoded[1929525]: governor was initially set to [schedutil]
Feb 22 09:12:04 my-desktop /usr/bin/gamemoded[1929525]: Requesting update of governor policy to performance
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: glob failed for RAPL paths: (No such file or directory)
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Setting ioprio value...
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Skipping ioprio on client [2054544,2054544]: ioprio was (7) but we expected (4)
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Addition requested for already known client 2054544 [/usr/bin/env].
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Adding game: 2054574 [/usr/bin/bash]
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Setting ioprio value...
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Skipping ioprio on client [2054574,2054574]: ioprio was (7) but we expected (4)
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Removing game: 2054574 [/usr/bin/bash]
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Setting ioprio value...
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Skipping ioprio on client [2054574,2054574]: ioprio was (7) but we expected (0)
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Adding game: 2054581 [/usr/bin/bash]
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Setting ioprio value...
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Skipping ioprio on client [2054581,2054581]: ioprio was (7) but we expected (4)
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Removal requested for unknown process [2054585].
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Removal requested for unknown process [2054584].
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Removing game: 2054581 [/usr/bin/bash]
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Setting ioprio value...
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Skipping ioprio on client [2054581,2054581]: ioprio was (7) but we expected (0)
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Adding game: 2054587 [/usr/bin/grep]
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Setting ioprio value...
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Skipping ioprio on client [2054587,2054587]: ioprio was (7) but we expected (4)
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Removing game: 2054587 [/usr/bin/grep]
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Setting ioprio value...
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Skipping ioprio on client [2054587,2054587]: ioprio was (7) but we expected (0)
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Adding game: 2054588 [/usr/bin/rm]
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Setting ioprio value...
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Skipping ioprio on client [2054588,2054588]: ioprio was (7) but we expected (4)
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Removing game: 2054588 [/usr/bin/rm]
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Setting ioprio value...
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Skipping ioprio on client [2054588,2054588]: ioprio was (7) but we expected (0)
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Adding game: 2054591 [/usr/bin/grep]
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Setting ioprio value...
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Skipping ioprio on client [2054591,2054591]: ioprio was (7) but we expected (4)
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Adding game: 2054592 [/usr/bin/head]
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Setting ioprio value...
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Skipping ioprio on client [2054592,2054592]: ioprio was (7) but we expected (4)
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Adding game: 2054593 [/usr/bin/sed]
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Setting ioprio value...
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Skipping ioprio on client [2054593,2054593]: ioprio was (7) but we expected (4)
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Removing game: 2054591 [/usr/bin/grep]
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Setting ioprio value...
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Skipping ioprio on client [2054591,2054591]: ioprio was (7) but we expected (0)
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Removing game: 2054592 [/usr/bin/head]
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Setting ioprio value...
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Skipping ioprio on client [2054592,2054592]: ioprio was (7) but we expected (0)
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Removing game: 2054593 [/usr/bin/sed]
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Setting ioprio value...
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Skipping ioprio on client [2054593,2054593]: ioprio was (7) but we expected (0)
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Removal requested for unknown process [2054589].
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Adding game: 2054594 [/usr/bin/readlink]
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Setting ioprio value...
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Skipping ioprio on client [2054594,2054594]: ioprio was (7) but we expected (4)
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Removing game: 2054594 [/usr/bin/readlink]
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Setting ioprio value...
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Skipping ioprio on client [2054594,2054594]: ioprio was (7) but we expected (0)
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Removal requested for unknown process [2054595].
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Adding game: 2054596 [/usr/bin/grep]
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Setting ioprio value...
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Skipping ioprio on client [2054596,2054596]: ioprio was (7) but we expected (4)
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Removing game: 2054596 [/usr/bin/grep]
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Setting ioprio value...
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Skipping ioprio on client [2054596,2054596]: ioprio was (7) but we expected (0)
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Adding game: 2054597 [/usr/local/games/SteamLibrary/steamapps/common/Rise of the Tomb Raider/bin/CheckVulkanDriver]
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Setting ioprio value...
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Skipping ioprio on client [2054597,2054597]: ioprio was (7) but we expected (4)
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Removing game: 2054597 [/usr/local/games/SteamLibrary/steamapps/common/Rise of the Tomb Raider/bin/CheckVulkanDriver]
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Setting ioprio value...
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Skipping ioprio on client [2054597,2054597]: ioprio was (7) but we expected (0)
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Adding game: 2054598 [/usr/local/games/SteamLibrary/steamapps/common/Rise of the Tomb Raider/bin/signalwrapper]
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Setting ioprio value...
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Skipping ioprio on client [2054598,2054598]: ioprio was (7) but we expected (4)
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Adding game: 2054599 [/usr/local/games/SteamLibrary/steamapps/common/Rise of the Tomb Raider/bin/RiseOfTheTombRaider]
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Setting ioprio value...
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Skipping ioprio on client [2054599,2054599]: ioprio was (7) but we expected (4)
Feb 22 09:12:05 my-desktop /usr/bin/gamemoded[1929525]: Addition requested for already known client 2054599 [/usr/local/games/SteamLibrary/steamapps/common/Rise of the Tomb Raider/bin/RiseOfTheTombRaider].
Feb 22 09:12:07 my-desktop /usr/bin/gamemoded[1929525]: Adding game: 2054665 [/usr/local/games/SteamLibrary/steamapps/common/Rise of the Tomb Raider/bin/RiseOfTheTombRaider]
Feb 22 09:12:07 my-desktop /usr/bin/gamemoded[1929525]: Setting ioprio value...
Feb 22 09:12:07 my-desktop /usr/bin/gamemoded[1929525]: Skipping ioprio on client [2054665,2054665]: ioprio was (7) but we expected (4)
Feb 22 09:12:22 my-desktop /usr/bin/gamemoded[1929525]: Adding game: 2055350 [/usr/bin/bash]
Feb 22 09:12:22 my-desktop /usr/bin/gamemoded[1929525]: Setting ioprio value...
Feb 22 09:12:22 my-desktop /usr/bin/gamemoded[1929525]: Skipping ioprio on client [2055350,2055350]: ioprio was (7) but we expected (4)
Feb 22 09:12:22 my-desktop /usr/bin/gamemoded[1929525]: Adding game: 2055351 [/usr/bin/pulseaudio]
Feb 22 09:12:22 my-desktop /usr/bin/gamemoded[1929525]: Setting ioprio value...
Feb 22 09:12:22 my-desktop /usr/bin/gamemoded[1929525]: Skipping ioprio on client [2055351,2055351]: ioprio was (7) but we expected (4)
Feb 22 09:12:22 my-desktop /usr/bin/gamemoded[1929525]: Addition requested for already known client 2055351 [/usr/bin/pulseaudio].
Feb 22 09:12:22 my-desktop /usr/bin/gamemoded[1929525]: Removing game: 2055350 [/usr/bin/bash]
Feb 22 09:12:22 my-desktop /usr/bin/gamemoded[1929525]: Setting ioprio value...
Feb 22 09:12:22 my-desktop /usr/bin/gamemoded[1929525]: Skipping ioprio on client [2055350,2055350]: ioprio was (7) but we expected (0)
Feb 22 09:12:22 my-desktop /usr/bin/gamemoded[1929525]: Addition requested for already known client 2054599 [/usr/local/games/SteamLibrary/steamapps/common/Rise of the Tomb Raider/bin/RiseOfTheTombRaider].
Feb 22 09:12:22 my-desktop /usr/bin/gamemoded[1929525]: Adding game: 2055364 [/usr/bin/readlink]
Feb 22 09:12:22 my-desktop /usr/bin/gamemoded[1929525]: Setting ioprio value...
Feb 22 09:12:22 my-desktop /usr/bin/gamemoded[1929525]: Skipping ioprio on client [2055364,2055364]: ioprio was (7) but we expected (4)
Feb 22 09:12:22 my-desktop /usr/bin/gamemoded[1929525]: Removing game: 2055364 [/usr/bin/readlink]
Feb 22 09:12:22 my-desktop /usr/bin/gamemoded[1929525]: Setting ioprio value...
Feb 22 09:12:22 my-desktop /usr/bin/gamemoded[1929525]: Skipping ioprio on client [2055364,2055364]: ioprio was (7) but we expected (0)
Feb 22 09:12:22 my-desktop /usr/bin/gamemoded[1929525]: Adding game: 2055365 [/usr/bin/readlink]
Feb 22 09:12:22 my-desktop /usr/bin/gamemoded[1929525]: Setting ioprio value...
Feb 22 09:12:22 my-desktop /usr/bin/gamemoded[1929525]: Skipping ioprio on client [2055365,2055365]: ioprio was (7) but we expected (4)
Feb 22 09:12:22 my-desktop /usr/bin/gamemoded[1929525]: Removing game: 2055365 [/usr/bin/readlink]
Feb 22 09:12:22 my-desktop /usr/bin/gamemoded[1929525]: Setting ioprio value...
Feb 22 09:12:22 my-desktop /usr/bin/gamemoded[1929525]: Skipping ioprio on client [2055365,2055365]: ioprio was (7) but we expected (0)
Feb 22 09:12:22 my-desktop /usr/bin/gamemoded[1929525]: Adding game: 2055366 [/usr/bin/dirname]
Feb 22 09:12:22 my-desktop /usr/bin/gamemoded[1929525]: Setting ioprio value...
Feb 22 09:12:22 my-desktop /usr/bin/gamemoded[1929525]: Skipping ioprio on client [2055366,2055366]: ioprio was (7) but we expected (4)
Feb 22 09:12:22 my-desktop /usr/bin/gamemoded[1929525]: Removing game: 2055366 [/usr/bin/dirname]
Feb 22 09:12:22 my-desktop /usr/bin/gamemoded[1929525]: Setting ioprio value...
Feb 22 09:12:22 my-desktop /usr/bin/gamemoded[1929525]: Skipping ioprio on client [2055366,2055366]: ioprio was (7) but we expected (0)
Feb 22 09:12:22 my-desktop /usr/bin/gamemoded[1929525]: Adding game: 2055367 [/usr/bin/mkdir]
Feb 22 09:12:22 my-desktop /usr/bin/gamemoded[1929525]: Setting ioprio value...
Feb 22 09:12:22 my-desktop /usr/bin/gamemoded[1929525]: Skipping ioprio on client [2055367,2055367]: ioprio was (7) but we expected (4)
Feb 22 09:12:22 my-desktop /usr/bin/gamemoded[1929525]: Removing game: 2055367 [/usr/bin/mkdir]
Feb 22 09:12:22 my-desktop /usr/bin/gamemoded[1929525]: Setting ioprio value...
Feb 22 09:12:22 my-desktop /usr/bin/gamemoded[1929525]: Skipping ioprio on client [2055367,2055367]: ioprio was (7) but we expected (0)
Feb 22 09:12:22 my-desktop /usr/bin/gamemoded[1929525]: Removal requested for unknown process [2055368].
Feb 22 09:12:22 my-desktop /usr/bin/gamemoded[1929525]: Adding game: 2055369 [/usr/bin/grep]
Feb 22 09:12:22 my-desktop /usr/bin/gamemoded[1929525]: Setting ioprio value...
Feb 22 09:12:22 my-desktop /usr/bin/gamemoded[1929525]: Skipping ioprio on client [2055369,2055369]: ioprio was (7) but we expected (4)
Feb 22 09:12:22 my-desktop /usr/bin/gamemoded[1929525]: Removing game: 2055369 [/usr/bin/grep]
Feb 22 09:12:22 my-desktop /usr/bin/gamemoded[1929525]: Setting ioprio value...
Feb 22 09:12:22 my-desktop /usr/bin/gamemoded[1929525]: Skipping ioprio on client [2055369,2055369]: ioprio was (7) but we expected (0)
Feb 22 09:12:24 my-desktop /usr/bin/gamemoded[1929525]: Removing game: 2054599 [/usr/local/games/SteamLibrary/steamapps/common/Rise of the Tomb Raider/bin/RiseOfTheTombRaider]
Feb 22 09:12:24 my-desktop /usr/bin/gamemoded[1929525]: Setting ioprio value...
Feb 22 09:12:24 my-desktop /usr/bin/gamemoded[1929525]: Skipping ioprio on client [2054599,2054599]: ioprio was (7) but we expected (0)
Feb 22 09:12:24 my-desktop /usr/bin/gamemoded[1929525]: Removing game: 2054598 [/usr/local/games/SteamLibrary/steamapps/common/Rise of the Tomb Raider/bin/signalwrapper]
Feb 22 09:12:24 my-desktop /usr/bin/gamemoded[1929525]: Setting ioprio value...
Feb 22 09:12:24 my-desktop /usr/bin/gamemoded[1929525]: Skipping ioprio on client [2054598,2054598]: ioprio was (7) but we expected (0)
Feb 22 09:12:24 my-desktop /usr/bin/gamemoded[1929525]: Removing game: 2054544 [/usr/bin/env]
Feb 22 09:12:24 my-desktop /usr/bin/gamemoded[1929525]: Setting ioprio value...
Feb 22 09:12:24 my-desktop /usr/bin/gamemoded[1929525]: Skipping ioprio on client [2054544,2054544]: ioprio was (7) but we expected (0)
Feb 22 09:12:26 my-desktop /usr/bin/gamemoded[1929525]: Removing expired game [2055351]...
Feb 22 09:12:26 my-desktop /usr/bin/gamemoded[1929525]: Removing game: 2055351 [/usr/bin/pulseaudio]
Feb 22 09:12:26 my-desktop /usr/bin/gamemoded[1929525]: Setting ioprio value...
Feb 22 09:12:26 my-desktop /usr/bin/gamemoded[1929525]: Could not inspect tasks for client [2055351]! Skipping ioprio optimisation.
Feb 22 09:12:26 my-desktop /usr/bin/gamemoded[1929525]: Removing expired game [2054665]...
Feb 22 09:12:26 my-desktop /usr/bin/gamemoded[1929525]: Removing game: 2054665 [/usr/local/games/SteamLibrary/steamapps/common/Rise of the Tomb Raider/bin/RiseOfTheTombRaider]
Feb 22 09:12:26 my-desktop /usr/bin/gamemoded[1929525]: Leaving Game Mode...
Feb 22 09:12:26 my-desktop /usr/bin/gamemoded[1929525]: Requesting update of governor policy to schedutil
Feb 22 09:12:26 my-desktop /usr/bin/gamemoded[1929525]: Setting ioprio value...
Feb 22 09:12:26 my-desktop /usr/bin/gamemoded[1929525]: Could not inspect tasks for client [2054665]! Skipping ioprio optimisation.
Feb 22 09:12:26 my-desktop /usr/bin/gamemoded[1929525]: Properly cleaned up all expired games.
to clarify, shadow of the tomb raider segfaults, not gamemode, though it only segfaults when running under gamemode.
to clarify, shadow of the tomb raider segfaults, not gamemode, though it only segfaults when running under gamemode.
I think you still mean Shadow Warrior.
I can confirm that it happens for me too using gamemoderun, however using
LD_PRELOAD="$LD_PRELOAD:/usr/lib32/libgamemodeauto.so.0" %command%
Does work.
I've the same bug with FORCED: Slightly Better Edition. With gamemoderun %command% the game doesn't start but with LD_PRELOAD="$LD_PRELOAD:/usr/lib32/libgamemodeauto.so.0" %command% it does.
It appears Last Epoch is also affected by this. Starts but without sound with gamemoderun. Works correctly with LD_PRELOAD.