Steam for Linux

Steam for Linux

[SOLVED] Help with getting Linux native games running.
Well, as the title implies, I'm having a hard time getting Linux native games (without proton) running on my machine, I use arch (btw) and OpenBox as a Window Manager, in theory native games built to be played on Linux should work out of the box, however, every time I try launching a game it just immediately closes and I get no error message, if I run steam via the terminal and then I try running a game I get this output:
GameAction [AppID 1536610, ActionID 3] : LaunchApp changed task to ProcessingInstallScript with "" GameAction [AppID 1536610, ActionID 3] : LaunchApp changed task to SiteLicenseSeatCheckout with "" GameAction [AppID 1536610, ActionID 3] : LaunchApp changed task to CreatingProcess with "" GameAction [AppID 1536610, ActionID 3] : LaunchApp waiting for user response to CreatingProcess "" GameAction [AppID 1536610, ActionID 3] : LaunchApp continues with user response "CreatingProcess" /bin/sh\0-c\0/home/monziarch/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=1536610 -- '/home/monziarch/Secondary/SteamLibrary/steamapps/common/SteamLinuxRuntime_soldier'/_v2-entry-point --verb=waitforexitandrun -- '/home/monziarch/Secondary/SteamLibrary/steamapps/common/SteamLinuxRuntime'/scout-on-soldier-entry-point-v2 -- '/home/monziarch/Secondary/SteamLibrary/steamapps/common/OpenTTD/openttd' -mfluidsynth:soundfont=soundfont/FluidR3_GM.sf2\0 Game update: AppID 1536610 "", ProcID 47228, IP 0.0.0.0:0 ERROR: ld.so: object '/home/monziarch/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored. Starting app 1536610 >>> Adding process 47228 for game ID 1536610 GameAction [AppID 1536610, ActionID 3] : LaunchApp changed task to WaitingGameWindow with "" GameAction [AppID 1536610, ActionID 3] : LaunchApp changed task to Completed with "" ERROR: ld.so: object '/home/monziarch/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored. pid 47229 != 47228, skipping destruction (fork without exec?) Game removed: AppID 1536610 "", ProcID 47228 Uploaded AppInterfaceStats to Steam Exiting app 1536610 No cached sticky mapping in ActivateActionSet.

I have already installed all the drivers for my GPU and I could not find any info about this kind of error online. This issue also happens with games run with proton but since proton games aren't meant to be run on Linux then I don't really complain about that. Any troubleshooting steps, ideas, or possible solutions are greatly appreciated!
Dernière modification de Light034; 27 juil. 2021 à 20h31
< >
Affichage des commentaires 1 à 11 sur 11
Is it a "non-steam game"? Did you try forcing the steam Linux runtime in the compatibility section?
can you please "cd" into Linux game folder and run "ldd" "game_executable"?

let's see if your system lacks anything that can't be covered by steam preloaded libraries.
also worth running few graphics tests
"glxgears" to check OpenGL output
"vulkaninfo" to check if it's in working condition
"vkcube" to see in action

also you can try to install that game (openttd) from your Arch repos, it's classic Linux game and should be available for all distros. see if it works that way.
https://wiki.archlinux.org/title/OpenTTD
Dernière modification de Cat on Linux; 26 juil. 2021 à 18h58
Cat on Linux a écrit :
can you please "cd" into Linux game folder and run "ldd" "game_executable"?

let's see if your system lacks anything that can't be covered by steam preloaded libraries.
also worth running few graphics tests
"glxgears" to check OpenGL output
"vulkaninfo" to check if it's in working condition
"vkcube" to see in action

also you can try to install that game (openttd) from your Arch repos, it's classic Linux game and should be available for all distros. see if it works that way.
Thanks for the response, when trying to launch the game I get:
permission denied: ./openttd
. The only game where I get a useful output is from Stardew Valley and the output is
./StardewValley exception inside UnhandledException handler: The type initializer for 'System.Console' threw an exception. [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'System.Console' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.ConsoleDriver' threw an exception. ---> System.Exception: Magic number is wrong: 542 at System.TermInfoReader.ReadHeader (System.Byte[] buffer, System.Int32& position) <0x40377780 + 0x00127> in <filename unknown>:0 at System.TermInfoReader..ctor (System.String term, System.String filename) <0x403775c0 + 0x00127> in <filename unknown>:0 at System.TermInfoDriver..ctor (System.String term) <0x40376510 + 0x00193> in <filename unknown>:0 at System.ConsoleDriver.CreateTermInfoDriver (System.String term) <0x403764d0 + 0x00027> in <filename unknown>:0 at System.ConsoleDriver..cctor () <0x403761e0 + 0x000a7> in <filename unknown>:0 --- End of inner exception stack trace --- at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) <0x40375b90 + 0x00043> in <filename unknown>:0 at System.Console..cctor () <0x403758a0 + 0x00173> in <filename unknown>:0 --- End of inner exception stack trace --- at StardewValley.Game1.set_gameMode (Byte value) <0x40378a40 + 0x00053> in <filename unknown>:0 at StardewValley.Program.handleException (System.Object sender, System.UnhandledExceptionEventArgs args) <0x40378000 + 0x0006b> in <filename unknown>:0

When I run "glxgears" it opens a window with the gears spinning and tells me the framerate (144fps).
The output from "vulkaninfo" is over 2000 lines long, but doesn't seem to have any errors, idk if the output from vulkaninfo contains any sensible information about my system but I could upload the output to a pastebin. And for vkcube it shows the cube spinning with no errors from the terminal
Selected GPU 0: Radeon RX 580 Series, type: 2

I will try installing the proprietary version of the drivers from AMD and pray they make a difference, I also installed Steam-Native-Runtime but I get the same error. I installed OpenTTD from the Arch repos and from there it seems to run flawlessly, no errors from the terminal, which makes me strongly believe this is some kind of issue with Steam, but I cannot seem to pinpoint the issue.
tests are showing your graphics are capable to run games on basic level. now need to find what libs are missing.
logs contain no useful info, can be just a noise.

what about ldd? try to cd into game folder and run
ldd openttd
and past the output here. also to run a game just type openttd if you're in its folder

try ldd on both game versions (from repo and from steam)
Dernière modification de Cat on Linux; 26 juil. 2021 à 20h41
Light034 a écrit :
I will try installing the proprietary version of the drivers from AMD and pray they make a difference
Don't... this is really bad for gaming!

Check item [4] here for several useful steps (including basic requirements for proton to run, etc):
https://steamcommunity.com/app/221410/discussions/0/1636417404917541481/

Most instructions are oriented more for Ubuntu-based distros, so probably worth checking this also before actually doing anything:
https://wiki.archlinux.org/title/Steam

I also installed Steam-Native-Runtime but I get the same error.
Also usually makes things worse because steam needs quite a lot of stuff to work and the bundled runtimes take care of most of them for you... it's useful only in very specific cases and a lot of hard work getting it in working order.

I installed OpenTTD from the Arch repos and from there it seems to run flawlessly, no errors from the terminal, which makes me strongly believe this is some kind of issue with Steam, but I cannot seem to pinpoint the issue.
Which shortcut did you use to run steam? Was it the native-libs one or the steam runtimes one?

Also this symptom is dejavu with a recent thread:
https://steamcommunity.com/app/221410/discussions/0/3051736373892813276/
as Marlock said, don't rush with video drivers, tests show it's working. focus on games and library dependencies
Cat on Linux a écrit :
what about ldd? try to cd into game folder and run
ldd openttd
and past the output here. also to run a game just type openttd if you're in its folder

try ldd on both game versions (from repo and from steam)
the output from the steam game is:
ldd: warning: you do not have execution permission for `./openttd' not a dynamic executable
and the output from the repo version is:
ldd ./openttd linux-vdso.so.1 (0x00007ffccc2da000) libpng16.so.16 => /usr/lib/libpng16.so.16 (0x00007f400516a000) libz.so.1 => /usr/lib/libz.so.1 (0x00007f4005150000) liblzma.so.5 => /usr/lib/liblzma.so.5 (0x00007f4005128000) libfluidsynth.so.2 => /usr/lib/libfluidsynth.so.2 (0x00007f400505d000) libSDL2-2.0.so.0 => /usr/lib/libSDL2-2.0.so.0 (0x00007f4004ec8000) libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00007f4004df4000) libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x00007f4004da3000) libicui18n.so.69 => /usr/lib/libicui18n.so.69 (0x00007f4004a7c000) libicuuc.so.69 => /usr/lib/libicuuc.so.69 (0x00007f4004889000) libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007f4004868000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f4004652000) libm.so.6 => /usr/lib/libm.so.6 (0x00007f400450e000) libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007f40044f1000) libc.so.6 => /usr/lib/libc.so.6 (0x00007f4004325000) libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x00007f40041f0000) libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x00007f40041eb000) libjack.so.0 => /usr/lib/libjack.so.0 (0x00007f4004199000) libasound.so.2 => /usr/lib/libasound.so.2 (0x00007f40040b1000) libpulse-simple.so.0 => /usr/lib/libpulse-simple.so.0 (0x00007f40040a8000) libportaudio.so.2 => /usr/lib/libportaudio.so.2 (0x00007f4004077000) libsndfile.so.1 => /usr/lib/libsndfile.so.1 (0x00007f4003ff5000) libdbus-1.so.3 => /usr/lib/libdbus-1.so.3 (0x00007f4003fa0000) libreadline.so.8 => /usr/lib/libreadline.so.8 (0x00007f4003f4a000) libinstpatch-1.0.so.2 => /usr/lib/libinstpatch-1.0.so.2 (0x00007f4003e88000) libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x00007f4003e2c000) libdl.so.2 => /usr/lib/libdl.so.2 (0x00007f4003e25000) libbz2.so.1.0 => /usr/lib/libbz2.so.1.0 (0x00007f4003e12000) libharfbuzz.so.0 => /usr/lib/libharfbuzz.so.0 (0x00007f4003d3d000) libexpat.so.1 => /usr/lib/libexpat.so.1 (0x00007f4003d0d000) libicudata.so.69 => /usr/lib/libicudata.so.69 (0x00007f40021b2000) /lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007f4007364000) libpcre.so.1 => /usr/lib/libpcre.so.1 (0x00007f400213b000) libdb-5.3.so => /usr/lib/libdb-5.3.so (0x00007f4001f7c000) librt.so.1 => /usr/lib/librt.so.1 (0x00007f4001f71000) libpulse.so.0 => /usr/lib/libpulse.so.0 (0x00007f4001f1c000) libpulsecommon-14.2.so => /usr/lib/pulseaudio/libpulsecommon-14.2.so (0x00007f4001e95000) libvorbisenc.so.2 => /usr/lib/libvorbisenc.so.2 (0x00007f4001dea000) libFLAC.so.8 => /usr/lib/libFLAC.so.8 (0x00007f4001dab000) libopus.so.0 => /usr/lib/libopus.so.0 (0x00007f4001d4d000) libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0x00007f4001d1f000) libogg.so.0 => /usr/lib/libogg.so.0 (0x00007f4001d14000) libsystemd.so.0 => /usr/lib/libsystemd.so.0 (0x00007f4001c4d000) libncursesw.so.6 => /usr/lib/libncursesw.so.6 (0x00007f4001bdd000) libffi.so.7 => /usr/lib/libffi.so.7 (0x00007f4001bd1000) libgraphite2.so.3 => /usr/lib/libgraphite2.so.3 (0x00007f4001bac000) libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007f4001b82000) libasyncns.so.0 => /usr/lib/libasyncns.so.0 (0x00007f4001b78000) libzstd.so.1 => /usr/lib/libzstd.so.1 (0x00007f4001a69000) liblz4.so.1 => /usr/lib/liblz4.so.1 (0x00007f4001a46000) libcap.so.2 => /usr/lib/libcap.so.2 (0x00007f4001a3b000) libgcrypt.so.20 => /usr/lib/libgcrypt.so.20 (0x00007f40018fe000) libXau.so.6 => /usr/lib/libXau.so.6 (0x00007f40018f7000) libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007f40018ef000) libresolv.so.2 => /usr/lib/libresolv.so.2 (0x00007f40018d5000) libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0x00007f40018ae000)

Marlock a écrit :
Which shortcut did you use to run steam? Was it the native-libs one or the steam runtimes one?


I'm running steam with just "steam" on the terminal, I also run it from rofi and on the menu it says Steam (Runtime) so I guess it's running the runtime. when I launch steam with "steam-runtime" the games also don't work
Dernière modification de Light034; 26 juil. 2021 à 22h25
why it always mentions ./ in file name? can you run it on a file itself? cd "path to game" and ldd openttd
local one looks OK, it has all libs linked
Dernière modification de Cat on Linux; 26 juil. 2021 à 23h19
I just tried to install steam version and test this game, if it works, it can be launched from executable directly (without steam). ldd shows links to libraries in "steam_library/steamapps/common/OpenTTD/./"
if you'll manage to run ldd on that executable make sure the links point to correct location on your drive and all files are intact (repair game). check if openttd has executable bit and try to run it directly.
it can be an issue with libraries (empty entries in ldd output) or issue with steam library where it fails to use library properly (permission issues?)
I would already have found the cause through strace :D

You have an excellent tool to fix this on Linux, but you don't use it...
Dernière modification de class101 [OLED deck]; 27 juil. 2021 à 10h40
Thanks a lot for everyone's help!! I finally figured it out, while installing arch on a laptop I had lying around I saw that I had some screen tearing issues so I went to /etc/X11/xorg.conf.d and modified the 20-amdgpu.conf file and added the line
Option "TearFree" "true"
under "Devices", when I got into my main computer I went to the same file and also decided to add TearFree and I also added a line with
Option "VariableRefresh" "true"

Now when I launch a game from steam it actually launches and I get to play, proton games also seem to be working, I never thought that 20-amdgpu.conf could be so troublesome.
< >
Affichage des commentaires 1 à 11 sur 11
Par page : 1530 50

Posté le 26 juil. 2021 à 16h46
Messages : 11