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
My game asked to be opened with Steam Play. It of course did not work (just closed without displaying anything), so I tried running dota.sh directly and got apparently the same error.
My game asked to be opened with Steam Play. It of course did not work (just closed without displaying anything), so I tried running dota.sh directly and got apparently the same error.
I tried in a flatpak and I saw the same warning about Steam Play. I disabled Steam Play in Steam settings and it worked.
Reacted by Athanasios
Reacted by Gabriel Lopes Veiga, Iman Karim, Andrey Petrov, Damian Marcin Szymański, Sheshadri K R, Roman, Alexis Gidiotis and Athanasios
The message prompt is misleading, please ignore (it only shows once). It is showing because the container runtime for Linux is the same technology that powers Steam Play (and it used to only power Steam Play).
Dota 2 is still a native Linux game by default, but the configuration changed to use the container tech in preparation for more upgrades.
If you are not running NixOS and reading here, consider making sure that your system is able to run games using the new container/namespace technology. Switch back to the legacy LD_* scout runtime might work out for you now, but once Valve starts shipping binaries that rely on newer runtimes, the legacy option will no longer be a possibility.
The message prompt is misleading, please ignore (it only shows once). It is showing because the container runtime for Linux is the same technology that powers Steam Play (and it used to only power Steam Play).
It didn't occur to disable Steam Play in nixos's steam (like I did in steam flatpak), because I didn't get a Steam Play prompt. I can confirm that dota also works correctly after disabling Steam Play in nixos's steam.
Switch back to the legacy LD_* scout runtime might work out for you now, but once Valve starts shipping binaries that rely on newer runtimes, the legacy option will no longer be a possibility.
How would I know which runtime dota is using?
Edit: after rereading your comment, the implication seems to be:
If you are not running NixOS and reading here, consider making sure that your system is able to run games using the new container/namespace technology.
Could you help me find out how to test if my system is ready for the new container/namespace technology? Are there any kernel flags I have to make sure are set?
Unfortunately, at the moment, the NixOS packaging is setting up a Steam Runtime itself (?) and setting the STEAM_RUNTIME environment variable (?), bypassing the way steam.sh would normally do this. This means scout-on-soldier-entry-point-v2 can't borrow the old libraries from ~/.steam/root/ubuntu12_32/steam-runtime, because they aren't there; and Dota 2 crashes, because it needed those old libraries.
I tried to test but unfortunately, I'm getting an glXChooseVisual error that I believe is related to my system (recently switched to root-on-tmpfs). I couldn't even get nixpkgs master's steam running. Someone else will have to test.
I tried to test but unfortunately, I'm getting an glXChooseVisual error that I believe is related to my system (recently switched to root-on-tmpfs). I couldn't even get nixpkgs master's steam running. Someone else will have to test.
make sure that /run/opengl-driver are being created.
/run/opengl-driver was populated but I figured it out: I needed to set programs.steam.enable = true; in my system config before nix run --impure github:jonringer/nixpkgs/steam-fixes#steam.
Unfortunately, [as of Feb 2022], the NixOS packaging is setting up a Steam Runtime itself (?) and setting the STEAM_RUNTIME environment variable (?), bypassing the way steam.sh would normally do this. This means scout-on-soldier-entry-point-v2 can't borrow the old libraries from ~/.steam/root/ubuntu12_32/steam-runtime, because they aren't there; and Dota 2 crashes, because it needed those old libraries.
Today's new SteamLinuxRuntime beta detects this situation and works around it, by unpacking its own private copy of the scout runtime if necessary. This will use a bit more disk space than otherwise, but should work. If it has done so, it will log something like this:
scout-on-soldier-entry-point-v2[123]: warning: /home/me/.steam/root/ubuntu12_32/steam-runtime is not the expected version
scout-on-soldier-entry-point-v2[123]: warning: expected: abcdef123456
scout-on-soldier-entry-point-v2[123]: warning: found: 123456abcdef
scout-on-soldier-entry-point-v2[123]: Recovering by unpacking /home/me/.steam/root/ubuntu12_32/steam-runtime.tar.xz* into /home/me/CustomSteamLibrary/steamapps/common/SteamLinuxRuntime/var/unpack...
If NixOS is now using the scout Steam Runtime the way it was intended to work, then this won't be necessary and won't happen (but maybe the workaround will still benefit other unsupported installation layouts, so we might as well keep it).
Activity
veigaribo commentedon Feb 1, 2022
My game asked to be opened with Steam Play. It of course did not work (just closed without displaying anything), so I tried running dota.sh directly and got apparently the same error.
[-]Jan 31 update causes dota to error out on launch[/-][+]Unable to load libpangoft2-1.0.so on NixOS[/+]tgharib commentedon Feb 1, 2022
I tried in a flatpak and I saw the same warning about Steam Play. I disabled Steam Play in Steam settings and it worked.
veigaribo commentedon Feb 1, 2022
Worked for me too.
shazow commentedon Feb 1, 2022
Same problem here, Dota2 insists on using Steam Play, disabling Steam Play fixes it. NixOS running inside Flatpak 1.12.2.
AutoAwesome commentedon Feb 1, 2022
Worked too on gentoo linux with the flatpak version of steam.
AngryPenguinPL commentedon Feb 1, 2022
Same issue on Mandriva. Solution with disable SteamPlay (global) works for me.
@kisak-valve can you look at it?
Sheshadri-1992 commentedon Feb 1, 2022
NAME="Ubuntu"
VERSION="18.04.6 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.6 LTS"
VERSION_ID="18.04"
I disabled Steam Play and it started working for me too. The system version is attached above.
kisak-valve commentedon Feb 1, 2022
Hello @Sheshadri-1992, please open a separate issue report with your system information from Steam (including the extended diagnostics information).
Sheshadri-1992 commentedon Feb 1, 2022
Ok will do.
pazg1234 commentedon Feb 1, 2022
I Also experience the same "steam play" errors on NIXOS, Dota 2 works after globally disabling Proton.
soulseekah commentedon Feb 1, 2022
Same here Ubuntu 18.04.4 LTS, disabling Steam Play and restarting Steam worked.
TTimo commentedon Feb 1, 2022
The message prompt is misleading, please ignore (it only shows once). It is showing because the container runtime for Linux is the same technology that powers Steam Play (and it used to only power Steam Play).
Dota 2 is still a native Linux game by default, but the configuration changed to use the container tech in preparation for more upgrades.
If you are not running NixOS and reading here, consider making sure that your system is able to run games using the new container/namespace technology. Switch back to the legacy LD_* scout runtime might work out for you now, but once Valve starts shipping binaries that rely on newer runtimes, the legacy option will no longer be a possibility.
tgharib commentedon Feb 1, 2022
It didn't occur to disable Steam Play in nixos's steam (like I did in steam flatpak), because I didn't get a Steam Play prompt. I can confirm that dota also works correctly after disabling Steam Play in nixos's steam.
How would I know which runtime dota is using?
Edit: after rereading your comment, the implication seems to be:
AutoAwesome commentedon Feb 2, 2022
Could you help me find out how to test if my system is ready for the new container/namespace technology? Are there any kernel flags I have to make sure are set?
26 remaining items
smcv commentedon Feb 4, 2022
Work in progress: https://gitlab.steamos.cloud/steamrt/steam-runtime-tools/-/merge_requests/417This is now merged, longer-term link: https://gitlab.steamos.cloud/steamrt/steam-runtime-tools/-/blob/HEAD/docs/distro-assumptions.md.
smcv commentedon Feb 14, 2022
https://gitlab.steamos.cloud/steamrt/steamlinuxruntime/-/merge_requests/70 works around this, by unpacking its own private copy of
~/.steam/root/ubuntu12_32/steam-runtime.tar.xzand using that. I hope to include this in the nextSteamLinuxRuntimebeta.You can try this out, at your own risk, by replacing
SteamLinuxRuntime/scout-on-soldier-entry-point-v2with https://gitlab.steamos.cloud/steamrt/steamlinuxruntime/-/raw/HEAD/runtimes/scout-on-soldier/scout-on-soldier-entry-point-v2?inline=false.In the longer term, I would still recommend aligning NixOS' Steam packaging more closely with how this works on other distributions.
jonringer commentedon Feb 14, 2022
I've been pre-occupied. I should be able to make more progress on the weekend.
Thank you for writing up more documentation, definitely helps a lot. :)
jonringer commentedon Feb 22, 2022
As an update, was able to get dota2 to launch with as a native linux application with vulkan on NixOS+nvidia.
Also fixed unrelated nvidia+proton issue i was having on NixOS
PR: NixOS/nixpkgs#157907
tgharib commentedon Feb 22, 2022
I tried to test but unfortunately, I'm getting an glXChooseVisual error that I believe is related to my system (recently switched to root-on-tmpfs). I couldn't even get nixpkgs master's steam running. Someone else will have to test.
jonringer commentedon Feb 22, 2022
make sure that
/run/opengl-driverare being created.tgharib commentedon Feb 22, 2022
Good news! It is working and dota is working too.
/run/opengl-driverwas populated but I figured it out: I needed to setprograms.steam.enable = true;in my system config beforenix run --impure github:jonringer/nixpkgs/steam-fixes#steam.jonringer commentedon Feb 22, 2022
Once the nixpkgs PR gets merged, I think we can close this.
jonringer commentedon Feb 22, 2022
programs.steam.enable = true;will also causehardware.opengl.enable = true;which creates the/run/opengl-driverpath to be created :)smcv commentedon Mar 16, 2022
Today's new
SteamLinuxRuntimebeta detects this situation and works around it, by unpacking its own private copy of the scout runtime if necessary. This will use a bit more disk space than otherwise, but should work. If it has done so, it will log something like this:If NixOS is now using the scout Steam Runtime the way it was intended to work, then this won't be necessary and won't happen (but maybe the workaround will still benefit other unsupported installation layouts, so we might as well keep it).
smcv commentedon Apr 12, 2022
This workaround is now also in the non-beta branch of SteamLinuxRuntime.
kisak-valve commentedon May 13, 2022
Closing per the last comment.