NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.81k stars 13.91k forks source link

Steam fails to start due to segmentation fault #324875

Open shackra opened 3 months ago

shackra commented 3 months ago

Describe the bug

Steams fails to start with segmentation fault reported:

steam.sh[139316]: Running Steam on nixos 24.05 64-bit
steam.sh[139316]: STEAM_RUNTIME is enabled automatically
setup.sh[139406]: Steam runtime environment up-to-date!
steam.sh[139316]: Steam client's requirements are satisfied
[2024-07-05 12:22:47] Startup - updater built Jun 20 2024 17:13:49
[2024-07-05 12:22:47] Startup - Steam Client launched with: '/home/jorge/.local/share/Steam/ubuntu12_32/steam' '-srt-logger-opened'
07/05 12:22:47 minidumps folder is set to /tmp/dumps
07/05 12:22:47 Init: Installing breakpad exception handler for appid(steam)/version(1718904662)/tid(139472)
Looks like steam didn't shutdown cleanly, scheduling immediate update check
[2024-07-05 12:22:47] Loading cached metrics from disk (/home/jorge/.local/share/Steam/package/steam_client_metrics.bin)
[2024-07-05 12:22:47] Failed to load cached hosts file (File 'update_hosts_cached.vdf' not found), using defaults
[2024-07-05 12:22:47] Using the following download hosts for Public, Realm steamglobal
[2024-07-05 12:22:47] 1. https://cdn.steamstatic.com, /client/, Realm 'steamglobal', weight was 1, source = 'baked in'
[2024-07-05 12:22:47] Checking for update on startup
[2024-07-05 12:22:47] Buscando actualizaciones disponibles...
[2024-07-05 12:22:47] Downloading manifest: https://cdn.steamstatic.com/client/steam_client_ubuntu12
[2024-07-05 12:22:47] Manifest download: send request
[2024-07-05 12:22:47] Manifest download: waiting for download to finish
[2024-07-05 12:22:47] Manifest download: finished
[2024-07-05 12:22:47] Download skipped: /client/steam_client_ubuntu12 version 1718904662, installed version 1718904662, existing pending version 0
[2024-07-05 12:22:47] Nothing to do
[2024-07-05 12:22:47] Verificando instalación...
[2024-07-05 12:22:47] Performing checksum verification of executable files
[2024-07-05 12:22:48] Verification complete
UpdateUI: skip show logo
Steam logging initialized: directory: /home/jorge/.local/share/Steam/logs

XRRGetOutputInfo Workaround: initialized with override: 0 real: 0xf0f127b0
XRRGetCrtcInfo Workaround: initialized with override: 0 real: 0xf0f10f90
CAppInfoCacheReadFromDiskThread took 0 milliseconds to initialize
/home/jorge/.local/share/Steam/steam.sh: línea 868: 139472 Segmentation fault      (`core' generado) "$STEAMROOT/$STEAMEXEPATH" "$@"

Steps To Reproduce

Steps to reproduce the behavior:

  1. Install steam using the nixos module:
    # Steam
    hardware.steam-hardware.enable = true;
    programs.steam = {
    enable = true;
    remotePlay.openFirewall = true;
    gamescopeSession.enable = true;
    };
  2. Try to start it from the console
  3. see it fail

Expected behavior

Steam starts succesfully

Screenshots

none.

Additional context

Steam was running just fine before I moved to hyprland from KDE. Now that I have moved (2 days ago), I noticed Steam won't start.

Notify maintainers

@jagajaga @jonringer

Metadata

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.32, NixOS, 24.05 (Uakari), 24.05.20240609.2819fff`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.2`
 - nixpkgs: `/nix/store/giq1qbcwfx5gq0g9jf6id0b3m55a860j-source`

Add a :+1: reaction to issues you find important.

eclairevoyant commented 3 months ago

CC @Atemu @k900 @mkg20001 I guess we forgot to update the package maintainer since a while :sweat_smile:

Also should we have some NixOS/steam team?

mkg20001 commented 3 months ago

We already have lib.teams.steam, but it's not set as the package maintainer. This could be changed.

eclairevoyant commented 3 months ago

We already have lib.teams.steam

True, I also meant a github team so that we can be tagged at once, rather than needing the individual tags. I don't think we have that yet.

eum3l commented 3 months ago

I've encountered the same issue on a new device today. It seems to be a problem with the graphics driver. Actually adding the amdgpu kernel module fixed my problems:

hardware.amdgpu.initrd.enable = true;
carldots commented 1 month ago

I encountered the same error and found a solution that worked for me. Restarting the PipeWire systemd service resolved the issue, although this is a temporary fix since the problem recurs after a reboot. You can restart the service by running the following command as a normal user:

systemctl --user restart pipewire