Skip to content

[Steam] Dota fails to launch after Jan 31 update #157614

Closed

Description

@tgharib

Describe the bug

When launching dota from steam, it errors out with an error about libpangoft.

Dota was working yesterday. It broke today (Jan 31) after an update. I believe the update switched the game to use the soldier runtime (which runs the game inside a container). Before, I believe dota was running uncontainerized.

I filed a bug report on the dota tracker: ValveSoftware/Dota-2#2018

Steps To Reproduce

Steps to reproduce the behavior:

  1. Launch steam
  2. Launch dota

Expected behavior

The game to launch.

Screenshots

screenshot

Additional context

Steam installed through programs.steam.enable = true;.

Notify maintainers

@jagajaga @jonringer

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

nix > nix-info -m
warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels/nixos' does not exist, ignoring
error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I)

       at «string»:1:9:

            1| (import <nixpkgs> {}).stdenv.hostPlatform.system
             |         ^
 - system: `0`
 - host os: `Linux 5.10.93, NixOS, 21.11 (Porcupine)`
 - multi-user?: `no`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.5.0pre20211206_d1aaa7e`
 - channels(root): `""`
 - channels(owner): `""`
warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels/nixos' does not exist, ignoring
error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I)

       at «string»:1:1:

            1| <nixpkgs>
             | ^
 - nixpkgs: `0`

Activity

  1. added
    0.kind: bug
    on Feb 1, 2022
  2. jonringer commented on Feb 1, 2022

    @jonringer
    Contributor

    needs gnome2.pango

  3. tgharib commented on Feb 1, 2022

    @tgharib
    ContributorAuthor

    @jonringer Adding gnome2.pango might fix the symptom but since the game is running in a steam runtime container, it shouldn't need any additional dependencies on top of steam. It appears the container is leaking? According to this person running non-nixos distro, they only get the libpangoft error when running dota.sh outside of steam.

  4. jonringer commented on Feb 1, 2022

    @jonringer
    Contributor

    right now, we use LD_LIBRARY_PATH to make steam happy. However, it's a big hammer.

  5. jonringer commented on Feb 1, 2022

    @jonringer
    Contributor

    related: #120829

  6. jonringer commented on Feb 1, 2022

    @jonringer
    Contributor

    I tried removing LD_LIBRARY_PATH in #157621

  7. tgharib commented on Feb 1, 2022

    @tgharib
    ContributorAuthor

    In the meantime, I can confirm dota works in the flatpak version of steam.

  8. jonringer commented on Feb 1, 2022

    @jonringer
    Contributor

    In the meantime, I can confirm dota works in the flatpak version of steam.

    since nix also has to do a chroot-like operation, the performance implications are probably similar

  9. tgharib commented on Feb 1, 2022

    @tgharib
    ContributorAuthor

    It is even worth the time to bother with steam in nixpkgs? Steam appears to be an endless time-sink, especially when the flatpak works. Is there any advantage to nixpkgs steam over the flatpak?

  10. jonringer commented on Feb 1, 2022

    @jonringer
    Contributor

    It is even worth the time to bother with steam in nixpkgs? Steam appears to be an endless time-sink, especially when the flatpak works. Is there any advantage to nixpkgs steam over the flatpak?

    We would need data. But my guess is that the difference would be minimal. I would almost be in favor of just wrapping steam into a script which launches flatpak

  11. added
    6.topic: steam
    on Feb 1, 2022
  12. L-as commented on Feb 1, 2022

    @L-as
    Member

    The flatpak one has limitations because you can't use bwrap inside flatpak IIRC. Not sure though.

  13. tgharib commented on Feb 1, 2022

    @tgharib
    ContributorAuthor

    The flatpak one has limitations because you can't use bwrap inside flatpak IIRC. Not sure though.

    That should no longer be an issue. See flatpak/flatpak#3797

  14. Masda-X commented on Feb 1, 2022

    @Masda-X

    Same issue on Linux Lite and Linux Mint. After the latest update can not run Dota 2. Tried with flatpak on both did not work as well.

  15. tgharib commented on Feb 1, 2022

    @tgharib
    ContributorAuthor

    Same issue on Linux Lite and Linux Mint. After the latest update can not run Dota 2. Tried with flatpak on both did not work as well.

    This github thread is for nixos only. I recommend pointing this out at ValveSoftware/Dota-2#2018 since Valve only reads that thread.

  16. tgharib commented on Feb 1, 2022

    @tgharib
    ContributorAuthor

    This comment from TTimo was enlightening. After disabling Steam Play in steam settings, dota works fine on nixos's steam just as it did in the steam flatpak. However, it seems by disabling Steam Play, dota runs using an old runtime which will be soon deprecated.

  17. tgharib commented on Feb 2, 2022

    @tgharib
    ContributorAuthor

    For context, please read this first. I did some testing (I double checked once) and I arrived at the following results:

    With Steam Linux Runtime Without Steam Linux Runtime
    NixOS Floating Point Works Works
    NixOS Dota 2 libpangoft error Works
    Flatpak Floating Point Works Works
    Flatpak Dota 2 Works Works
  18. sorpaas commented on Mar 21, 2022

    @sorpaas
    Member

    We would need data. But my guess is that the difference would be minimal. I would almost be in favor of just wrapping steam into a script which launches flatpak

    I really hope we don't end up removing FHS Steam.

    There are still a lot of edge cases where FHS Steam works much better than Flatpak Steam, simply because the former can be declarative customized via extraPkgs. For example, at this moment, Rimworld cannot display Chinese fonts on Flatpak Steam, even using ugly fixes mentioned in Arch wiki or #119433. Problems like this do not exist on FHS Steam.

  19. Atemu commented on Nov 13, 2022

    @Atemu
    Member

    There are not plans to remove our Steam derivation.

    Are you still able to reproduce this issue on 22.05 and/or 22.11?

  20. SuperSamus commented on Nov 13, 2022

    @SuperSamus
    Contributor

    I have no problems launching Dota on 22.11.

  21. Atemu commented on Nov 13, 2022

    @Atemu
    Member

    Guess it's been fixed in the mean time then.

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

    0.kind: bug6.topic: steam

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions