Skip to content

Unable to load libpangoft2-1.0.so on NixOS #2018

Closed

Description

@tgharib

Your system information

Please describe your issue in as much detail as possible:

I get the following error on launch:

screenshot

Dota was working yesterday. It broke today with a dota update.

Steps for reproducing this issue:

  1. Launch steam
  2. Launch dota

Activity

  1. veigaribo commented on Feb 1, 2022

    @veigaribo

    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.

  2. changed the title [-]Jan 31 update causes dota to error out on launch[/-] [+]Unable to load libpangoft2-1.0.so on NixOS[/+] on Feb 1, 2022
  3. tgharib commented on Feb 1, 2022

    @tgharib
    Author

    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.

  4. veigaribo commented on Feb 1, 2022

    @veigaribo

    Worked for me too.

  5. shazow commented on Feb 1, 2022

    @shazow

    Same problem here, Dota2 insists on using Steam Play, disabling Steam Play fixes it. NixOS running inside Flatpak 1.12.2.

  6. AutoAwesome commented on Feb 1, 2022

    @AutoAwesome

    Worked too on gentoo linux with the flatpak version of steam.

  7. AngryPenguinPL commented on Feb 1, 2022

    @AngryPenguinPL

    Same issue on Mandriva. Solution with disable SteamPlay (global) works for me.
    @kisak-valve can you look at it?

  8. Sheshadri-1992 commented on Feb 1, 2022

    @Sheshadri-1992

    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.

  9. kisak-valve commented on Feb 1, 2022

    @kisak-valve
    Member

    Hello @Sheshadri-1992, please open a separate issue report with your system information from Steam (including the extended diagnostics information).

  10. Sheshadri-1992 commented on Feb 1, 2022

    @Sheshadri-1992

    Ok will do.

  11. pazg1234 commented on Feb 1, 2022

    @pazg1234

    I Also experience the same "steam play" errors on NIXOS, Dota 2 works after globally disabling Proton.

  12. soulseekah commented on Feb 1, 2022

    @soulseekah

    Same here Ubuntu 18.04.4 LTS, disabling Steam Play and restarting Steam worked.

  13. TTimo commented on Feb 1, 2022

    @TTimo
    Collaborator

    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.

  14. tgharib commented on Feb 1, 2022

    @tgharib
    Author

    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:

    • Steam Play enabled --> dota uses newer runtime
    • Steam Play disabled --> dota uses older runtime
  15. AutoAwesome commented on Feb 2, 2022

    @AutoAwesome

    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?

  16. 26 remaining items

  17. smcv commented on Feb 14, 2022

    @smcv

    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.

    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.xz and using that. I hope to include this in the next SteamLinuxRuntime beta.

    You can try this out, at your own risk, by replacing SteamLinuxRuntime/scout-on-soldier-entry-point-v2 with 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.

  18. jonringer commented on Feb 14, 2022

    @jonringer

    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. :)

  19. jonringer commented on Feb 22, 2022

    @jonringer

    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

  20. tgharib commented on Feb 22, 2022

    @tgharib
    Author

    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.

  21. jonringer commented on Feb 22, 2022

    @jonringer

    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.

  22. tgharib commented on Feb 22, 2022

    @tgharib
    Author

    Good news! It is working and dota is working too.

    /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.

  23. jonringer commented on Feb 22, 2022

    @jonringer

    Once the nixpkgs PR gets merged, I think we can close this.

  24. jonringer commented on Feb 22, 2022

    @jonringer

    programs.steam.enable = true; will also cause hardware.opengl.enable = true; which creates the /run/opengl-driver path to be created :)

  25. smcv commented on Mar 16, 2022

    @smcv

    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).

  26. smcv commented on Apr 12, 2022

    @smcv

    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 workaround is now also in the non-beta branch of SteamLinuxRuntime.

  27. kisak-valve commented on May 13, 2022

    @kisak-valve
    Member

    Closing per the last comment.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions