Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The latest update broke XCOM 2 #1161

Open
nathan-b opened this issue Sep 9, 2023 · 5 comments
Open

The latest update broke XCOM 2 #1161

nathan-b opened this issue Sep 9, 2023 · 5 comments

Comments

@nathan-b
Copy link

nathan-b commented Sep 9, 2023

Game information
XCOM 2 and XCOM 2: War of the Chosen both stopped working after the latest update.

Distribution name and version where applicable
Arch Linux

Flatpak info

nathan@nathanb-dev ~ % flatpak --version
Flatpak 1.15.4
nathan@nathanb-dev ~ % flatpak --gl-drivers
nvidia-535-104-05
default
host

Problem description
XCOM 2: WotC would display a splash screen but then hang and never actually start. I couldn't find any particularly helpful error messages.

XCOM 2 printed the following messages and then crashed:

Sep 08 22:49:12 nathanb-dev com.valvesoftware.Steam.desktop[6250]: ERROR: ld.so: object '/home/nathan/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Sep 08 22:49:12 nathanb-dev com.valvesoftware.Steam.desktop[6250]: /home/nathan/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/XCOM 2/bin/XCOM2: error while loading shared libraries: libCoreFoundation.so.476: cannot open shared object file: No such file or di>
Sep 08 22:49:12 nathanb-dev com.valvesoftware.Steam.desktop[5574]: WARNING: discarding _NET_WM_PID 2055 as invalid for X11 window - use specialized XCB_X11_TO_PID function!

Does this issue reproduce with native Steam
Have not tested.

@nathan-b
Copy link
Author

nathan-b commented Sep 9, 2023

I was able to revert to the flatpak version before the upgrade to 2023 Ubuntu and it works, but the latest version very much doesn't.

@doraskayo
Copy link
Contributor

doraskayo commented Sep 9, 2023

I've seen very similar cannot open shared object file errors with another Feral-ported game (Tomb Raider), and downgrading the Steam Flatpak seemed to help at first. However, after changing its "Compatibility" configuration a bit and upgrading/downgrading the Steam Flatpak multiple times, I no longer see the same issue.

Instead, I now see that Steam actually installs and tries to launch the Windows executable of the game directly, and failing:

Sep 10 02:29:09 Desktop-Fedora com.valvesoftware.Steam.desktop[1110637]: /bin/sh\0-c\0/home/dor/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=203160 -- /home/dor/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/steam-launch-wrapper -- '/media/storage/SteamLibrary/steamapps/common/Tomb Raider/TombRaider.exe'\0
Sep 10 02:29:09 Desktop-Fedora com.valvesoftware.Steam.desktop[1111081]: /media/storage/SteamLibrary/steamapps/common/Tomb Raider/TombRaider.exe: /media/storage/SteamLibrary/steamapps/common/Tomb Raider/TombRaider.exe: cannot execute binary file

Maybe someone at Feral tried to disable the Linux native build messed something up? Maybe it's a Steam bug where it installs the wrong version of the game? It's not clear. Anyway, it doesn't work at all out of the box at the moment, regardless of the Steam Flatpak version used.

However, the following got it working in both Steam Flatpak versions, so there's no need for a downgrade in this case:

  1. Navigate to game's properties in Steam
  2. Select "Compatibility"
  3. Force the "Steam Linux Runtime" tool

Alternatively, force the "Proton 8.0-3" tool. This option may actually result in better performance.

@nathan-b
Copy link
Author

The fact that it used to work on downgrade but doesn't any more is interesting. I've been running fine with flatpak update --commit=227a5e654498b890a13fc6612fdc3b12a4ebd943f1e764972a5ff0e65882b9a4 com.valvesoftware.Steam so far. @doraskayo, if you're up for an experiment you could try with that specific hash (and with the compatibility shims disabled) to see if it helps?

@thrashwerk
Copy link

thrashwerk commented Sep 19, 2023

I haven't played XCOM but I've noticed that Team Fortress 2 doesn't launch after the update to Freedesktop runtime 23.08 with the same gameoverlayrenderer.so preload error.

Cyberpunk 2077 also doesn't seem to launch with Proton 8.0-3, Experimental or GE-Proton8-15 but with a different error. Works with Proton 7.0-6.

Downgrading the Flatpak to commit 227a5e654498b890a13fc6612fdc3b12a4ebd943f1e764972a5ff0e65882b9a4 solved the issues.

@doraskayo
Copy link
Contributor

doraskayo commented Sep 19, 2023

@thrashwerk, this is likely the issue discussed here: #1158

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants