ValveSoftware / csgo-osx-linux

Counter-Strike: Global Offensive
http://counter-strike.net
778 stars 69 forks source link

sudden extreme system unresponsiveness (game runs at < 1fps) after some play time #185

Closed NeKJ closed 2 years ago

NeKJ commented 9 years ago

After some time (usually more than 10 minutes) of playing (match, deathmatch etc) the game suddenly and without warning stutters very badly and runs thereafter extremely slow (below 1 fps) and the whole operating system becomes almost unresponsive (extremely slow). The system becomes so slow that to just alt-tab to the desktop takes 30 seconds or more. When this happens I have to forcibly kill the csgo_linux to restore the responsiveness of the system.

During this problem, I see that there are many kworker processes running, which makes me understand that something is looping heavily with the kernel, or it is maybe a driver bug. I can't really debug it or send any more information as those are not available because the game does not really crash.

Here is my system info:

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

Network Information:
    Network Speed:  

Operating System Version:
    Linux 3.10 (64 bit)
    Kernel Name:  Linux
    Kernel Version:  3.17.1-1-ARCH
    X Server Vendor:  The X.Org Foundation
    X Server Release:  11601000
    X Window Manager:  KWin
    Steam Runtime Version:  steam-runtime-release_2014-08-20

Video Card:
    Driver:  NVIDIA Corporation GeForce GTX 760/PCIe/SSE2

    Driver Version:  4.4.0 NVIDIA 343.22
    OpenGL Version: 4.4
    Desktop Color Depth: 24 bits per pixel
    Monitor Refresh Rate: 59 Hz
    VendorID:  0x10de
    DeviceID:  0x1187
    Number of Monitors:  2
    Number of Logical Video Cards:  1
    Primary Display Resolution:  2560 x 1600
    Desktop Resolution: 4240 x 1600
    Primary Display Size: 25.43" x 15.98"  (30.00" diag)
                                            64.6cm x 40.6cm  (76.2cm diag)
    Primary Bus: PCI Express 16x
    Primary VRAM: 2048 MB
    Supported MSAA Modes:  2x 4x 8x 16x 

Sound card:
    Audio device: Realtek ALC1200

Memory:
    RAM:  7978 Mb

Miscellaneous:
    UI Language:  English
    LANG:  en_US.UTF-8
    Microphone:  Not set
    Total Hard Disk Space Available:  75294 Mb
    Largest Free Hard Disk Block:  21016 Mb

Installed software:

Recent Failure Reports:
    Sat Oct 25 09:26:04 2014 GMT: file ''/tmp/dumps/crash_20141025115159_1.dmp'', upload yes: ''CrashID=bp-0a4c4059-c4be-4186-be72-03de02141025''
    Sat Oct 25 10:00:28 2014 GMT: file ''/tmp/dumps/crash_20141025122559_1.dmp'', upload yes: ''CrashID=bp-bdd4bb1d-64cf-47eb-a24f-1e4162141025''
    Sat Oct 25 17:26:16 2014 GMT: file ''/tmp/dumps/crash_20141025192947_1.dmp'', upload yes: ''CrashID=bp-3136e17b-689e-46c3-a8d2-bee462141025''
    Sat Oct 25 18:09:03 2014 GMT: file ''/tmp/dumps/crash_20141025202643_1.dmp'', upload yes: ''CrashID=bp-9b4a4749-31f7-4511-b0b9-5d7452141025''
    Sat Oct 25 18:42:48 2014 GMT: file ''/tmp/dumps/crash_20141025210843_1.dmp'', upload yes: ''CrashID=bp-7fa4569c-6523-4ba5-8f51-7038f2141025''
    Sat Oct 25 21:05:16 2014 GMT: file ''/tmp/dumps/crash_20141025214246_1.dmp'', upload yes: ''CrashID=bp-73c3646d-d061-4205-9e9d-cc7b32141025''
    Sat Oct 25 22:02:01 2014 GMT: file ''/tmp/dumps/crash_20141026000519_1.dmp'', upload yes: ''CrashID=bp-a0648504-0a72-4c50-9498-7e2322141025''
    Sun Oct 26 11:21:07 2014 GMT: file ''/tmp/dumps/crash_20141026124613_1.dmp'', upload yes: ''CrashID=bp-e97a1a6d-edba-431d-8ecf-260812141026''
    Sun Oct 26 12:15:26 2014 GMT: file ''/tmp/dumps/crash_20141026132343_1.dmp'', upload yes: ''CrashID=bp-e8ca4d9d-7eb9-4868-8dbd-a67c72141026''
    Sun Oct 26 15:15:46 2014 GMT: file ''/tmp/dumps/crash_20141026162154_1.dmp'', upload yes: ''CrashID=bp-49dced33-0efd-4a94-a316-04c892141026''
    Sun Oct 26 16:03:59 2014 GMT: file ''/tmp/dumps/crash_20141026171611_1.dmp'', upload yes: ''CrashID=bp-3843086a-909f-4300-9562-fc7e22141026''
    Sun Oct 26 17:32:25 2014 GMT: file ''/tmp/dumps/crash_20141026180357_1.dmp'', upload yes: ''CrashID=bp-d2dbb13b-964a-471a-af88-13af52141026''
    Sun Oct 26 19:27:41 2014 GMT: file ''/tmp/dumps/crash_20141026200646_1.dmp'', upload yes: ''CrashID=bp-1fbd160c-d1ea-4bc1-bd20-6abf12141026''
    Sun Oct 26 21:21:14 2014 GMT: file ''/tmp/dumps/crash_20141026222748_1.dmp'', upload yes: ''CrashID=bp-a56b1072-2895-42f2-a014-818562141026''
    Mon Oct 27 19:32:44 2014 GMT: file ''/tmp/dumps/crash_20141027204253_1.dmp'', upload yes: ''CrashID=bp-99837d54-23f2-4e49-bdc0-4c0992141027''
    Mon Oct 27 20:06:14 2014 GMT: file ''/tmp/dumps/crash_20141027213307_1.dmp'', upload yes: ''CrashID=bp-969e690f-cc7e-4db4-82d0-c2a062141027''
    Tue Oct 28 00:54:30 2014 GMT: file ''/tmp/dumps/crash_20141028005440_1.dmp'', upload yes: ''CrashID=bp-c65bf53e-4dc5-4a5d-956c-e4ceb2141027''
    Tue Oct 28 14:25:49 2014 GMT: file ''/tmp/dumps/crash_20141028154816_1.dmp'', upload yes: ''CrashID=bp-b86098db-8be3-4000-a05e-fe72c2141028''
    Tue Oct 28 14:51:57 2014 GMT: file ''/tmp/dumps/crash_20141028162551_1.dmp'', upload yes: ''CrashID=bp-9412cf41-c6b4-47b3-91db-f290b2141028''
    Wed Oct 29 20:33:46 2014 GMT: file ''/tmp/dumps/crash_20141029212855_1.dmp'', upload yes: ''CrashID=bp-94b56464-11b3-4db3-bac5-cfee52141029''
    Wed Oct 29 20:44:26 2014 GMT: file ''/tmp/dumps/crash_20141029223411_1.dmp'', upload yes: ''CrashID=bp-e742526a-04f9-4e01-96d3-729242141029''
    Thu Oct 30 13:54:21 2014 GMT: file ''/tmp/dumps/crash_20141030151304_1.dmp'', upload yes: ''CrashID=bp-9b5c3df5-fb8f-405b-b970-e2cef2141030''
    Thu Oct 30 14:31:35 2014 GMT: file ''/tmp/dumps/crash_20141030155415_1.dmp'', upload yes: ''CrashID=bp-12cf665c-0a46-45eb-8ccc-979f32141030''
    Thu Oct 30 15:33:05 2014 GMT: file ''/tmp/dumps/crash_20141030163208_1.dmp'', upload yes: ''CrashID=bp-126bab73-ff0f-493e-826e-5c8ab2141030''
    Fri Oct 31 21:27:09 2014 GMT: file ''/tmp/dumps/crash_20141031220807_1.dmp'', upload yes: ''CrashID=bp-af74edb3-28cc-4ab7-acde-a77962141031''
    Sat Nov  1 04:20:51 2014 GMT: file ''/tmp/dumps/crash_20141101055720_1.dmp'', upload no: ''Couldn't connect to server''
    Sat Nov  1 15:17:41 2014 GMT: file ''/tmp/dumps/crash_20141101163119_1.dmp'', upload yes: ''CrashID=bp-490c2a81-1633-4724-a957-4e0b72141101''
NeKJ commented 9 years ago

This happens everytime I play deathmatch in a busy server with many online players for more than one match.

I noticed that when this happens, and I have open the Nvidia X Server Settings, the GPU Utilization is at 99%-100% constantly, also the PCIe Bandwidth Utilization is 100%. From what I gather it must be hitting a bug where the the game constantly loops with the graphics card doing something that just never ends causing this problem.

Can you please look into it as it is a showstopper bug? Thanks.

NeKJ commented 9 years ago

More info:

This happens often randomly at the moment when I respawn, especially in the first round of a Deathmatch.

I found a workaround: when this occurs, if I switch from fullscreen to windowed mode it stops and the game runs fine. So I made some binds to do just that.

But please fix it is frustrating...

devhen commented 9 years ago

This happens to me too, usually after playing for about an hour. My FPS drops to about 15 and everything becomes extremely choppy and I have to change the resolution and then change it back to get it running again (mat_setvideomode 1600 900 0 and then mat_setvideomode 1920 1080 0 in console). This usually happens once or twice, but sometimes more, over the course of an hour or two, and then eventually the game crashes completely to a black screen.

I can concur with Nek80 that when the slowdown happens I see tons of kernel CPU usage in htop (red bars).

The eventual crash to a black screen may be a separate issue, possibly this: #142

Gigabyte Z87X-UD4H Intel i7-4770k GTX 770 32GB RAM Fedora 21 Kernel 3.17.2-300 Steam Beta Nvidia 64-bit Linux driver 340.58

If there are specific things I can do to provide debugging info please let me know.

Thanks, Devin

CodeMonkey80s commented 9 years ago

Same here.

But after "go to desktop and back to game" FPS are back to normal...

PARTYMANX commented 9 years ago

This has been a bug with Source and seemingly Nvidia drivers for a while (about 3 years now). See #91

devhen commented 9 years ago

See #91

Since disabling multi-core rendering I haven't had any crashes. I've only played a few hours but normally it would have crashed by now. So far it looks like this fixes it and what's better it doesn't reduce FPS, at least not for me.

ghost commented 9 years ago

For me, disabling multicore rendering hasn't fixed the problem. My slowdowns (also <1fps after some playtime) seem to occur quite randomly. After it occurs, I have to restart the game to fix it. Sadly, it occurs quite often (after <10 minutes normally) and makes the game unplayable for me. I am also on nvidia-nonfree drivers and debian testing which is up to date.

devhen commented 9 years ago

@LollenJumplan could it be the microphone bug that you're experiencing? See issue #142

Try changing your sound device in Steam Settings > Voice to the one that says "via ALSA".

ghost commented 9 years ago

@devhen Thanks for your input, but my bug also occurs if no mic-button is pressed. Still, i'll change the settings as you said and report back if it changed something.

tpruzina commented 9 years ago

Try looking into game console and copy&paste red highlighted errors (if any). Otherwise, try to reproduce the problem while running with vogl profiler capture and upload it here (if this is non-GL related, strace can help too I guess).

ghost commented 9 years ago

I had a look into the game console. There are some red marked lines on startup, but there is no consistent error with my frame drops. I tried to copy them out, but the game doesn't seem to let me. I tried to start from terminal then, but when I tried starting with ./csgo.sh it just threw Failed to load the launcher (libuuid.so.1: cannot open shared object file: No such file or directory) When I tried starting with ./csgo_linux, it threw ./csgo_linux: error while loading shared libraries: libtcmalloc_minimal.so.4: cannot open shared object file: No such file or directory Maybe I'll try a "vogl profiler capture" in a few days (assuming it is github.com/ValveSoftware/vogl)

devhen commented 9 years ago

Have you guys tried changing the audio output mode in csgo settings? I ran into a problem similar to this the other day, FPS tanked and console was filled with errors about running out of audio channels to use. Turns out it was because I was using a new csgo profile that was set to 5.1 audio (the default) which the sound card I'm using doesn't actually support. Changing it to 'headphones' fixed it.

ghost commented 9 years ago

I just tried it with 2.1 after the game had set it to 5.1 automatically. It has to be said though, that the game never showed any errors in the console when the fps-drop came before changing. After I changed to 2.1 the fps-drops persisted and the console didn't show anything useful. Maybe we're experiencing different bugs with the same "symptom"?

Tele42 commented 8 years ago

Is everybody who experienced this issue using nvidia's proprietary driver on Linux? When this occurs, can somebody attempt to restart their window manager without closing the game, then report the behavior?

For cinnamon, this can be done by running cinnamon --replace. For KDE4 this can be done with kwin --replace.

We will not be tracking any crashes in this issue report.

Vash63 commented 8 years ago

I just played for a bit over an hour trying to reproduce this. I've had the problem for a very long time in the past but couldn't get it to happen tonight, I'll try again though.

I did notice that the Gnome 3.20.3 release notes mention an Nvidia fix, but I also had this happen in KDE in the past so it's not just Gnome related... I'll try again over the weekend.

IAmSaeve commented 8 years ago

@Tele42 Just came home and tried to run kwin --replace with the game open in background, but with no luck. However, looking through the thread I tried disabling Multi Core Rendering and it work flawlessly since then. Also, yes I am running the proprietary Nvidia drivers.

EDIT I just played a match on Faceit and the experienced the same issue, like when I had Multi Core Rendering enabled. Also this time it wasn't enough to close and reopen the game. I had to completely logout of the session and login again to get my frames back to normal.

Vash63 commented 8 years ago

I'd like to also confirm that restarting gnome-shell did not fix the issue for me, it does not appear to be wm related.

Tomin1 commented 7 years ago

I'm having this kind of problem as well. I've got Nvidia GeForce GTX 460 1 GB and Nvidia 367.44 drivers. It seems that the performance is going down in steps like 20-30 fps at a time, until it's 10 fps and I can't play any more. This is very annoying.

Tele42 commented 7 years ago

Hello @Tomin1, your symptoms hint more towards maxed out VRAM usage like what was investigated at #1206.

Tomin1 commented 7 years ago

@Tele42 Yes, I think #1206 is the bug I have. The problem is exactly what is described there.

romanstingler commented 2 years ago

@kisak-valve closed

kisak-valve commented 2 years ago

Closing as outdated.