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

Gamemode breaks Shadow Warrior game #196

Open
XakepSDK opened this issue Feb 22, 2020 · 5 comments
Open

Gamemode breaks Shadow Warrior game #196

XakepSDK opened this issue Feb 22, 2020 · 5 comments

Comments

@XakepSDK
Copy link

XakepSDK commented Feb 22, 2020

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps used to reproduce the behavior:

  1. Install Shadow Warrior in steam (appid: 233130)
  2. Set launch options to: gamemoderun %command%
  3. Launch game
  4. 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] d5620e8

Additional context
Game may require you to install (arch package names):

libpulse lib32-libpulse openal lib32-openal alsa-plugins lib32-alsa-plugins
@jath03
Copy link

jath03 commented Feb 22, 2020

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.

@jath03
Copy link

jath03 commented Feb 22, 2020

to clarify, shadow of the tomb raider segfaults, not gamemode, though it only segfaults when running under gamemode.

@ysblokje
Copy link
Contributor

ysblokje commented Mar 11, 2020

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.

@at46
Copy link

at46 commented Apr 16, 2020

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.

@anders-larsson
Copy link

It appears Last Epoch is also affected by this. Starts but without sound with gamemoderun. Works correctly with LD_PRELOAD.

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

5 participants