NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.21k stars 14.21k forks source link

Latest Steam Beta fails to load steamui.so #232971

Closed Scrumplex closed 1 year ago

Scrumplex commented 1 year ago

Describe the bug

When opted in to the latest Steam Beta (version 1684535786) starting Steam fails with the error Fatal Error: Failed to load steamui.so Looking at the log output, it looks like it fails to load libgcrypt.so.20:

dlmopen steamui.so failed: /lib32/libgcrypt.so.20: undefined symbol: gpgrt_lock_lock, version GPG_ERROR_1.0

Steps To Reproduce

Steps to reproduce the behavior:

  1. Opt into Steam Beta
  2. Start steam

Expected behavior

Steam runs

Screenshots

Steam error window saying Fatal Error: Failed to load steamui.so

Additional context

stdout when running steam:

steam.sh[563113]: Running Steam on nixos 23.05 64-bit
steam.sh[563113]: STEAM_RUNTIME is enabled automatically
setup.sh[563190]: Steam runtime environment up-to-date!
run.sh[563202]: Warning: An unexpected error occurred while executing "/sbin/ldconfig -XNv", the exit status was 127
steam.sh[563113]: Steam client's requirements are satisfied
[2023-05-20 10:05:40] Startup - updater built May 19 2023 22:00:10
[2023-05-20 10:05:40] Startup - Steam Client launched with: '/home/scrumplex/.local/share/Steam/ubuntu12_32/steam'
[2023-05-20 10:05:40] Opted in to client beta 'publicbeta' via beta file
You are in the 'publicbeta' client beta.
05/20 10:05:40 Init: Installing breakpad exception handler for appid(steam)/version(1684535786)/tid(563225)
Looks like steam didn't shutdown cleanly, scheduling immediate update check
[2023-05-20 10:05:40] Loading cached metrics from disk (/home/scrumplex/.local/share/Steam/package/steam_client_metrics.bin)
[2023-05-20 10:05:40] Using the following download hosts for Public, Realm steamglobal
[2023-05-20 10:05:40] 1. https://client-update.akamai.steamstatic.com, /, Realm 'steamglobal', weight was 1000, source = 'update_hosts_cached.vdf'
[2023-05-20 10:05:40] 2. https://cdn.cloudflare.steamstatic.com, /client/, Realm 'steamglobal', weight was 1, source = 'update_hosts_cached.vdf'
[2023-05-20 10:05:40] 3. http://media.steampowered.com, /client/, Realm 'steamglobal', weight was 1, source = 'baked in'
[2023-05-20 10:05:40] Checking for update on startup
[2023-05-20 10:05:40] Checking for available updates...
[2023-05-20 10:05:40] Downloading manifest: https://client-update.akamai.steamstatic.com/steam_client_publicbeta_ubuntu12
[2023-05-20 10:05:40] Manifest download: send request
[2023-05-20 10:05:40] Manifest download: waiting for download to finish
[2023-05-20 10:05:40] Manifest download: finished
[2023-05-20 10:05:40] Download skipped: /steam_client_publicbeta_ubuntu12 version 1684535786, installed version 1684535786, existing pending version 0
[2023-05-20 10:05:40] Nothing to do
[2023-05-20 10:05:40] Verifying installation...
[2023-05-20 10:05:40] Performing checksum verification of executable files
[2023-05-20 10:05:41] Verification complete
dlmopen steamui.so failed: /lib32/libgcrypt.so.20: undefined symbol: gpgrt_lock_lock, version GPG_ERROR_1.0
Failed to load steamui.so - dlerror(): (null)
[2023-05-20 10:05:42] Shutdown

Notify maintainers

@jagajaga @jonringer

Metadata

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

 - system: `"x86_64-linux"`
 - host os: `Linux 6.3.1-zen1, NixOS, 23.05 (Stoat), 23.05.20230519.5b1bc78`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.13.3`
 - channels(scrumplex): `""`
 - channels(root): `"nixos"`
 - nixpkgs: `/etc/nix/channels/nixpkgs`
---

/etc/nix/channels/nixpkgs -> /nix/store/xwx0anyv1mdfwbyga8ypcafbynvip0zr-source/
getchoo commented 1 year ago

i'm able to reproduce this as well

Scrumplex commented 1 year ago

In case anyone experiences this and wants a temporary workaround, you can opt out of the Steam Beta by running rm ~/.local/share/Steam/package/beta

CobaltCause commented 1 year ago

I think this might be due to a change in nixpkgs rather than steam, since this works for me on:

$ nixos-version --json | jq
{
  "nixosVersion": "23.05.20230518.48a0fb7",
  "nixpkgsRevision": "48a0fb7aab511df92a17cf239c37f2bd2ec9ae3a"
}

But it breaks for me when I update to:

$ nixos-version --json | jq
{
  "nixosVersion": "23.05.20230520.3005f20",
  "nixpkgsRevision": "3005f20ce0aaa58169cdee57c8aa12e5f1b6e1b3"
}
anund commented 1 year ago

Building with nix-build -I nixpkgs=<local git checkout> -A steam running with ./result/bin/steam and using git bisect the bad commit is e578231cb88890520d241f15df9f825d9bb958ab part of #232284

cc @K900

K900 commented 1 year ago

Please test #233360.