You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
steam: Proton 5.13 does not launch because of steam runtime #100655
Describe the bug
Multiple errors when using SteamLinuxRuntime_soldier/run-in-soldier
This prevent the latest Proton (5.13) from running
To Reproduce
The following commands are to run in a steam-run shell: steam-run /bin/bash
G_MESSAGES_DEBUG=all /mnt/hdd/Steam/steamapps/common/SteamLinuxRuntime_soldier/run-in-soldier -- echo coucou
Error: x86_64-linux-gnu-capsule-capture-libs: code 2: open "/etc/ld.so.cache": No such file or directory
ldconfig -C /etc/ld.so.cache
G_MESSAGES_DEBUG=all /mnt/hdd/Steam/steamapps/common/SteamLinuxRuntime_soldier/run-in-soldier -- echo coucou
Error: /run/pressure-vessel/pv-from-host/bin/pressure-vessel-adverb: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
# a list of nixpkgs attributes affected by the problemattribute:
- steam# a list of nixos modules affected by the problemmodule:
Reacted by Felix Schröter, Arno Dupont, Gatlee Kaw, Lucas Savva, CaptainSpof, Rémi NICOLE, Aleksandar Topuzović, V, William Casarin, Yan Minari and 24 more
Probably related, if I run Steam from a terminal window and try to run a game with Proton 5.13 I get this message before it (the game) crashes:
ERROR: ld.so: object '/home/user/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
/home/user/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier/pressure-vessel/bin/pressure-vessel-adverb: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
ERROR: ld.so: object '/home/user/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
/home/user/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier/pressure-vessel/bin/pressure-vessel-adverb: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
Reacted by mauriciod, Alexander Krimm, Yan Minari, Kira Bruneau, Trioct, lisiyuan656, Christian Harke, rencire, Jeff Hykin and Jost Alemann
@nyanloutre, to clarify, if you apply these two workarounds (both of which are entirely unsupported and are done at your own risk, but they provide useful information):
generate /etc/ld.so.cache
hack the _start-container-in-background script to add --filesystem=/nix next to the other --filesystem options
is that sufficient to make Proton 5.13 work? (I suspect the answer is no, but I hope I'm wrong.)
How to permanently add the --filesystem=/nix option to steam bwrap
If it's that simple, then we can do the equivalent of that in the pressure-vessel source code. Making pressure-vessel work on non-FHS host distributions is not really on the radar right now (we have higher-priority issues to deal with, and fixes that apply to FHS distributions like Ubuntu benefit a lot more people than fixes for individual non-FHS distributions); but making a one-line change to share an extra filesystem has such a good effort/result and risk/result ratio that we can probably sneak it in to a future release anyway.
I'm not familiar with NixOS, except knowing that it's non-FHS. What's in /nix? Does it contain executables, libraries and static data belonging to OS-level packages, like /usr on a FHS system? Or does it contain system-specific variable data, like /etc, /var and /run on a FHS system? Or does it contain user data, like /home and /srv on a FHS system? Or some mixture of those?
If /nix only contains things that are reasonably similar to a FHS system's /usr, then we can certainly share it in the same situations where we'd share /usr.
If there are symbolic links into /nix from locations like /usr and /lib, are they absolute (/lib/foo -> /nix/path/to/foo), or relative (/lib/foo -> ../nix/path/to/foo), or a mixture? (This affects where we have to put it in the container to make it work: /nix, or /run/host/nix, or both.)
How to generate the /etc/ld.so.cache file
Where does a NixOS system normally keep its ld.so cache, and where will NixOS' glibc look for it?
We do not have the resources to support non-FHS distros, but I'm hoping to get infrastructure in place in the C code so that distro developers can contribute a patch that adds their filesystems/ld.so.cache/etc. to a reasonably obvious list (probably with Exherbo as the initial example, just because someone has already told me how it works).
@nyanloutre, to clarify, if you apply these two workarounds (both of which are entirely unsupported and are done at your own risk, but they provide useful information):
* generate `/etc/ld.so.cache`
* hack the `_start-container-in-background` script to add `--filesystem=/nix` next to the other `--filesystem` options
is that sufficient to make Proton 5.13 work? (I suspect the answer is no, but I hope I'm wrong.)
It still doesn't launch any games, I have this error:
ERROR: ld.so: object '/home/paul/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
/mnt/hdd/Steam/steamapps/common/SteamLinuxRuntime_soldier/pressure-vessel/bin/pressure-vessel-adverb: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
ERROR: ld.so: object '/home/paul/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
/mnt/hdd/Steam/steamapps/common/SteamLinuxRuntime_soldier/pressure-vessel/bin/pressure-vessel-adverb: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
I'm not familiar with NixOS, except knowing that it's non-FHS. What's in /nix? Does it contain executables, libraries and static data belonging to OS-level packages, like /usr on a FHS system? Or does it contain system-specific variable data, like /etc, /var and /run on a FHS system? Or does it contain user data, like /home and /srv on a FHS system? Or some mixture of those?
In Nixos every binary and libs are located in /nix, everything else is only simlinks.
To make Steam work, NixOS is using bwrap to give it an FHS environment. Unfortunatly it's not enough to make the steam runtime work.
If there are symbolic links into /nix from locations like /usr and /lib, are they absolute (/lib/foo -> /nix/path/to/foo), or relative (/lib/foo -> ../nix/path/to/foo), or a mixture? (This affects where we have to put it in the container to make it work: /nix, or /run/host/nix, or both.)
The links are always absolute and point to /nix/store/xxxxxxxxxxx-libfoo/...
Where does a NixOS system normally keep its ld.so cache, and where will NixOS' glibc look for it?
NixOS doesn't have an ld.so cache, but it may be possible to generate it in the wrapper script that already launch steam in a bwrap.
ERROR: ld.so: object '/home/paul/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
This is noise, you can safely ignore it. The way Steam sets up LD_PRELOAD is a bit weird, and will always cause these warnings.
/mnt/hdd/Steam/steamapps/common/SteamLinuxRuntime_soldier/pressure-vessel/bin/pressure-vessel-adverb: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
This is the real problem. The container doesn't have the required ld.so, or ld.so.cache, or search paths, or something, to find the dependencies of your libstdc++.so.6.
(I'm not sure why pressure-vessel-adverb is loading C++ code - it should only depend on GLib and libelf, which are C.)
To make Steam work, NixOS is using bwrap to give it an FHS environment
That might not work particularly well with the container runtime, which also relies on bwrap.
What does that FHS environment look like? Is /usr populated with symlinks into /nix?
NixOS doesn't have an ld.so cache
That's unfortunate, because libcapsule relies on parsing the glibc ld.so cache to be able to find host system libraries. The alternative would be to hard-code a list of library directories and hope it matches the locations your glibc will look in.
it may be possible to generate it in the wrapper script that already launch steam in a bwrap
You can safely ignore this. GLib automatically loads GIO modules, and finds the version on the host system, for which the copy of GLib provided with pressure-vessel (which is from Steam Runtime v1 for maximum portability) is too old; but it doesn't actually need any GIO modules, so it's harmless that they fail to load. We actually try to turn them off, but until recently the included copy of GLib was too old to have a good mechanism to do this. A future release will probably stop this happening, but it isn't a high priority.
adding unset LD_PRELOAD
This will break the Steam overlay, which used to be just the overlay used for achievement popups, the Shift+Escape screen, etc. but is gradually accumulating more important functionality (game controller remapping, streaming, probably more).
and added the lib of this FHS to the rpath of pressure-vessel-adverb, which seems to have gotten it further, but adding all of the required libraries causes it to fail on libstdc++ again! I checked with strace, and it fails with this:
1226 openat(AT_FDCWD, "/nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libstdc++.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
It opens libstdc++ from the rpath several times, but once tries to open it from here, but this output has no libstdc++, so it obviously fails. I am honestly not sure why it only tries this path, and I did try adding the FHS to LD_LIBRARY_PATH too to no effect.
@nyanloutre I can't reproduce your results with run-in-soldier.
For me, the following command: steam-run sh -c ldconfig -C /etc/ld.so.cache -f /dev/null /lib; $HOME/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier/run-in-soldier --filesystem=/nix -- echo test gives the following output:
/nix/store/x5jj29qcgyz4gn2ml076m7i305f4j31s-dconf-0.36.0-lib/lib/gio/modules/libdconfsettings.so: undefined symbol: g_type_ensure
Failed to load module: /nix/store/x5jj29qcgyz4gn2ml076m7i305f4j31s-dconf-0.36.0-lib/lib/gio/modules/libdconfsettings.so
pressure-vessel-wrap[4]: Using glibc from provider system for some but not all architectures! Arbitrarily using provider locales.
pressure-vessel-wrap[4]: Using libdrm.so.2 from provider system for some but not all architectures! Will take /usr/share/libdrm from provider.
/run/pressure-vessel/pv-from-host/bin/pressure-vessel-adverb: /../lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.30' not found (required by /nix/store/8nn8q8p6frw05q6d87kdig8x3c4pxly6-libselinux-2.9/lib/libselinux.so.1)
Wrt. to my above halfway workaround, even adding an ld.so.cache doesn't make it load from libstdc++ from another place. It always tries to load it from the same folder where the interpreter is located.
@smcv wrt. the FHS environment, it's actually /lib, /bin, etc. that are filled with absolute symlinks to /nix/..., and then /usr/x is just a symlink to /x for any x.
pressure-vessel-wrap[4]: Using glibc from provider system for some but not all architectures! Arbitrarily using provider locales.
pressure-vessel-wrap[4]: Using libdrm.so.2 from provider system for some but not all architectures! Will take /usr/share/libdrm from provider.
Do you have both 32- and 64-bit graphics drivers on the host system? To use Steam, you really should (I'm surprised it works without involving pressure-vessel). The container has some basic Mesa graphics drivers (more as an accident of the dependency stack than anything deliberate), but they're from Debian 10, so they won't support very recent hardware.
/run/pressure-vessel/pv-from-host/bin/pressure-vessel-adverb: /../lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.30' not found (required by /nix/store/8nn8q8p6frw05q6d87kdig8x3c4pxly6-libselinux-2.9/lib/libselinux.so.1)
That's a new error, so we're making progress!
Please could you get a log with PRESSURE_VESSEL_VERBOSE=1 in the environment? That will make pressure-vessel give a lot more info about what it's thinking.
wrt. the FHS environment, it's actually /lib, /bin, etc. that are filled with absolute symlinks to /nix/..., and then /usr/x is just a symlink to /x for any x
That's the reverse of the /usr merge. pressure-vessel should cope equally well either way round, but if /usr was populated with a directory hierarchy (with symlinks to the libraries in /nix) and the compat symlinks were lib -> usr/lib, etc., that might get you onto more-commonly-tested code paths.
Added /bin/ldconfig -C /etc/ld.so.cache to the top of SteamLinuxRuntime_soldier/_start-container-in-background.
Added --filesystem=/nix to the other --filesystem parameters in SteamLinuxRuntime_soldier/_start-container-in-background.
exported PRESSURE_VESSEL_VERBOSE=1 in SteamLinuxRuntime_soldier/_v2-entry-point as it wasn't propagated when set as a launch option in steam.
pressure-vessel-launcher[669]: Child 715 died: wait status 32512
pressure-vessel-launch[702]: child 715 exited: wait status 32512
pressure-vessel-launch[702]: child exit code 715: 127
pressure-vessel-launch[702]: Exiting with status 127
/data/src/clientdll/installscript_posix.cpp (419) : Assertion Failed: Standalone evaluator returned error code for app 418530
/data/src/clientdll/installscript_posix.cpp (419) : Assertion Failed: Standalone evaluator returned error code for app 418530
seems relevant. Looks like either libexpat is missing from the container that steam runs in on NixOS to simulate something close to an FHS environment or a python3 from the runtime is called but can't find the lib from the runtime?
Edit:
Tried adding libexpat to the environment the steam client runs in, but the error remains. (might have made a mistake when adding the lib, moben@eada9fa)
The error above is from running the actual proton script. As an test, I replaced it with a bash script, which results in bash failing to find libtinfo.so.6. The interesting part here is that the NixOS bash doesn't link against that but the one in soldier does.
So binaries are run from the runtime but the libraries aren't present.
Edit: /lib64/ld-linux-x86-64.so.2 is the one from the host. I think it's likely that this is due to the "reverse usrmerge", as @smcv suspected, as pressure-vessel mounts /usr but the binaries still hardcode /lib64. I think it makes sense to see if that can be switched in the NixOS wrapper for steam because it's unlikely that the binaries will change as the runtime is debian-based if I understand correctly.
i'm not sure how the patch you gave works and it doesn't cleanly apply. i can confirm that portal does not work with my changes, but rocket league does. adding mesa.drivers and VK_ICD_FILENAMES to fhsenv.nix does work.
I applied the idea to your changes here. 64 bit games still work, but it just changed the error for 32 bit. Weirdly, everything seems to be properly copied by pressure-vessel, but wine can't load dinput8.dll.so. From running with LD_DEBUG=all, it can't find SDL2 in 32 bit mode.
Digging a bit more, it seems that whatever cache is being mounted to our glibc has an entry for 64 bit SDL2 but not 32 bit. It does have a 32 bit entry. I don't know why its not finding it...
Found the problem. We had to mount the cache on 32 bit glibc as well. I updated my branch. It's getting quite late here, so I'm going to stop for today, we can do testing tomorrow.
Reacted by ash lea, Jonathan Baldwin and Fabián Heredia Montiel
I guess all that's left to do then, is see if we can remove the build dependencies on the graphics drivers and have it use /run/opengl-driver{,-32} instead?
i tested portal using proton 5.13. i can confirm that ballisticng works with specifying the game compatibility tool as "steam linux runtime" (i believe this will use the steam scout runtime inside pressure-vessel?)
specifying the game compatibility tool as "steam linux runtime" (i believe this will use the steam scout runtime inside pressure-vessel?)
That's correct. If you run Steam with PRESSURE_VESSEL_SHELL=instead in the environment, you'll get an xterm in the Steam Runtime container instead of actually running the game, from which you can explore the container interactively, or run "$@" (with the quotes!) to get the game. The shell prompt and /etc/os-release indicate which container it is.
There are currently no native Linux games that run in soldier. I expect there will be eventually, but at the moment Steam assumes that native Linux is equivalent to the scout runtime (either the old LD_LIBRARY_PATH runtime, or the pressure-vessel container).
I'm surprised ballisticng doesn't identify the scout runtime as "SteamRT 1" or something like that - we put the right things in /etc/os-release so that OS detection should work.
@LuigiPiucco do you want to make a PR to nixpkgs from your tree? i've been using it for multiple weeks now and it seems to work just fine (and the flight simulator issue was reproducible on non-nixos ValveSoftware/Proton#4134 (comment)). as @jbalme said, it would be nice to remove build-time dependencies on the graphics drivers (and thus the need for programs.steam) but that could be addressed in a later PR.
Reacted by Matthew Piziak, Kira Bruneau, Catherine West, TredwellGit, Bryan A. S., Andreas Krohn, Fabián Heredia Montiel, Jonathan Baldwin, Philip Munksgaard, wedens and 3 more
I'm sorry, semester started a few weeks ago and, due to the pandemic and the mess that's become of our calendar, I haven't had any time to open a PR. I think I might be able to do so soon, though, maybe even tomorrow.
Reacted by Matthew Piziak, j-k, AD FullHD, Bryan A. S., ash lea, Catherine West, Fabián Heredia Montiel, Moritz Hedtke, davidak, Kira Bruneau and 3 more
I was able to get my tasks for today done earlier than expected, so here it is: #114024
Reacted by Fabián Heredia Montiel, Matthew Piziak, critbase, j-k, timor, Felix Schröter and V
Reacted by Fabián Heredia Montiel, Matthew Piziak, davidak, Rosario Pulella, James Carragher, critbase, Bryan A. S., Kira Bruneau, j-k, Liam Hupfer and 9 more
Reacted by Herman Fries, Fabián Heredia Montiel, Matthew Piziak, James Carragher, critbase, AD FullHD, Michal Koutenský, Kira Bruneau, Philip Munksgaard, j-k and 8 more
Reacted by Fabián Heredia Montiel, Matthew Piziak, Rosario Pulella, James Carragher, critbase, j-k and Felix Schröter
Activity
nyanloutre commentedon Oct 15, 2020
Related issues:
jhlkek commentedon Oct 19, 2020
Probably related, if I run Steam from a terminal window and try to run a game with Proton 5.13 I get this message before it (the game) crashes:
ERROR: ld.so: object '/home/user/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
/home/user/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier/pressure-vessel/bin/pressure-vessel-adverb: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
ERROR: ld.so: object '/home/user/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
/home/user/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier/pressure-vessel/bin/pressure-vessel-adverb: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
smcv commentedon Oct 19, 2020
@nyanloutre, to clarify, if you apply these two workarounds (both of which are entirely unsupported and are done at your own risk, but they provide useful information):
/etc/ld.so.cache_start-container-in-backgroundscript to add--filesystem=/nixnext to the other--filesystemoptionsis that sufficient to make Proton 5.13 work? (I suspect the answer is no, but I hope I'm wrong.)
If it's that simple, then we can do the equivalent of that in the pressure-vessel source code. Making pressure-vessel work on non-FHS host distributions is not really on the radar right now (we have higher-priority issues to deal with, and fixes that apply to FHS distributions like Ubuntu benefit a lot more people than fixes for individual non-FHS distributions); but making a one-line change to share an extra filesystem has such a good effort/result and risk/result ratio that we can probably sneak it in to a future release anyway.
I'm not familiar with NixOS, except knowing that it's non-FHS. What's in
/nix? Does it contain executables, libraries and static data belonging to OS-level packages, like/usron a FHS system? Or does it contain system-specific variable data, like/etc,/varand/runon a FHS system? Or does it contain user data, like/homeand/srvon a FHS system? Or some mixture of those?If
/nixonly contains things that are reasonably similar to a FHS system's/usr, then we can certainly share it in the same situations where we'd share/usr.If there are symbolic links into
/nixfrom locations like/usrand/lib, are they absolute (/lib/foo -> /nix/path/to/foo), or relative (/lib/foo -> ../nix/path/to/foo), or a mixture? (This affects where we have to put it in the container to make it work:/nix, or/run/host/nix, or both.)Where does a NixOS system normally keep its
ld.socache, and where will NixOS' glibc look for it?Handling this "nicely" is likely to need C source code changes in libcapsule and pressure-vessel. See ValveSoftware/steam-runtime#230 (comment) and https://gitlab.collabora.com/vivek/libcapsule/-/merge_requests/40 - the exact paths involved on Exherbo and NixOS are almost certainly different, but the general idea will be the same.
We do not have the resources to support non-FHS distros, but I'm hoping to get infrastructure in place in the C code so that distro developers can contribute a patch that adds their filesystems/ld.so.cache/etc. to a reasonably obvious list (probably with Exherbo as the initial example, just because someone has already told me how it works).
nyanloutre commentedon Oct 20, 2020
Hello, and thanks for the help !
It still doesn't launch any games, I have this error:
In Nixos every binary and libs are located in /nix, everything else is only simlinks.
To make Steam work, NixOS is using bwrap to give it an FHS environment. Unfortunatly it's not enough to make the steam runtime work.
The links are always absolute and point to /nix/store/xxxxxxxxxxx-libfoo/...
NixOS doesn't have an ld.so cache, but it may be possible to generate it in the wrapper script that already launch steam in a bwrap.
nyanloutre commentedon Oct 20, 2020
I also managed to get this error by adding
unset LD_PRELOADin the _v2-entry-point script:smcv commentedon Oct 20, 2020
This is noise, you can safely ignore it. The way Steam sets up
LD_PRELOADis a bit weird, and will always cause these warnings.This is the real problem. The container doesn't have the required
ld.so, orld.so.cache, or search paths, or something, to find the dependencies of yourlibstdc++.so.6.(I'm not sure why
pressure-vessel-adverbis loading C++ code - it should only depend on GLib and libelf, which are C.)That might not work particularly well with the container runtime, which also relies on bwrap.
What does that FHS environment look like? Is
/usrpopulated with symlinks into/nix?That's unfortunate, because libcapsule relies on parsing the glibc ld.so cache to be able to find host system libraries. The alternative would be to hard-code a list of library directories and hope it matches the locations your glibc will look in.
I think that would be a good idea.
You can safely ignore this. GLib automatically loads GIO modules, and finds the version on the host system, for which the copy of GLib provided with pressure-vessel (which is from Steam Runtime v1 for maximum portability) is too old; but it doesn't actually need any GIO modules, so it's harmless that they fail to load. We actually try to turn them off, but until recently the included copy of GLib was too old to have a good mechanism to do this. A future release will probably stop this happening, but it isn't a high priority.
This will break the Steam overlay, which used to be just the overlay used for achievement popups, the Shift+Escape screen, etc. but is gradually accumulating more important functionality (game controller remapping, streaming, probably more).
L-as commentedon Oct 21, 2020
I made an FHS like so:
and added the
libof this FHS to the rpath ofpressure-vessel-adverb, which seems to have gotten it further, but adding all of the required libraries causes it to fail on libstdc++ again! I checked with strace, and it fails with this:It opens libstdc++ from the rpath several times, but once tries to open it from here, but this output has no libstdc++, so it obviously fails. I am honestly not sure why it only tries this path, and I did try adding the FHS to LD_LIBRARY_PATH too to no effect.
L-as commentedon Oct 21, 2020
@nyanloutre I can't reproduce your results with run-in-soldier.
For me, the following command:
steam-run sh -c ldconfig -C /etc/ld.so.cache -f /dev/null /lib; $HOME/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier/run-in-soldier --filesystem=/nix -- echo testgives the following output:Wrt. to my above halfway workaround, even adding an ld.so.cache doesn't make it load from libstdc++ from another place. It always tries to load it from the same folder where the interpreter is located.
L-as commentedon Oct 21, 2020
@smcv wrt. the FHS environment, it's actually /lib, /bin, etc. that are filled with absolute symlinks to /nix/..., and then /usr/x is just a symlink to /x for any x.
smcv commentedon Oct 22, 2020
You can ignore that, it's harmless.
Do you have both 32- and 64-bit graphics drivers on the host system? To use Steam, you really should (I'm surprised it works without involving pressure-vessel). The container has some basic Mesa graphics drivers (more as an accident of the dependency stack than anything deliberate), but they're from Debian 10, so they won't support very recent hardware.
That's a new error, so we're making progress!
Please could you get a log with
PRESSURE_VESSEL_VERBOSE=1in the environment? That will make pressure-vessel give a lot more info about what it's thinking.That's the reverse of the /usr merge. pressure-vessel should cope equally well either way round, but if /usr was populated with a directory hierarchy (with symlinks to the libraries in /nix) and the compat symlinks were
lib -> usr/lib, etc., that might get you onto more-commonly-tested code paths.moben commentedon Oct 24, 2020
For reference, here is a log with with
PRESSURE_VESSEL_VERBOSE=1:https://gist.github.com/moben/26dfe84ea4208bee42d98f40dd180c40
Full list of changes to get to this point:
/bin/ldconfig -C /etc/ld.so.cacheto the top ofSteamLinuxRuntime_soldier/_start-container-in-background.--filesystem=/nixto the other--filesystemparameters inSteamLinuxRuntime_soldier/_start-container-in-background.PRESSURE_VESSEL_VERBOSE=1inSteamLinuxRuntime_soldier/_v2-entry-pointas it wasn't propagated when set as a launch option in steam.seems relevant. Looks like either libexpat is missing from the container that steam runs in on NixOS to simulate something close to an FHS environment or a python3 from the runtime is called but can't find the lib from the runtime?
Edit:
Tried adding libexpat to the environment the steam client runs in, but the error remains. (might have made a mistake when adding the lib, moben@eada9fa)
nixos-discourse commentedon Oct 24, 2020
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/steam-games-unable-to-load-libstdc-so-6/9589/6
moben commentedon Oct 24, 2020
Progress:
The error above is from running the actual
protonscript. As an test, I replaced it with a bash script, which results in bash failing to findlibtinfo.so.6. The interesting part here is that the NixOS bash doesn't link against that but the one in soldier does.So binaries are run from the runtime but the libraries aren't present.
Edit:
/lib64/ld-linux-x86-64.so.2is the one from the host. I think it's likely that this is due to the "reverse usrmerge", as @smcv suspected, as pressure-vessel mounts/usrbut the binaries still hardcode/lib64. I think it makes sense to see if that can be switched in the NixOS wrapper for steam because it's unlikely that the binaries will change as the runtime is debian-based if I understand correctly.188 remaining items
ashkitten commentedon Feb 3, 2021
i'm not sure how the patch you gave works and it doesn't cleanly apply. i can confirm that portal does not work with my changes, but rocket league does. adding
mesa.driversandVK_ICD_FILENAMEStofhsenv.nixdoes work.LuigiPiucco commentedon Feb 3, 2021
Try the patch attached, I left only the relevant parts. If it still doesn't apply, then I can manually apply it to a local copy of your branch.
https://gist.github.com/LuigiPiucco/a066f0d53e59a075b610bc768b478b21
ashkitten commentedon Feb 3, 2021
git couldn't apply it (corrupted patch) but i manually applied the changes. portal still does not work with this.
LuigiPiucco commentedon Feb 4, 2021
I applied the idea to your changes here. 64 bit games still work, but it just changed the error for 32 bit. Weirdly, everything seems to be properly copied by pressure-vessel, but wine can't load dinput8.dll.so. From running with
LD_DEBUG=all, it can't find SDL2 in 32 bit mode.Digging a bit more, it seems that whatever cache is being mounted to our glibc has an entry for 64 bit SDL2 but not 32 bit.It does have a 32 bit entry. I don't know why its not finding it...LuigiPiucco commentedon Feb 4, 2021
Found the problem. We had to mount the cache on 32 bit glibc as well. I updated my branch. It's getting quite late here, so I'm going to stop for today, we can do testing tomorrow.
ashkitten commentedon Feb 4, 2021
confirmed portal is now working with your change
jbalme commentedon Feb 4, 2021
I can confirm that I can run games in Proton 5.13 (tried DDLC since that's small, free, and officially supported) using Steam packaged with https://github.com/LuigiPiucco/nixpkgs/tree/pressure-vessel. How are you all testing native, non-Proton games like Portal with it? Is there a way to force a game to run in Soldier as opposed to Scout?
I guess all that's left to do then, is see if we can remove the build dependencies on the graphics drivers and have it use
/run/opengl-driver{,-32}instead?ashkitten commentedon Feb 4, 2021
i tested portal using proton 5.13. i can confirm that ballisticng works with specifying the game compatibility tool as "steam linux runtime" (i believe this will use the steam scout runtime inside pressure-vessel?)
without compatibility tool:

with:

smcv commentedon Feb 4, 2021
That's correct. If you run Steam with
PRESSURE_VESSEL_SHELL=insteadin the environment, you'll get anxtermin the Steam Runtime container instead of actually running the game, from which you can explore the container interactively, or run"$@"(with the quotes!) to get the game. The shell prompt and/etc/os-releaseindicate which container it is.There are currently no native Linux games that run in soldier. I expect there will be eventually, but at the moment Steam assumes that native Linux is equivalent to the scout runtime (either the old
LD_LIBRARY_PATHruntime, or the pressure-vessel container).I'm surprised ballisticng doesn't identify the scout runtime as "SteamRT 1" or something like that - we put the right things in
/etc/os-releaseso that OS detection should work.ashkitten commentedon Feb 21, 2021
@LuigiPiucco do you want to make a PR to nixpkgs from your tree? i've been using it for multiple weeks now and it seems to work just fine (and the flight simulator issue was reproducible on non-nixos ValveSoftware/Proton#4134 (comment)). as @jbalme said, it would be nice to remove build-time dependencies on the graphics drivers (and thus the need for
programs.steam) but that could be addressed in a later PR.jbalme commentedon Feb 22, 2021
I agree, I've been using it as well with no issues.
Removing the dependencies on graphics drivers is going to need some kind of workaround.
LuigiPiucco commentedon Feb 22, 2021
I'm sorry, semester started a few weeks ago and, due to the pandemic and the mess that's become of our calendar, I haven't had any time to open a PR. I think I might be able to do so soon, though, maybe even tomorrow.
LuigiPiucco commentedon Feb 22, 2021
I was able to get my tasks for today done earlier than expected, so here it is: #114024
nixos-discourse commentedon Mar 28, 2021
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/steam-game-cant-find-libcrypto-so-1-1-even-though-its-in-steam-run/12201/1