sonic2kk / steamtinkerlaunch

Linux wrapper tool for use with the Steam client for custom launch options and 3rd party programs
GNU General Public License v3.0
2.13k stars 71 forks source link

Crash / Does not launch from Steam #831

Closed addy419 closed 1 year ago

addy419 commented 1 year ago

System Information

Issue Description

Unable to launch steamtinkerlaunch from Steam. The launcher does not show up and no new logs in .config/steamtinkerlaunch/logs. Running from cli works for the launcher but the game (skyrim) never starts. It used to work previously without any issues. I tried recreating a new wine prefix, but nothing works. The only think I changed is the steam client is updated to GPU accelerated one (beta).

Logs

steam.sh[105297]: Running Steam on nixos 23.11 64-bit
steam.sh[105297]: STEAM_RUNTIME is enabled automatically
setup.sh[105375]: Steam runtime environment up-to-date!
run.sh[105387]: Warning: An unexpected error occurred while executing "/sbin/ldconfig -XNv", the exit status was 127
steam.sh[105297]: Steam client's requirements are satisfied
[2023-06-10 18:11:19] Startup - updater built Jun 10 2023 04:56:53
[2023-06-10 18:11:19] Startup - Steam Client launched with: '/home/aditya/.local/share/Steam/ubuntu12_32/steam'
[2023-06-10 18:11:19] Opted in to client beta 'publicbeta_newdesktopui_temp' via beta file
You are in the 'publicbeta_newdesktopui_temp' client beta.
06/10 18:11:19 Init: Installing breakpad exception handler for appid(steam)/version(1686379854)/tid(105411)
[2023-06-10 18:11:19] Loading cached metrics from disk (/home/aditya/.local/share/Steam/package/steam_client_metrics.bin)
[2023-06-10 18:11:19] Using the following download hosts for Public, Realm steamglobal
[2023-06-10 18:11:19] 1. https://client-update.akamai.steamstatic.com, /, Realm 'steamglobal', weight was 1000, source = 'update_hosts_cached.vdf'
[2023-06-10 18:11:19] 2. https://cdn.cloudflare.steamstatic.com, /client/, Realm 'steamglobal', weight was 1, source = 'update_hosts_cached.vdf'
[2023-06-10 18:11:19] 3. http://media.steampowered.com, /client/, Realm 'steamglobal', weight was 1, source = 'baked in'
[2023-06-10 18:11:19] Verifying installation...
[2023-06-10 18:11:19] Verification complete

(process:105411): GLib-GObject-CRITICAL **: 18:11:19.928: g_object_ref: assertion 'G_IS_OBJECT (object)' failed

(process:105411): GLib-GObject-CRITICAL **: 18:11:19.928: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
/nix/store/bjzhkh9nzinhh8qmckxip82p8gyk5sdw-dconf-0.40.0-lib/lib/gio/modules/libdconfsettings.so: wrong ELF class: ELFCLASS64
Failed to load module: /nix/store/bjzhkh9nzinhh8qmckxip82p8gyk5sdw-dconf-0.40.0-lib/lib/gio/modules/libdconfsettings.so
/nix/store/4chx0y5pc131w4z25xyv53f3nd6s3rzr-gvfs-1.50.4/lib/gio/modules/libgvfsdbus.so: wrong ELF class: ELFCLASS64
Failed to load module: /nix/store/4chx0y5pc131w4z25xyv53f3nd6s3rzr-gvfs-1.50.4/lib/gio/modules/libgvfsdbus.so
Loaded SDL version 3.0.0-1705-g5490873da
XRRGetOutputInfo Workaround: initialized with override: 0 real: 0xec4326b0
XRRGetCrtcInfo Workaround: initialized with override: 0 real: 0xec430f80
GetWin32Stats: display was not open yet, good
ComputeStartupMode: found registry default startup mode: 0
Switching to desktopui, since -vgui was not specified
steamwebhelper.sh[105426]: Runtime for steamwebhelper: defaulting to /home/aditya/.local/share/Steam/ubuntu12_64/steam-runtime-heavy
steamwebhelper.sh[105426]: glibc >= 2.34, partially disabling sandbox until CEF supports clone3()
CAppInfoCacheReadFromDiskThread took 33 milliseconds to initialize
Failed to init SteamVR because it isn't installed

(steam:105411): Gtk-WARNING **: 18:11:20.694: gtk_disable_setlocale() must be called before gtk_init()
local (potentially out of sync) copy of roaming config loaded - 1686 bytes.
BRefreshApplicationsInLibrary 1: 1ms
roaming config store loaded successfully - 1686 bytes.
migrating temporary roaming config store

(steam:105411): GLib-GObject-CRITICAL **: 18:11:22.456: g_object_ref: assertion 'G_IS_OBJECT (object)' failed

(steam:105411): GLib-GObject-CRITICAL **: 18:11:22.456: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
GetWin32Stats: restoring previous glx context
System startup time: 2.63 seconds
BuildCompleteAppOverviewChange: 164 apps
RegisterForAppOverview 1: 17ms
RegisterForAppOverview 2: 17ms
ExecCommandLine: "'/home/aditya/.local/share/Steam/ubuntu12_32/steam'"

(steam:105411): GLib-GObject-CRITICAL **: 18:11:23.157: g_object_ref: assertion 'G_IS_OBJECT (object)' failed

(steam:105411): GLib-GObject-CRITICAL **: 18:11:23.157: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
GameAction [AppID 489830, ActionID 1] : LaunchApp changed task to ProcessingInstallScript with ""
GameAction [AppID 489830, ActionID 1] : LaunchApp changed task to SynchronizingCloud with ""
GameAction [AppID 489830, ActionID 1] : LaunchApp changed task to SynchronizingControllerConfig with ""

(steam:105411): GLib-GObject-CRITICAL **: 18:11:35.627: g_object_ref: assertion 'G_IS_OBJECT (object)' failed

(steam:105411): GLib-GObject-CRITICAL **: 18:11:35.627: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
GameAction [AppID 489830, ActionID 1] : LaunchApp changed task to SiteLicenseSeatCheckout with ""
GameAction [AppID 489830, ActionID 1] : LaunchApp changed task to CreatingProcess with ""
GameAction [AppID 489830, ActionID 1] : LaunchApp waiting for user response to CreatingProcess ""
GameAction [AppID 489830, ActionID 1] : LaunchApp continues with user response "CreatingProcess"
/bin/sh\0-c\0/home/aditya/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=489830 -- /home/aditya/.local/share/Steam/ubuntu12_32/steam-launch-wrapper -- '/home/aditya/.local/share/Steam/compatibilitytools.d/SteamTinkerLaunch'/steamtinkerlaunch waitforexitandrun '/home/aditya/.local/share/Steam/steamapps/common/Skyrim Special Edition/SkyrimSELauncher.exe'\0
Game process added : AppID 489830 "/home/aditya/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=489830 -- /home/aditya/.local/share/Steam/ubuntu12_32/steam-launch-wrapper -- '/home/aditya/.local/share/Steam/compatibilitytools.d/SteamTinkerLaunch'/steamtinkerlaunch waitforexitandrun '/home/aditya/.local/share/Steam/steamapps/common/Skyrim Special Edition/SkyrimSELauncher.exe'", ProcID 105810, IP 0.0.0.0:0
chdir "/home/aditya/.local/share/Steam/steamapps/common/Skyrim Special Edition"
ERROR: ld.so: object '/home/aditya/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/aditya/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/aditya/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/aditya/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
GameAction [AppID 489830, ActionID 1] : LaunchApp changed task to WaitingGameWindow with ""

(steam:105411): GLib-GObject-CRITICAL **: 18:11:36.071: g_object_ref: assertion 'G_IS_OBJECT (object)' failed

(steam:105411): GLib-GObject-CRITICAL **: 18:11:36.071: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
GameAction [AppID 489830, ActionID 1] : LaunchApp changed task to Completed with ""

(steam:105411): GLib-GObject-CRITICAL **: 18:11:36.153: g_object_ref: assertion 'G_IS_OBJECT (object)' failed

(steam:105411): GLib-GObject-CRITICAL **: 18:11:36.153: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
Game process removed: AppID 489830 "/home/aditya/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=489830 -- /home/aditya/.local/share/Steam/ubuntu12_32/steam-launch-wrapper -- '/home/aditya/.local/share/Steam/compatibilitytools.d/SteamTinkerLaunch'/steamtinkerlaunch waitforexitandrun '/home/aditya/.local/share/Steam/steamapps/common/Skyrim Special Edition/SkyrimSELauncher.exe'", ProcID 105810
ThreadGetProcessExitCode: no such process 105811
Uploaded AppInterfaceStats to Steam
sonic2kk commented 1 year ago

There were packaging issues on NixOS recently I believe: https://github.com/NixOS/nixpkgs/issues/226086

I am also using the new client and it's working fine at least on STL built from git.

And just for clarity, games not launching when used from the CLI is expected, but I get the impression you understood that already :-) STL gets the actual launch command to use from Steam, so it has nothing to launch when used from the CLI (it may be possible to try and fudge this a little bit, but some games like Hades and Cookie Clicker have custom launch arguments that come from Steam, so it would be a bit of a moot point when the most reliable way will always be to take in the Steam launch command).


I have a suspicion that this is related to the error mentioned, you can try to follow the replication instructions there and see if the issue is the same (launch Steam from the terminal and try to launch a game with STL, and see if it shows the error mentioned). If so, you could politely leave a "thumbs up" on the issue. I can't see anything in the logs indicating that this is an issue on the STL side.

I am not the package maintainer for NixOS (I am a maintainer of the AUR package, but someone much more knowledgeable than me actually maintains it), so if it is a Nix issue I cannot do very sadly. If the issue is the same as the linked one, then this is fixed by #824 (the user who made the linked Nix packaging issue very kindly helped investigate the problem in #822 and then went on to fix it themselves!)

sonic2kk commented 1 year ago

I just tested on my Arch PC to be sure, and STL is still working as expected, so there shouldn't be any changes on Steam's side to break this.

It is not impossible that this is a packaging issue.

sonic2kk commented 1 year ago

I can replicate a similar problem by using SteamTinkerLaunch as a command-line argument for Proton games instead of using it as a compatibility tool (incorrect usage, as noted on the wiki and readme). It's inconsistent, though.

Given that there is an issue with SteamTinkerLaunch on Nix, it's probably related to that rather than a SteamTinkerLaunch-specific issue.

I am not sure if there has been a packaging update on the NixOS side (or if there can be, for reasons I outlined in #824), so this issue needs a re-test before I can say for sure where the issue lies.

If the NixOS issue sounds like yours, please feel free to close this issue.

addy419 commented 1 year ago

@sonic2kk It seems to be a packaging issue. The issue is in the command steamtinkertool compat add, which does not point to the proper tool but the wrapper instead. Doing this https://gist.github.com/jakehamilton/632edeb9d170a2aedc9984a0363523d3 made it work again for now :) It's not a fix, but more of a workaround for now.