ValveSoftware / steam-for-linux

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

Steam stuck starting #7850

Closed BNieuwenhuizen closed 3 years ago

BNieuwenhuizen commented 3 years ago

Your system information

Please describe your issue in as much detail as possible:

I start steam via the cmdline, with autologin and get stuck: https://drive.google.com/file/d/1mvq6nMQY8Rt0Vn2-EB8sYSj8LvR5H-9U/view?usp=sharing

If I tab away and back it is clear that the window isn't redrawing and to exit steam I have to use "kill -9" (normal kill/killall does not work). From iotop it is clear that downloading games is still progressing even if the redrawing is stuck.

After a while steam exits due to an out of memory crash (likely address space on 32-bit as I have ample memory on the system still available). Not sure this happened with the beta at the time though.

Steam stdout/stderr: https://drive.google.com/file/d/1F06_duCXhNKUlzTKsdzP7DKVkA9wM5np/view?usp=sharing

BNieuwenhuizen commented 3 years ago

After a while the OOM doesn't reproduce anymore as part of this. That might have been a case of https://github.com/ValveSoftware/steam-for-linux/issues/7630

Tested steam --reset to see if it is related to one of the other issues. That didn't work. Tried running it in gamescope (to exclude my windowmanager being an issue) and that didn't work.

BNieuwenhuizen commented 3 years ago

The following command makes steam start correctly:

gamescope -- strace -f steam 1>/dev/null 2>/dev/null

(strace does the trick, gamescope is needed to avoid steam exiting early due to the X errors under strace, presumably because it detects strace as a debugger. The X errors are Steam looking up some Gamescope specific atoms so they should be benign)

Of course this is not a full workaround unless I figure out how to run the games without strace.

stevenj commented 3 years ago

I am getting similar issues running steam since the last update too. Totally broken for me now, nothing works (neither with nor without the runtime). I am on Manjaro.

steam-native 
Running Steam on manjarolinux 21.0.6 64-bit
STEAM_RUNTIME is disabled by the user
Can't find 'steam-runtime-check-requirements', continuing anyway
WARNING: Using default/fallback debugger launch
/home/steven/.local/share/Steam/ubuntu12_32/steam
[2021-06-10 20:32:27] Startup - updater built Jun  8 2021 22:23:36
Installing breakpad exception handler for appid(steam)/version(1623193086)
[2021-06-10 20:32:27] Loading cached metrics from disk (/home/steven/.local/share/Steam/package/steam_client_metrics.bin)
[2021-06-10 20:32:27] Using the following download hosts for Public, Realm steamglobal
[2021-06-10 20:32:27] 1. https://cdn.akamai.steamstatic.com, /client/, Realm 'steamglobal', weight was 100, source = 'update_hosts_cached.vdf'
[2021-06-10 20:32:27] 2. https://cdn.cloudflare.steamstatic.com, /client/, Realm 'steamglobal', weight was 100, source = 'update_hosts_cached.vdf'
[2021-06-10 20:32:27] 3. http://media.steampowered.com, /client/, Realm 'steamglobal', weight was 1, source = 'baked in'
Installing breakpad exception handler for appid(steam)/version(1623193086)
[2021-06-10 20:32:27] Verifying installation...
[2021-06-10 20:32:27] Verification complete
Loaded SDL version 2.0.15-6501165

(steam:16171): Gtk-WARNING **: 20:32:27.500: Unable to locate theme engine in module_path: "adwaita",

(steam:16171): Gtk-WARNING **: 20:32:27.501: Unable to locate theme engine in module_path: "murrine",

(steam:16171): Gtk-WARNING **: 20:32:27.501: Unable to locate theme engine in module_path: "murrine",

(steam:16171): Gtk-WARNING **: 20:32:27.501: Unable to locate theme engine in module_path: "murrine",

(steam:16171): Gtk-WARNING **: 20:32:27.502: Unable to locate theme engine in module_path: "murrine",

(steam:16171): Gtk-WARNING **: 20:32:27.502: Unable to locate theme engine in module_path: "murrine",

(steam:16171): Gtk-WARNING **: 20:32:27.502: Unable to locate theme engine in module_path: "murrine",

(steam:16171): Gtk-WARNING **: 20:32:27.503: Unable to locate theme engine in module_path: "murrine",
Steam: An X Error occurred
X Error of failed request:  BadAtom (invalid Atom parameter)
Major opcode of failed request:  20 (X_GetProperty)
Atom id in failed request:  0x0
Serial number of failed request:  12
xerror_handler: X failed, continuing
Steam: An X Error occurred
X Error of failed request:  BadAtom (invalid Atom parameter)
Major opcode of failed request:  20 (X_GetProperty)
Atom id in failed request:  0x0
Serial number of failed request:  13
xerror_handler: X failed, continuing
Steam: An X Error occurred
X Error of failed request:  BadAtom (invalid Atom parameter)
Major opcode of failed request:  20 (X_GetProperty)
Atom id in failed request:  0x0
Serial number of failed request:  14
xerror_handler: X failed, continuing
Installing breakpad exception handler for appid(steam)/version(1623193086)
STEAM_RUNTIME_HEAVY: 0
[0610/203227.734782:INFO:crash_reporting.cc(247)] Crash reporting enabled for process: browser
[0610/203227.755706:WARNING:crash_reporting.cc(286)] Failed to set crash key: UserID with value: 0
[0610/203227.755749:WARNING:crash_reporting.cc(286)] Failed to set crash key: BuildID with value: 1623191035
[0610/203227.755753:WARNING:crash_reporting.cc(286)] Failed to set crash key: SteamUniverse with value: Public
[0610/203227.755755:WARNING:crash_reporting.cc(286)] Failed to set crash key: Vendor with value: Valve
[0610/203227.836574:WARNING:crash_reporting.cc(286)] Failed to set crash key: UserID with value: 0
[0610/203227.836607:WARNING:crash_reporting.cc(286)] Failed to set crash key: BuildID with value: 1623191035
[0610/203227.836610:WARNING:crash_reporting.cc(286)] Failed to set crash key: SteamUniverse with value: Public
[0610/203227.836612:WARNING:crash_reporting.cc(286)] Failed to set crash key: Vendor with value: Valve
[0610/203227.836942:INFO:crash_reporting.cc(247)] Crash reporting enabled for process: gpu-process
CApplicationManagerPopulateThread took 41 milliseconds to initialize (will have waited on CAppInfoCacheReadFromDiskThread)
Installing breakpad exception handler for appid(steam)/version(1623193086)
CAppInfoCacheReadFromDiskThread took 87 milliseconds to initialize
Proceed to auto login
Opted-in Controller Mask for AppId 0: 0
[0610/203228.085328:WARNING:crash_reporting.cc(286)] Failed to set crash key: UserID with value: 0
[0610/203228.085362:WARNING:crash_reporting.cc(286)] Failed to set crash key: BuildID with value: 1623191035
[0610/203228.085366:WARNING:crash_reporting.cc(286)] Failed to set crash key: SteamUniverse with value: Public
[0610/203228.085370:WARNING:crash_reporting.cc(286)] Failed to set crash key: Vendor with value: Valve
[0610/203228.086049:INFO:crash_reporting.cc(247)] Crash reporting enabled for process: utility

(steam:16171): Gtk-WARNING **: 20:32:28.357: gtk_disable_setlocale() must be called before gtk_init()
roaming config store loaded successfully - 3867 bytes.
migrating temporary roaming config store
BRefreshApplicationsInLibrary 1: 4ms
src/clientdll/appdatacache.cpp (2679) : Assertion Failed: !bSharedKVSymbols
src/clientdll/appdatacache.cpp (2679) : Assertion Failed: !bSharedKVSymbols
crash_20210610203230_19.dmp[16592]: Uploading dump (out-of-process)
/tmp/dumps/crash_20210610203230_19.dmp
src/clientdll/appdatacache.cpp (2679) : Assertion Failed: !bSharedKVSymbols
src/clientdll/appdatacache.cpp (2679) : Assertion Failed: !bSharedKVSymbols
src/clientdll/appdatacache.cpp (2679) : Assertion Failed: !bSharedKVSymbols
src/clientdll/appdatacache.cpp (2679) : Assertion Failed: !bSharedKVSymbols
src/clientdll/appdatacache.cpp (2679) : Assertion Failed: !bSharedKVSymbols
src/clientdll/appdatacache.cpp (2679) : Assertion Failed: !bSharedKVSymbols
src/clientdll/appdatacache.cpp (2679) : Assertion Failed: !bSharedKVSymbols
src/clientdll/appdatacache.cpp (2679) : Assertion Failed: !bSharedKVSymbols
src/clientdll/appdatacache.cpp (2679) : Assertion Failed: !bSharedKVSymbols
src/clientdll/appdatacache.cpp (2679) : Assertion Failed: !bSharedKVSymbols

snip last line repeated many many times and then.

src/clientdll/appdatacache.cpp (2679) : Assertion Failed: !bSharedKVSymbols
crash_20210610203230_19.dmp[16592]: Finished uploading minidump (out-of-process): success = yes
crash_20210610203230_19.dmp[16592]: response: CrashID=bp-e6146bf6-086e-4b5f-bff9-86f6f2210610
crash_20210610203230_19.dmp[16592]: file ''/tmp/dumps/crash_20210610203230_19.dmp'', upload yes: ''CrashID=bp-e6146bf6-086e-4b5f-bff9-86f6f2210610''

Stuck on "connecting steam count:" Before the last steam update it worked fine.

stevenj commented 3 years ago

Similar story with steam-runtime:

steam-runtime 
Running Steam on manjarolinux 21.0.6 64-bit
STEAM_RUNTIME is enabled automatically
Pins up-to-date!
Steam client's requirements are satisfied
WARNING: Using default/fallback debugger launch
/home/steven/.local/share/Steam/ubuntu12_32/steam
[2021-06-10 20:37:25] Startup - updater built Jun  8 2021 22:23:36
Installing breakpad exception handler for appid(steam)/version(1623193086)
[2021-06-10 20:37:26] Loading cached metrics from disk (/home/steven/.local/share/Steam/package/steam_client_metrics.bin)
[2021-06-10 20:37:26] Using the following download hosts for Public, Realm steamglobal
[2021-06-10 20:37:26] 1. https://cdn.akamai.steamstatic.com, /client/, Realm 'steamglobal', weight was 100, source = 'update_hosts_cached.vdf'
[2021-06-10 20:37:26] 2. https://cdn.cloudflare.steamstatic.com, /client/, Realm 'steamglobal', weight was 100, source = 'update_hosts_cached.vdf'
[2021-06-10 20:37:26] 3. http://media.steampowered.com, /client/, Realm 'steamglobal', weight was 1, source = 'baked in'
Installing breakpad exception handler for appid(steam)/version(1623193086)
[2021-06-10 20:37:26] Verifying installation...
[2021-06-10 20:37:26] Verification complete
Loaded SDL version 2.0.15-6501165

(steam:21929): Gtk-WARNING **: 20:37:26.227: Unable to locate theme engine in module_path: "adwaita",
/usr/share/themes/Matcha-sea/gtk-2.0/main.rc:1113: error: unexpected identifier 'direction', expected character '}'
/usr/share/themes/Matcha-sea/gtk-2.0/apps.rc:91: error: unexpected identifier 'direction', expected character '}'
Steam: An X Error occurred
X Error of failed request:  BadAtom (invalid Atom parameter)
Major opcode of failed request:  20 (X_GetProperty)
Atom id in failed request:  0x0
Serial number of failed request:  12
xerror_handler: X failed, continuing
Steam: An X Error occurred
X Error of failed request:  BadAtom (invalid Atom parameter)
Major opcode of failed request:  20 (X_GetProperty)
Atom id in failed request:  0x0
Serial number of failed request:  13
xerror_handler: X failed, continuing
Steam: An X Error occurred
X Error of failed request:  BadAtom (invalid Atom parameter)
Major opcode of failed request:  20 (X_GetProperty)
Atom id in failed request:  0x0
Serial number of failed request:  14
xerror_handler: X failed, continuing
Installing breakpad exception handler for appid(steam)/version(1623193086)
STEAM_RUNTIME_HEAVY: ./steam-runtime-heavy
[0610/203726.442992:INFO:crash_reporting.cc(247)] Crash reporting enabled for process: browser
[0610/203726.456427:WARNING:crash_reporting.cc(286)] Failed to set crash key: UserID with value: 0
[0610/203726.456458:WARNING:crash_reporting.cc(286)] Failed to set crash key: BuildID with value: 1623191035
[0610/203726.456461:WARNING:crash_reporting.cc(286)] Failed to set crash key: SteamUniverse with value: Public
[0610/203726.456464:WARNING:crash_reporting.cc(286)] Failed to set crash key: Vendor with value: Valve
[0610/203726.528224:WARNING:crash_reporting.cc(286)] Failed to set crash key: UserID with value: 0
[0610/203726.528259:WARNING:crash_reporting.cc(286)] Failed to set crash key: BuildID with value: 1623191035
[0610/203726.528262:WARNING:crash_reporting.cc(286)] Failed to set crash key: SteamUniverse with value: Public
[0610/203726.528265:WARNING:crash_reporting.cc(286)] Failed to set crash key: Vendor with value: Valve
[0610/203726.528617:INFO:crash_reporting.cc(247)] Crash reporting enabled for process: gpu-process
Installing breakpad exception handler for appid(steam)/version(1623193086)
Installing breakpad exception handler for appid(steam)/version(1623193086)
Installing breakpad exception handler for appid(steam)/version(1623193086)
Installing breakpad exception handler for appid(steam)/version(1623193086)
Installing breakpad exception handler for appid(steam)/version(1623193086)
Installing breakpad exception handler for appid(steam)/version(1623193086)
Installing breakpad exception handler for appid(steam)/version(1623193086)
Installing breakpad exception handler for appid(steam)/version(1623193086)
Installing breakpad exception handler for appid(steam)/version(1623193086)
Installing breakpad exception handler for appid(steam)/version(1623193086)
CApplicationManagerPopulateThread took 43 milliseconds to initialize (will have waited on CAppInfoCacheReadFromDiskThread)
Installing breakpad exception handler for appid(steam)/version(1623193086)
Installing breakpad exception handler for appid(steam)/version(1623193086)
Installing breakpad exception handler for appid(steam)/version(1623193086)
Proceed to auto login
CAppInfoCacheReadFromDiskThread took 90 milliseconds to initialize
[0610/203726.652886:WARNING:crash_reporting.cc(286)] Failed to set crash key: UserID with value: 0
[0610/203726.652917:WARNING:crash_reporting.cc(286)] Failed to set crash key: BuildID with value: 1623191035
[0610/203726.652921:WARNING:crash_reporting.cc(286)] Failed to set crash key: SteamUniverse with value: Public
[0610/203726.652925:WARNING:crash_reporting.cc(286)] Failed to set crash key: Vendor with value: Valve
[0610/203726.653255:INFO:crash_reporting.cc(247)] Crash reporting enabled for process: utility
Installing breakpad exception handler for appid(steam)/version(1623193086)
Installing breakpad exception handler for appid(steam)/version(1623193086)
src/public/tier1/utlmemory.h (176) : Assertion Failed: 0
src/public/tier1/utlmemory.h (176) : Assertion Failed: 0
Installing breakpad exception handler for appid(steam)/version(1623193086)
Installing breakpad exception handler for appid(steam)/version(1623193086)
crash_20210610203726_20.dmp[22007]: Uploading dump (out-of-process)
/tmp/dumps/crash_20210610203726_20.dmp
assert_20210610203725_1.dmp[22011]: Uploading dump (out-of-process)
/tmp/dumps/assert_20210610203725_1.dmp
/home/steven/.local/share/Steam/steam.sh: line 772: 21929 Segmentation fault      (core dumped) $STEAM_DEBUGGER $DEBUGGER_ARGS "$STEAMROOT/$STEAMEXEPATH" "$@"
steven@sjbox ~ $ assert_20210610203725_1.dmp[22011]: Finished uploading minidump (out-of-process): success = yes
assert_20210610203725_1.dmp[22011]: response: CrashID=bp-f8ced5e7-82b3-4daf-bdf6-669b62210610
assert_20210610203725_1.dmp[22011]: file ''/tmp/dumps/assert_20210610203725_1.dmp'', upload yes: ''CrashID=bp-f8ced5e7-82b3-4daf-bdf6-669b62210610''
crash_20210610203726_20.dmp[22007]: Finished uploading minidump (out-of-process): success = yes
crash_20210610203726_20.dmp[22007]: response: CrashID=bp-700a2f7c-4208-4f2b-a2b1-082242210610
crash_20210610203726_20.dmp[22007]: file ''/tmp/dumps/crash_20210610203726_20.dmp'', upload yes: ''CrashID=bp-700a2f7c-4208-4f2b-a2b1-082242210610''
kisak-valve commented 3 years ago

Hello @stevenj, you are not seeing the issue reported here.

For the first log, running Steam with the Steam runtime disabled is unsupported and needs to be evaluated and resolved by yourself or the package manager(s) that helped disable the runtime. (https://bugs.archlinux.org/task/71092)

For the second log,

Proceed to auto login
[...]
src/public/tier1/utlmemory.h (176) : Assertion Failed: 0
src/public/tier1/utlmemory.h (176) : Assertion Failed: 0

is a strong hint that you've encountered #7813.

BNieuwenhuizen commented 3 years ago

so I was considering it would be CEF related since I now get a proper black content-pane after reinstalling steam. I confirmed that during the blackness I still have steamwebhelper processes running (1 gpu-process 1 utility process and 2 without a type specified on their cmdline).

The gpu-process has a weird second almost logfile argument: "og-file=/home/bas/.local/share/Steam/logs/cef_log.txt"

cef_log:

[0611/022510.109523:INFO:crash_reporting.cc(247)] Crash reporting enabled for process: browser [0611/022510.226598:INFO:crash_reporting.cc(247)] Crash reporting enabled for process: gpu-process [0611/022510.312095:ERROR:sandbox_linux.cc(372)] InitializeSandbox() called with multiple threads in process gpu-process. [0611/022510.366520:INFO:crash_reporting.cc(247)] Crash reporting enabled for process: utility [0611/022522.034283:INFO:crash_reporting.cc(270)] Crash reporting enabled for process: renderer [0611/022522.153749:INFO:crash_reporting.cc(270)] Crash reporting enabled for process: renderer [0611/022522.223577:INFO:crash_reporting.cc(270)] Crash reporting enabled for process: renderer [0611/022522.515265:INFO:crash_reporting.cc(270)] Crash reporting enabled for process: renderer [0611/022522.519883:INFO:crash_reporting.cc(270)] Crash reporting enabled for process: renderer

Note that the gpu-process complains about the sandbox & threading, but as I read the error message this is not a problem: https://source.chromium.org/chromium/chromium/src/+/main:sandbox/policy/linux/sandbox_linux.cc;drc=0b7f48c4c5b7dff843b70f17c41dd595d3d74321;l=347

I can confirm though that if I make the GPU process fail to start for real (due to forcing llvmpipe and missing 64-bit llvmpipe drivers) then the menus at the top of the window actually start working, so it definitely seems like a steam<->CEF interaction.

BNieuwenhuizen commented 3 years ago

Okay found the issue: I had a gpu-trace command on my path that was entirely not what steam was expecting and it seems Steam would be unresponsive until that command had finished.