Skip to content

soldier >= 0.20210629.0 not working on NixOS #431

Closed

Description

@baracoder

Your system information

  • Steam client version (build number or date): 16-07-2021
  • Distribution (e.g. Ubuntu): NixOS
  • Opted into Steam client beta?: No (Tried both)
  • Have you checked for system updates?: Yes

Please describe your issue in as much detail as possible:

Proton based games won't launch with soldier 0.20210629.0

Gist containing logs from Soldat

  • default-slr-app638490-t20210721T203154.log and default-VERSIONS.txt (not working)
  • previous_release-slr-app638490-t20210721T202526.log and previous_release-VERSIONS.txt (working)
  • system-information.txt

https://gist.github.com/baracoder/905249402c68d64bc89192da02f0ccdd

Steps for reproducing this issue:

  1. Switch Steam Linux Runtime - Soldier Beta to None and launch Soldat -> fails
  2. Switch Steam Linux Runtime - Soldier Beta to previous_release and relaunch the same game -> works

Activity

  1. omgthegreenranger commented on Jul 20, 2021

    @omgthegreenranger

    Discovered this yesterday, too. When launching LEGO games, it would give me an error about my video card being out of date and not supporting Shader Model 3. Star Trek Online launcher was telling me that support for my card was ended.

  2. smcv commented on Jul 21, 2021

    @smcv
    Contributor

    @omgthegreenranger: Your symptoms seem different. Please open a separate issue with full details and logs.

    If we mix up more than one root cause in the same issue report, it gets confusing very quickly and we have to waste a lot of time disentangling the situation, which is time we can't spend actually fixing bugs - so please help us to help you.

  3. smcv commented on Jul 21, 2021

    @smcv
    Contributor

    @kisak-valve (or @baracoder): Please could you change the title of this issue to something like "soldier >= 0.20210629.0 not working on NixOS" so we won't get unrelated regressions reported here?

    We don't have all the details yet, but I'm reasonably confident that this is going to be a NixOS-specific issue.

  4. smcv commented on Jul 21, 2021

    @smcv
    Contributor

    @baracoder, I think your logs are probably the wrong way round? The one you've labelled "default" looks like a game launching successfully, and the one you've labelled "previous_release" looks like pressure-vessel failing to launch with:

    bwrap: execvp /usr/lib/pressure-vessel/from-host/bin/pressure-vessel-adverb: No such file or directory

    but your issue report says that it's default that is failing and previous_release is OK, so I assume they're just mislabelled?

    I think this will apply equally for all games that run under Proton 5.13 or newer, but just in case the specific game makes a difference, it would be useful to test with a small demo or free-to-play game, so that everyone who is experiencing this issue can easily test the same thing. The Expendabros and Soldat are examples of small, free Windows-only games that we often use as test-cases.

    We will need some more details to solve this: please see https://github.com/ValveSoftware/steam-runtime/blob/master/doc/reporting-steamlinuxruntime-bugs.md#essential-information. As a reminder, please capture:

    • the Help -> System Information
    • the Steam Linux Runtime log SteamLinuxRuntime_soldier/var/slr-app*-*.log created by running Steam with STEAM_LINUX_RUNTIME_LOG=1 in the environment, then launching an affected game
    • SteamLinuxRuntime_soldier/VERSIONS.txt

    As a minimum we'll need to see these for the default branch of Steam Linux Runtime - soldier, where the game launch is failing. I think you will find that VERSIONS.txt currently says depot 0.20210630.17, pressure-vessel 0.20210630.0 and soldier 0.20210629.0.

    It would also be useful if you can exit from Steam, re-launch Steam, and collect them again for the previous_release branch, so we can compare. I think you will find that VERSIONS.txt says pressure-vessel 0.20210415.0+srt1 and soldier 0.20210415.0.

  5. changed the title [-]Games using proton only work with Steam Linux Runtime set to previous_release[/-] [+]soldier >= 0.20210629.0 not working on NixOS[/+] on Jul 21, 2021
  6. baracoder commented on Jul 21, 2021

    @baracoder
    Author

    @smcv you are right, I have bodged the gist update. Sorry for the bad quality bug report and thank you for the time posting the relevant points from the docs. I have updated the description.

  7. smcv commented on Jul 21, 2021

    @smcv
    Contributor

    From a first look, I think the root cause might be to do with this, which only appears in the new log and not in the old log:

    20:31:55.283933: pressure-vessel-wrap[743753]: W: "/nix/store/wvgyhnd3rn6dhxzbr5r71gx2q9mhgshj-glibc-2.32-48/lib/ld-2.32.so" is unlikely to appear in "/run/host"
    

    I think this means we've lost one of the special cases that we had to implement for NixOS: we should not be rewriting paths that start with /nix/store/... to be /run/host/nix/store/..., but I think we might now be doing that as a side-effect of some other change?

  8. smcv commented on Jul 21, 2021

    @smcv
    Contributor

    Please could you try using the previous_release, and running Steam with PRESSURE_VESSEL_COPY_RUNTIME=1 in the environment? You should find that a directory is generated under SteamLinuxRuntime_soldier/var/ every time you try to run a Proton game.

    If my current theory is correct, then this will fail, in basically the same way the default branch did. If it does, then that's sort-of-good - it brings us one step closer to a solution.

    If you're comfortable with running unreviewed/unreleased software, you could also try this:

  9. baracoder commented on Jul 21, 2021

    @baracoder
    Author

    Running the game with previous_release and in STEAM_LINUX_RUNTIME_LOG=1 PRESSURE_VESSEL_COPY_RUNTIME=1 steam did fail as you predicted.
    https://gist.github.com/baracoder/0a99b4aa06c24b274fb282f6e0a535ea

    Restarted steam with STEAM_LINUX_RUNTIME_LOG=1 steam, switched the runtime to default branch and replaced SteamLinuxRuntime_soldier/pressure-vessel and it works again 👍
    https://gist.github.com/baracoder/cd6bcaa1aede3261fde16c9be609c944

    I have also experimented with run-in-soldier, though this seems not the right way to run it. The logged bwrap command does not add /run/host to /nix/store paths, but the /nix/store/*-glib* path is missing with the default version. It is shorter in general.
    https://gist.github.com/baracoder/48ba1fb4dedbacbf2104cf57e12e5ed7

    edit: Messed up logs again, updated

  10. smcv commented on Jul 22, 2021

    @smcv
    Contributor

    Thanks, I'll aim to get that change into the next soldier beta.

    I have also experimented with run-in-soldier, though this seems not the right way to run it.

    It's a bit complicated. The entry point from Steam is ./_v2-entry-point (full details if you want to know), but ./_v2-entry-point eventually ends up running ./run-in-soldier (possibly in the background).

    ./run-in-soldier is close enough for manual testing when you're not coming from inside Steam.

    The logged bwrap command does not add /run/host to /nix/store paths, but the /nix/store/-glib path is missing with the default version. It is shorter in general.

    At some point I should grab the code from newer Flatpak to log these with one argument per line, instead of one very long line that's hard to compare.

    For various reasons the way we start the container has changed quite a lot since 20210415 (we always do the equivalent of PRESSURE_VESSEL_COPY_RUNTIME=1 now, which is why this stopped working on NixOS) so it isn't directly comparable. We now do less of the setup with bwrap arguments, and more of it by editing the copy of the container in var/tmp-* in-place.

    I'll check that everything looks reasonable in your test results.

  11. smcv commented on Jul 22, 2021

    @smcv
    Contributor

    I'll check that everything looks reasonable in your test results.

    Yes, it looks correct. We don't need to mount /nix/store/... paths individually any more, because we mount all of /nix from the host onto /nix in the container, and we make /lib/ld-linux.so.2 a symlink to /nix/store/.../ld-2.x.so, etc. You can't see the symlinks being created on the bwrap command line any more, but if you look in SteamLinuxRuntime_soldier/var/tmp-* you'll see the symlink in tmp-*/lib.

    At some point I should grab the code from newer Flatpak to log these with one argument per line, instead of one very long line that's hard to compare.

    As you've already discovered, when run with either STEAM_LINUX_RUNTIME_VERBOSE=1 or G_MESSAGES_DEBUG=all, pressure-vessel logs a lot of information about what it's thinking - more than just STEAM_LINUX_RUNTIME_LOG=1 (and you can use both together, to get an extra-verbose log).

    If you run with either STEAM_LINUX_RUNTIME_VERBOSE=1 or G_MESSAGES_DEBUG=all and look for /usr/bin/bwrap options before bundling, you'll find a version of this that is easier to compare (one line per argument instead of a single very long line).

    Also, if you look for Making provider's ld.so visible in container in the log, you'll see a bit more about the setup for ld.so specifically, which is what was going wrong here. It'll appear twice, once for 32-bit and once for 64-bit.

  12. smcv commented on Jul 22, 2021

    @smcv
    Contributor

    I've opened #432 for some more minor compatibility issues from @baracoder's log, which will need more info to solve.

  13. smcv commented on Jul 23, 2021

    @smcv
    Contributor

    @baracoder This should be fixed in SteamLinuxRuntime_soldier depot 0.20210723.18, currently available in the client_beta branch. Please retry?

    Because you tried an unofficial pressure-vessel build, please verify integrity to make sure your local modifications have been reverted.

    I don't have a NixOS system here, but I modified a Debian test system to imitate the NixOS behaviour by making the 32-bit ld.so a symlink to a regular file in /nix, and that seems to work fine with the new beta.

    The fixed version looks like this:

    $ cat ~/SteamLibrary/steamapps/common/SteamLinuxRuntime_soldier/VERSIONS.txt 
    #Name	Version		Runtime	Runtime_Version	Comment
    depot	0.20210723.18			# Overall version number
    pressure-vessel	0.20210722.0			
    scripts	v0.20210722.0-0-gb142f90			# Entry point scripts, etc.
    soldier	0.20210719.0	soldier	0.20210719.0	# soldier_platform_0.20210719.0/
    
  14. baracoder commented on Jul 23, 2021

    @baracoder
    Author

    @smcv thank you, this version works: I changed Steam Runtime - Soldier to client_beta, verified file integrity and run the free to play Soldat game.
    The VERSIONS.txt file is same. Here is the log: https://gist.github.com/baracoder/b6c74b4023805fafc286dcbb8570fca5

  15. smcv commented on Jul 23, 2021

    @smcv
    Contributor

    Great, thanks for re-testing. Let's leave this issue open for now, but we can close it when 0.20210723.18 or later goes to the default branch.

  16. smcv commented on Aug 9, 2021

    @smcv
    Contributor

    soldier depot 0.20210723.18 (Steampipe build ID 7074429) was moved to the default branch today, so we can close this issue now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions