-
Notifications
You must be signed in to change notification settings - Fork 173
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
Steam takes very long to start, failed to connect to websocket #10879
Comments
Hello @peacememories, can you check if this is the same issue as discussed on #9383? |
I have the same problem, since the last update it doesn't work well. Your system information Steam client version (build number or date): 1714854927 |
Same issue. I also reported another issue which seems pretty much the same thing (The behaviour is the same - really long dealys till it somehow seems to "refresh" itself). See #10853 I think the issue with the start might be related to that small popup that sometimes shows up when starting steam to inform you about new offers/releases. I checked he issue kisak-valve shows but i don't have a igpu since this is on 5700x3d / Rx7700 XT |
I had a similar issue, started last tuesday for me. I guess when Steam had their last maintenance. When trying to open with the icon, the steam logo would show up in the task tray. But the main window wouldn't show up. I was able to still launch games by clicking the icon in the task tray though. |
I have the same issue with extremely stupidly long startup times (15 ****ing minutes on 16C32T@4.5GHz 64GB DDR4 4x2TB NVMe RAID0, so it's NOT my ****). I've resorted to starting steam in a shell and spamming Ctrl+C sporadically terminating crap in the background it attempts to launch, it can speed up my startup times. Do it enough and you'll notice patterns around that plagueware of Chromium underneath and the entire websocket garbage. Edit: I despise this new UI so much. I miss the old Steam UI, functional and fast (aside from DPI issues and rasterized images). My frustration with this stems from a year of this expecting better but getting the same no-dpi-slider crap. Steam Version: 1715635533 |
I faced the same issue today. Steam's tray icon and the corresponding menu is in the system tray. But the window does not open. A curious workaround is disabling the internet connection before launching Steam. The window opens as usual this way without delay. |
I think that the issue on my side may not be related to internet services. Having my xbox joystick plugged is what is actually making Steam's window to not be shown. Weird... |
I am seeing a similar problem (on Arch). Checking the logs, I see the following in
The following part keeps repeating every couple of seconds:
|
Same but Manjaro, my webhelper is filled with entries alike. Edit: My DNS server protects clients by preventing DNS rebind (removes any local-addresses from DNS records, reports NX for domains). I added it to the allowlist, no change in Steam's behavior. Edit: Steam isn't listening on 443, so I'm wondering how it's trying to capture that loopback. 443 is a privileged port anyway (<=1024), regular processes wouldn't be able to open it anyway. Edit: Adding Edit: This is also what causes games such as HMCC to hitch terribly keeping the FPS to maybe 1 frame per 30 seconds (HMCC calls some Steam APIs constantly in a blocking mode, made evident by patching steam_api to circumvent to test and suddenly vsync and fine). Edit: A little poking around, this looks like IPC behavior. Chromium (the @!*%ty underneath of Steam's UI since they ruined it) uses IPC like this and it's just awful. |
|
This happens to me too, also tested with the flatpak version and steam-runtime. Steam client version (build number or date): 1716584667 |
To help establish how long this issue has existed...it's been this way since the UI revamp. That long. -_- I've figured out that starting Steam in a shell and then waiting until after it initializes Vulkan to constantly spam Ctrl+C helps. Each call to the CEF's IPC like that needs a Ctrl+C. I can select a new game and wait ages for it to "load" the library details or I can alt-tab and Ctrl+C the shell and the library details instantly load. @!Q# Chrome/Chromium and CEF. This 'web browser as software' ^%#* should be outlawed. Edit: The Ctrl+C technique works for nearly everything, even for right-clicking the Steam icon to exit. Right-click and wait forever or right-click, alt-tab to the shell and Ctrl+C, bam instant menu. It even helps Steam shut down faster. |
I tried setting ip_unprivileged_port_start to 1 (just for testing), no go. Steam doesn't open 443 and I disabled httpd beforehand so nothing would be bound or listening on 443, but no go. This loopback way of doing stuff is broken. |
@OdinVex Interestingly enough, Steam works just fine on my laptop with an almost identical Arch installation. I wasn't able to isolate anything yet though. |
Also experiencing this issue on EndevourOS, Steam takes over a minute to launch, CS2 is unplayable with massive frame rate drops every few seconds. I collected logs based on this request, which seems to be relevant to this issue. Logs & System information: Gist It looks like steam generated a dump file at launch, if that is useful I can upload it. |
After spending some minutes staring at |
Nothing funky in my /etc/hosts. Shouldn't matter anyway so long as none are 'steamloopback.host'. Issue still exists. |
I've further narrowed it down to Steam having problems with loopback hostnames containing hyphens. By appending
I've been able to reproduce the issue on previously unaffected machines. Replacing @OdinVex try to run
|
Valid host names are Edit: To hammer this home:
These are stock, minimal entries when using IPv6. It's going to have dashes because it's valid. Edit: This also an older hosts file. Newer ones (depending upon distro) have even more dash-containing entries. Note: https://gist.github.com/ghoneycutt/e531984406b4b86ace687ea8958a6dc3 Edit:
Edit: Interestingly enough, Edit: Removed all entries except host name (has no dashes) and localhost, no change, still crap performance. |
Arch Linux, up-to-date. Adding a +1 to Steam not handling hyphenated hostnames. I've been experiencing the same startup patten described here. My hostfile looked exactly like this (EAC Workaround provided by https://github.com/starcitizen-lug/lug-helper for Star Citizen)
Added a |
A Steam friend of mine that does not experience this bug and is on Arch-based distro like me sent me their hosts file, contains dashes. Dunno why some people would have issues and others wouldn't. I removed all dashes, problem still exists. They have dashes, no issue. (Edit: In short, I don't think it's dash-related. Maybe lookup-related or something, but not particularly about dashes.) |
Gentoo here. Removing dashes from /etc/hosts fixes the issue for me too. I also noticed that the "Waiting for network...", "Logging in..." and "Loading user data..." screens only show up after removing the dashes in /etc/hosts. |
For anyone else having this issue that uses external DNS (eg. no system caching because caching can be problematic or for DNS sinkholing to protect your systems/networks) you've probably disabled the $*%&show that is |
I'm not running systemd-resolved on any of my systems but my laptop (same OS as my main machine) does not exhibit the slow startup/reaction time of steam. I experimented with the NSS config of my main machine, and going from |
Interesting. I disabled systemd-resolved and switched to minimal, working. |
same erros using crossover 24 on macos, tried wineskin, whisky and vanilla wine, everything with same results....
|
I narrowed down the reason for mine a bit more, to avahi and/or mdns/_minimal combined, having nothing to do with systemd-resolved (that simply got avahi re-enabled which was a false lead on systemd-resolved): If I disable avahi-daemon it's fine. If I enable avahi-daemon and set Edit: I always disable DNS caching and never have anything open on 53, I don't allow any hosts to cache DNS responses in my network, just my DNS servers do that (and they also handles mDNS). I wonder if Steam developers are assuming something about mDNS or DNS caching? |
I don't think it's entirely on Steam. The only difference between Additionally, I tried adding an entry to It seems to as though there is some strange interaction happening in the name resolution logic of avahi, in that it should not take seconds to conclude that a (On a side note: I may try moving |
Using plagueware like CEF masquerading 'web apps' as software and requiring a loopback host to begin with is the root of this issue, let alone considering some firewalls/DNS servers have options to prevent DNS rebind attacks/leaks by removing/refusing/rewriting/dropping DNS with private-IP range responses, even for 127.0.0.0/8 responses. |
I want to add that after switching hosts in |
I agree. JS on the desktop is inappropriate and a technically uninformed decision. Though, I do admire Valve for being so... determined... as to make a thoroughly bad idea work as it does and ignore all the bright-red, illuminated flags.
Apparently, assumptions abound. It seems nobody thought enough about checking return values, either.
When working knowledge disappears, workarounds become the 'fix'. It's pathetic and scary how commercial software is produced.
If you have to reconfigure your system and network because of someone else's ignorant oversight, something has gone very wrong with both software development AND troubleshooting. Appendix: OK, so... the host name steamloopback.host resolves to 127.0.0.1... |
@another-username2, Preach brother! I've updated the Arch Wiki's Steam troubleshooting subsection to reflect this issue. https://wiki.archlinux.org/title/Steam/Troubleshooting#Very_long_startup_and_slow_user_interface_response |
Im speechless thats just unprofessional |
No one's paying us to debug Steam's problems. CEF itself is unprofessional. Masquerading a 'web app' as a desktop software is an unprofessional cop-out, especially since it's come at everyone's expense with massive buttons and underutilized space, poor layouts and 'trending/upsell/DLC' thrown in your face with unwanted "news" and a crappy experience. Uses more RAM, more resources, slower access, list goes on. Don't bother mentioning unprofessional because this is as good as it gets for what it is. Edit: Not to mention that undoing 35+ years of a standard for naming machines just to appease a bug? No. This should never have happened, but it did. Fine. The problem is the lack of a fix after SO damn long and THIS (Steam client) is what we're left with. That's unprofessional. |
On fedora 40 affected by this problem, removing the 127.0.0.1 view-localhost in hosts helped. |
Your system information
Please describe your issue in as much detail as possible:
Recently when starting Steam, the tray icon appears immediately, but using any of the menu items does not work, and the Steam client does not appear.
Sometimes the client does appear after waiting for several minutes. I am not sure If this is always the case and I just was not patient enough most of the time.
When launching from the console it outputs this after hanging:
This seems to me like something tries to connect to a websocket and the interface only continues initializing after the connection timeouts.
After appearing the interface does seem to work normally, so I am not sure what kind of websocket connection is failing.
This might be connected to #9658, but the problem started very recently for me and the mentioned issue seems to be a lot older.
Steps for reproducing this issue:
The text was updated successfully, but these errors were encountered: