ValveSoftware / steam-for-linux

Issue tracking for the Steam for Linux beta client
4.25k stars 175 forks source link

Steam overlay no longer works - "...gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded" #11024

Open minimagicmoose opened 4 months ago

minimagicmoose commented 4 months ago

Your system information

Please describe your issue in as much detail as possible:

When running any game (Both native and through Proton), the overlay refuses to display. The operating system, Steam, and games are all up to date, and have had file integrity verified. All overlay settings are enabled.

When checking the terminal when running the game (Portal 2 in this instance), the following error comes up:

ERROR: ld.so: object '/home/user/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/user/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/user/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/user/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
pid 20219 != 20218, skipping destruction (fork without exec?)
ERROR: ld.so: object '/home/user/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/user/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.

This issue was only noticed after opting into the current Steam Client Beta for Steam Game Recording. When trying to access the Overlay to review recorded footage, the overlay was not working. After attempting multiple things to fix, I opted out of the Beta and went back to Stable, however the issue still persists.

I last played a game around a week ago, so I can't be entirely sure whether the Beta is the cause of this issue, or perhaps some other Steam or system update, but the overlay was working fine then and this issue has only just been noticed now.

Steps for reproducing this issue:

  1. Opt in to Steam Beta for Steam Game Recording
  2. Run game
  3. Overlay fails to show up in-game
  4. Opt out of Steam Beta
  5. Run game
sonic2kk commented 4 months ago

Updating to Beta caused this breakage for me on Arch Linux, as the Steam Overlay worked for me earlier today before downloading this update. I have not tried reverting back to Stable.

The LD_PRELOAD issue you are mentioning is fairly common though. I have seen this many times before so I am not sure if it is related.

sonic2kk commented 4 months ago

Update: Starting Steam from the commandline allows the Overlay to work on Arch Linux.

minimagicmoose commented 4 months ago

Update: I nuked my Steam install (including deleting all the leftover Steam folders afterwards) and reinstalled Steam (still using the RPM Fusion version). Still having the exact same problem. I've also tried reinstalling the game itself, also doesn't work.

minimagicmoose commented 4 months ago

Update 2: Installed the Flatpak version of Steam to test, and now the overlay works perfectly fine from what I've tried so far.

odinu commented 4 months ago

I don't have the LD_PRELOAD issue but I don't have an overlay either. It was working when recording was 1st introduced, then one day it stopped. Arch on Steam beta.

smcv commented 2 weeks ago
ERROR: ld.so: object '/home/user/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/user/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.

These error messages look bad, but they are usually harmless and do appear even on systems where everything is working correctly. It continues to be a valid bug that the overlay doesn't work for you, but it is unlikely to be related to these messages, and these messages do not tell us why the overlay is not working for you.

(Steam tries to load both the 32- and 64-bit overlays into every process, because this is the only simple cross-distro way to make the overlay work as intended for both 32- and 64-bit games. Unfortunately, this means that every 32-bit game logs a message "wrong ELF class: ELFCLASS64", and every 64-bit game logs a message "wrong ELF class: ELFCLASS32". The Steam Linux Runtime container environment mitigates this by doing more elaborate platform-dependent setup, otherwise you would see even more error messages than this, but that doesn't prevent the first few error messages from appearing.)