steam-for-linux icon indicating copy to clipboard operation
steam-for-linux copied to clipboard

Steam unresponsive, steamwebhelper using 100% CPU

Open klarkc opened this issue 12 years ago • 29 comments

Steps to reproduce:

1 - Open Steam Client (BP or Normal mode) in a user session 2 - Open another Steam Client in any other user session

What Happens:

The second client turns extremely slow, the steamwebhelper process was using 100% CPU all the time.

Observations:

1 - Even if you close the first client, the problem remains 2 - All the time the first client run flawless, even if you close everything and open user session again.

System Information:

Processor Information:
    Vendor:  GenuineIntel
    CPU Family:  0x6
    CPU Model:  0x3a
    CPU Stepping:  0x9
    CPU Type:  0x0
    Speed:  3801 Mhz
    4 logical processors
    4 physical processors
    HyperThreading:  Unsupported
    FCMOV:  Supported
    SSE2:  Supported
    SSE3:  Supported
    SSSE3:  Supported
    SSE4a:  Unsupported
    SSE41:  Supported
    SSE42:  Supported

Network Information:
    Network Speed:  

Operating System Version:
    Ubuntu 14.04.1 LTS (64 bit)
    Kernel Name:  Linux
    Kernel Version:  3.13.0-36-generic
    X Server Vendor:  The X.Org Foundation
    X Server Release:  11501000
    X Window Manager:  Compiz
    Steam Runtime Version:  steam-runtime-release_2014-08-20

Video Card:
    Driver:  NVIDIA Corporation GeForce GTX 660 Ti/PCIe/SSE2

    Driver Version:  4.4.0 NVIDIA 331.38
    OpenGL Version: 4.4
    Desktop Color Depth: 24 bits per pixel
    Monitor Refresh Rate: 60 Hz
    VendorID:  0x10de
    DeviceID:  0x1183
    Number of Monitors:  2
    Number of Logical Video Cards:  1
    Primary Display Resolution:  1600 x 900
    Desktop Resolution: 1600 x 900
    Primary Display Size: 17,44" x 9,80"  (20,00" diag)
                                            44,3cm x 24,9cm  (50,8cm diag)
    Primary Bus: PCI Express 16x
    Primary VRAM: 2048 MB
    Supported MSAA Modes:  2x 4x 8x 16x 

Sound card:
    Audio device: Realtek ALC887-VD

Memory:
    RAM:  7932 Mb

Miscellaneous:
    UI Language:  English
    LANG:  pt_BR.UTF-8
    Microphone:  Not set
    Total Hard Disk Space Available:  78616 Mb
    Largest Free Hard Disk Block:  56723 Mb

Installed software:

Recent Failure Reports:

Steam Log: https://gist.github.com/klarkc/6a139209f36aa3d2da56

klarkc avatar Sep 26 '14 14:09 klarkc

Same for me. Gentoo/amd64. Update: steamwebhelper uses 100% of one CPU core.

dimgel avatar Sep 30 '14 00:09 dimgel

Actually I don't open two Steam clients in different user sessions, I open only one but using "kdesudo -u me-steam steam" (/etc/sudoers contains appropriate entry so I'm not asked for password). Steamwebhelper starts loading CPU at the moment I click desktop icon, i.e. long before Steam shows me "Connecting Steam account: ..." But this does not happen every time I start Steam, could not determine pattern.

dimgel avatar Sep 30 '14 11:09 dimgel

Same here on debian testing, open a steam session, then close it, log out of gnome, log in as another user, open up steam session (also another steam user aside from the first one), then steamwebhelper consumes 100% CPU (*of a single core):

13468 josh      20   0  305600  38864  34232 R  97.6  0.3  33:55.31 steamwebhelper      

uname -a for kicks:

josh@MSIGS70stealth:~$ uname -a
Linux MSIGS70stealth 3.16-2-amd64 #1 SMP Debian 3.16.3-2 (2014-09-20) x86_64 GNU/Linux

joshuacox avatar Oct 11 '14 08:10 joshuacox

Same problem here. Running Linux Mint 17 with Cinnamon desktop. If I close Steam, log into another account and then open Steam from inside that other account, my CPU use spikes to 50% due to steamwebhelper.

peterp772000 avatar Oct 11 '14 20:10 peterp772000

Weird, I've never met the problem since my last comment. (Actually, I wrote "could not determine pattern" because at the moment of writing I started Steam again and it was OK for the first time in a while.) Maybe some system library upgraded which steamwebhelper relies on, or I rebooted after earlier upgrade, I don't know.

dimgel avatar Oct 11 '14 21:10 dimgel

up to date on Debian testing (jessie) and I can duplicate the issue every time

joshuacox avatar Oct 11 '14 21:10 joshuacox

Same issue here on Xubuntu 14.04. Starting and closing steam in one session, logging out, and then logging into another session and trying to start steam there will make steamwebhelper max out one core of my cpu.

Rebooting instead of just logging in and out fixes this issue.

martinfischer avatar Oct 23 '14 07:10 martinfischer

I had the same issue just now, and can confirm what martinfischer said in previous comment.

Based on previous comments, I guessed it might be something in /tmp, and found how to fix it:

sudo rm /tmp/steam_chrome_shmem

before starting steam for the 2nd user. It's a unix domain socket. Ideally steam would use different filenames for different users.

sswam avatar Nov 13 '14 11:11 sswam

sudo rm /tmp/steam_chrome_shmem

This looks right. I recall I had issues only during transitioning steam from my main account to separate one (kdesudo, call me paranoid). Issue disappeared only after I stopped starting steam under my main account.

dimgel avatar Nov 13 '14 12:11 dimgel

sounds like this file should be a singleton lock perhaps. I can't imagine more than one user utilizing the video card at once.... Perhaps on some sort of strange video game server that had multiple players logging in like terminal clients back in the day.... hmmmm, well ok, that sounds kind of cool. Don't make it a global singleton and give it a unique identifier of some sort to not conflict with other users, perhaps steam_chrome_shmem_$USERNAME

joshuacox avatar Nov 13 '14 19:11 joshuacox

The last steam release changed the filename to include username in it.

alfred-valve avatar Nov 13 '14 19:11 alfred-valve

What version contains this fix? The broken behavior persists on Debian Testing.

Linuturk avatar Nov 19 '14 06:11 Linuturk

Current steam beta (2014-11-18) generates /tmp/steam_chrome_shmem

Tele42 avatar Nov 19 '14 14:11 Tele42

@Linuturk @Tele42 Same here, I'm opt'ed in on beta, with Steam package version: 1416350232

I imagine they have not rolled this fix out to the public yet?

$ ls -lh /tmp|grep -i steam
srwxr-xr-x 1 bob  bob     0 Nov 19 10:32 steam_chrome_shmem

joshuacox avatar Nov 19 '14 17:11 joshuacox

Thanks Josh Cox. Changing the ownership of the steam_chrome_shmem file does solve the problem although it needs to be done every time when logging into a client on another account. I guess it's a temporary fix but it's works for now.

On Thu, Nov 20, 2014 at 1:38 AM, Josh Cox [email protected] wrote:

@Linuturk https://github.com/Linuturk @Tele42 https://github.com/Tele42 Same here, I'm opt'ed in on beta, with Steam package version: 1416350232

I imagine they have not rolled this fix out to the public yet?

$ ls -lh /tmp|grep -i steam srwxr-xr-x 1 bob bob 0 Nov 19 10:32 steam_chrome_shmem

— Reply to this email directly or view it on GitHub https://github.com/ValveSoftware/steam-for-linux/issues/3514#issuecomment-63680332 .

peterp772000 avatar Nov 22 '14 17:11 peterp772000

I use Fedora 19. Had the same. Solved it.

Start steam with the steam.sh script from terminal window. (Example: /home/username/.local/share/Steam/steam.sh)

See if modules and/or libraries are missing (or theme as in my case) on your system. On mine the bold stuff was missing:

(steam:4602): Gtk-WARNING : Unable to locate theme engine in module_path: "adwaita", Gtk-Message: Failed to load module "pk-gtk-module" Gtk-Message: Failed to load module "canberra-gtk-module" /home/username/.local/share/Steam/ubuntu12_32/steamwebhelper: error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory

It's just some packages that have to be installed (Note: the 32 bit ones, so with .i686 behind the package name and not .x86_64 because steam is 32 bit)

On Fedora, installing the following packages solved all the error messages (solving all the above errors from top to bottom): adwaita-gtk2-theme.i686 PackageKit-gtk3-module.i686 libcanberra-gtk2.i686 libcanberra-gtk3.i686 GConf2.i686

I think installing the last one solved it, but i'm not sure if it's a combination with one of the others.

If you use another Linux distribution the packages probably are named a little different. Just search on different keywords per package.

TrIPpY- avatar Dec 07 '14 04:12 TrIPpY-

@TrIPpY- I am not certain you had the same issue, specifically in this instance steam puts a file steam_chrome_shmem in /tmp, when you log out of your current user and log in as another user and then start steam, steam then starts consuming 100% of one of the CPU cores. I think the accepted solution is for that file to be named uniquely e.g. $USERNAME_steam_chrome_shmem which @alfred-valve has indicated should be coming down to us civilians soon. @alfred-valve is this still true?

joshuacox avatar Dec 07 '14 15:12 joshuacox

Yep it's true. Same result by different problem. Well i'm 80% sure it was the webhelper causing my 100% cpu core usage (because of the error message specifically saying libgconf-2 is missed by it and it was the last thing installed before the problem was solved (The people, earlier reporting 50% cpu usage (by the process) probably have a dual core system).

I written my solution here because (very probably) the webhelper caused the high cpu usage and i know how fierce they are on forums and such, to not start a new thread if a similar one exists already.

I also tested logging on as another user (as the rest did, written in the earlier posts) and have the same. Delete the steam_chrome_shmem file in /tmp and no high cpu usage.

NB: addition to my previous post for Fedora users: It might be the problem only occurs with the steam_noruntime package (as i have).

TrIPpY- avatar Dec 09 '14 01:12 TrIPpY-

possibly, but I do have libgconf here, maybe a version mismatch though or something:

> sudo aptitude search libgconf-2
[sudo] password for bob: 
i A libgconf-2-4 

joshuacox avatar Dec 09 '14 01:12 joshuacox

I think that package is the debian equivalent of Fedora's GConf2.i686 package hence the filename libgconf-2.so.4 which it provides. Strong similarity i'd say.

Just to clarify. I only run Steam under one Linux user. After a Steam update sometime ago it got real slow. Due to this topic i found out that was because of the 100% cpu core usage (reminded me to check that).

TrIPpY- avatar Dec 09 '14 02:12 TrIPpY-