-
Notifications
You must be signed in to change notification settings - Fork 72
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
Enableing gamescope crashes games #1048
Comments
Interesting 😀 This has been a rabbit hole, thanks for reporting! So, I did some testing, and I'm not convinced this is an STL bug, but it is still very interesting nonetheness. I found recently that GameScope no longer works for me (with and without SteamTinkerLaunch) after the new Wayland backend with ValveSoftware/gamescope@ce1156a - I tested this commit and every commit up to ValveSoftware/gamescope@e48bfc8 (the latest at the time of writing) to confirm that no version worked. The last working version is the one before the new Wayland backend, ValveSoftware/gamescope@14a1db3 (GameScope built from this commit works with and without SteamTinkerLaunch for me). GameScope errors out with the new Wayland backend with:
You can try running Steam from terminal and launching your game with SteamTinkerLaunch and GameScope, and then seeing if you're getting a similar output (you can probably Ctrl+F for Now, as for why it works from the commandline and not from Steam, I suspect the binary SteamTinkerLaunch is using and the one being used from the commandline are not the same. If you can open a fresh terminal and confirm that If your shell is using Otherwise: in your Your shell might prefer a binary at If this is the problem, the first and foremost fix is for upstream to fix it 😄 I will report it upstream as at the very least I'm running into this issue. However as a workaround in the meantime you could manually remove one of the GameScope installations. If you're confident you could try to just remove the binary at either location with This can be a little tricky, but probably the best approach is to remove the install at There is unfortunately no way yet to check your GameScope binary version (ValveSoftware/gamescope#840), so to check if you have removed the old GameScope install, you can check if |
If we find out you're running into the same upstream bug that I am, I'll attach the "Third-Party Limitation" label to this issue :-) My issue has been reported upstream, if our issues are the same, then hopefully we can figure out if it's us or Gamescope having a problem (perhaps Plasma 6.0 will fix things, once it makes its way into the stable Arch repos 😄) |
Oh I didn't mention I am using plasma 6 from the testing repos (couldn't wait lol) so that could also be part of my problem, but gamescope git (from the aur) works fine when I run it in steams launch options for the game so I don't think it's a problem with gamescope or plasma as I can run these same games with gamescope just not with STL also enabled in the mix ( I tried disabling gamescope in STL and leaving gamescope in the game launch options with no luck) Regardless I will try everything you mentioned and see if perhaps I do have a Duplicate gamescope install ( I did manually install from git when I first got plasma 6 installed as I was having issues with the aur package) EDIT:
Yes I seem only to have
|
I'll be interested to see if the binaries used are the same. I don't have Plasma 6 yet, waiting on presumably 6.0.1 to make it's way to Arch, but I can't recreate any crash with STL and GameScope that is exclusive to using STL. This could be a tricky one then! I double-checked and the AUR gamescope-git package is just targetting the latest, although it is possible it's out of date if it didn't pull in the last 2 days (when the GameScope Wayland backend commit went in). |
my guess is maybe gamescope git is broken on plasma 5 now? so that is why you where crashing on git, but I did reproduce this issue with gamescope installed from the arch repos ( so it doesn't seem to be a problem exclusive to the latest git) so that wouldn't explain why you can't reproduce the issue unless it is something exclusive to plasma 6.... |
If you can run Steam from the command line and then reproduce the crash with SteamTinkerLaunch+ GameScope, and look for the GameScope output, that could give us a hint :-) You can Ctrl+F in Konsole for something like |
thats something I wonder if stl command appending logic is going screwy and adding things where its not supposed to.... |
That kind of reminds me of #1024 (related PR: #1027). I took another look at your log, this looks like the issue might be with your GameScope arguments, or lack thereof. The launch command has Double-check your GameScope args on the Game Menu and see if they're empty, and if they are, try adding I'm double-checking with a fresh config but I'm pretty sure this arg is meant to be the default. I also thought we had logic in place to force |
With a fresh config, the GameScope args do appear to default to When the args are blank, Looks like we need better detection of blank GameScope args! |
huh yup that indeed did alow my game to launch I was using no args to see if that helps with the crashing. ill try again with the args (and also test those same args in steam launch command) so its possible that my original issue was a bug outside of stl but it lead to this by testing no args lol |
It's all good though this uncovered quite the oversight, even in the code we are deliberatly ignoring GameScope arguments altogether when it's Sorry for sending you down a complete rabbit hole, when the actual fix was much simpler 😞 But if that has fixed your issue I'm very glad! I'll leave this issue open for further discussion and also until I can push a fix. Gonna remove that |
This has also revealed a related unhandled case, where if you pass GameScope arguments but do not end them with It's surprising this wasn't caught yet, but this issue helped bring it to light. |
hmm so I tried just adding resolution args so
and I get
in the terminal I have steam running no idea where its get the so something may be wrong on how its writing out the final launch command? Ill post the stl log now |
The arg string you gave is missing |
yup lol that's the issue |
I posted a comment like a few seconds before yours, but I caught this issue at the same time 😆 (#1048 (comment)) And I will work on a fix for it too tonight, but in a separate PR. I think it makes sense to handle this case also, as there is no reason to allow gamescope args to get into a broken state in this way. We can't do anything about improperly input commands, but we can handle "syntax" cases like this where Also fwiw, you can use the GameScope GUI menu, which should build the launch option correctly. Although if you're missing "--" I wonder if it'll read it correctly! I haven't checked how it handles this case, or blank arguments. |
Those seem like nasty issues! If you build from git (or if you want to modify the gamescope-git PKGBUILD yourself heh) you can rollback to the latest commit before the Wayland backend, ValveSoftware/gamescope@14a1db3 (that's what I'm currently working off of as it appears GameScope git is broken in Plasma 5 now). I also noted on my GameScope issue that the issue may be specific to Plasma 5, as it looks like (with a couple caveats) GameScope is running for you on Plasma 6. |
#1049 should fix this, just gonna do a bit more testing and then merge it later tonight. The fix for a full arguments list missing We don't have to handle updating the argument string, we could just handle it internally when we're building the GameScope array in |
For simplicity sake, I will leave out the updating of the If the user updates their GameScope command from the GUI, this will get fixed anyway, as when we save the GameScope args using the GUI function, we append |
#1049 was merged, meaning empty GameScope arguments will now have The issue with Note that neither #1049 nor #1050 will actually update the I am not sure why this was not done before, but so far I am not seeing any regressions. There have been massive changes to our GameScope handling in the last 18 months including changes to Once #1050 is merged this issue should be closed automatically :-) |
System Information
Issue Description
Games crash wen gamescope is enabled in stl settings. running the game with the same launch commands (tools) WITHOUT stl works fine with gamescope
Tested this by running a hat in time with stl and no extra tools/options enabled except gamescope (with no arguments). Game crash with the following in the log
ERROR - startGame - Could not determine pid of '/home/zany130/.local/share/Steam/compatibilitytools.d/GE-Proton8-31/files/bin/wineserver'
Then I tried running a hat in time with stl with gamescope disabled. Game ran fine
Then running the same game with
gamescope -- %command%
in steam with proton-GE set as the compat tool instead of stl. Game ran fineI tried repeating the tests after a reboot as I have seen that pid error go away before with a reboot (maybe a lingering wine processes or something) and I got the same results, enabling gamescope gives
ERROR - startGame - Could not determine pid of '/home/zany130/.local/share/Steam/compatibilitytools.d/GE-Proton8-31/files/bin/wineserver'
disabling gamescope runs the game as expectedLogs
noGamescope.log
Gamescope.log
The text was updated successfully, but these errors were encountered: