flathub / com.valvesoftware.Steam

https://flathub.org/apps/details/com.valvesoftware.Steam
337 stars 70 forks source link

Steam crashes due to missing runtime #1145

Closed joserebelo closed 4 months ago

joserebelo commented 10 months ago

Distribution name and version where applicable

Flatpak info

$ flatpak --version
Flatpak 1.15.4

$ flatpak --gl-drivers
nvidia-535-104-05
default
host

Problem description

  1. Start from a clean install
  2. flatpak run com.valvesoftware.Steam
  3. Steam downloads the updates, and then crashes (flatpak run log: flatpak-run.log)

Checking ~/.var/app/com.valvesoftware.Steam/.local/share/Steam/logs/steamwebhelper.log, it looks like the runtime is missing (or looking in the wrong directory?):

/home/jose/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_64/steamwebhelper.sh: line 115: /home/jose/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_64/1/scripts/switch-runtime.sh: No such file or directory

Looking for the missing script:

$ find ~/.var/app/com.valvesoftware.Steam -name switch-runtime.sh
/home/jose/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/steam-runtime.old/scripts/switch-runtime.sh
/home/jose/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/steam-runtime/scripts/switch-runtime.sh

Copying the runtime (probably a bad idea, but it works) to the expected directory:

mkdir -p ~/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_64/1
cp -d -r \
  ~/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/steam-runtime/* \
  ~/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_64/1

Steam now starts.

Does this issue reproduce with native Steam

No

nanonyme commented 10 months ago

Sounds like file corruption, potentially as a result of Steam self-update failure. There might be some repair you can trigger.

joserebelo commented 10 months ago

I am able to reproduce this 100% of the time against a clean install. If that's the case, would an issue make more sense in the ValveSoftware/steam-for-linux repository?

nanonyme commented 10 months ago

Does it also reproduce with beta branch of this app?

joserebelo commented 10 months ago

Yup, exact same error.

  1. Window with "Updating steam runtime environment"
  2. Steam shows the "Updating Steam..." window, while downloading the update
  3. Window with "Unpacking Steam Runtime"
  4. Window with "Reconfiguring Steam Runtime"

Then it takes a couple of seconds without showing any UI, and crashes with the same error.

nanonyme commented 10 months ago

Yeah, it sounds like there's a crash setting up Steam runtime. Is there anything more obvious visible if you run Steam from command line?

joserebelo commented 10 months ago

The command line output of flatpak run com.valvesoftware.Steam is in the first post, I don't see anything obvious in the logs.

doraskayo commented 10 months ago

As far as I know the entirety of the Steam directory under .local/share is managed by Steam itself. It downloads its own runtimes and unpacks them.

This sounds like a Steam issue that should be reported in https://github.com/ValveSoftware/steam-for-linux/issues.

dnkmmr69420 commented 10 months ago

It is crashing after five minutes of playing a game for me too for the flatpak

nanonyme commented 10 months ago

Unless you have as well corrupted Steam directory, your issue is likely unrelated and should not be mangled with this one.

dnkmmr69420 commented 10 months ago

my steam directory is not corrupted

nanonyme commented 10 months ago

Then your problem is unrelated. File a new issue.

joserebelo commented 4 months ago

Not sure when or how it got fixed, but I am not able to reproduce the issue anymore, on the exact same machine, just after some system updates (now on Plasma 6, but I don't think it was related) + steam flatpak clean install.