ValveSoftware / csgo-osx-linux

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

Game freeze while using mic #1328

Open clanstyles opened 7 years ago

clanstyles commented 7 years ago

During game play if you use your mic, you have a random chance that it freezes the CSGO process. Looking at the process tree, the csgo_linux64 process seems to fork itself and create another copy which causes the freeze. If you end the newly created process, the game will unfreeze and you can still play normal.

xxx   19267  0.0  0.0  89096 30828 ?        S    14:24   0:00      |       |   |       |   \_ /bin/sh -c '/home/xxx/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/csgo.sh' -steam +connect_lobby xxx
xxx   19268  0.0  0.1  97812 33780 ?        S    14:24   0:00      |       |   |       |       \_ /bin/bash /home/xxx/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/csgo.sh -steam +connect_lobby xxx
xxx   19271  289  7.3 3650848 2435028 ?     Sl   14:24 121:28      |       |   |       |           \_ /home/xxx/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/csgo_linux64 -steam +connect_lobby xxx
xxx   24647  0.6  6.8 3650848 2261784 ?     S    15:06   0:00      |       |   |       |               \_ /home/xxx/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/csgo_linux64 -steam +connect_lobby xxx
xxx   24649  0.0  0.0  12728  2072 pts/19   S+   15:06   0:00      \_ grep csgo

That last process is always the one that's created (not the grep, that's how I'm identifying and killing it). I've had to create a small script that I can quickly hotkey to get back into the game fast enough to not DC. Not fun.

I'm running Debian 8.

ifohancroft commented 7 years ago

I have another issue related to push-to-talk and I found interesting stuff regarding it, so in your case I am interested in the following:

What's m_rawinput set to? If it's set to 1 and you set it 0 is the bug still present and does it change in any way (the bug)? Same question if it's set to 0 and you change it to 1.

I've found issue #500 and there are 3 interesting things there:

  1. Having pavucontrol running in background fixes the issue.
  2. Typing manually +voicerecord in the console doesn't introduce the issue
  3. There is a fix suggested there:

alias voiceToggleOn "+voicerecord; alias voiceToggle voiceToggleOff" alias voiceToggleOff "-voicerecord; alias voiceToggle voiceToggleOn" alias voiceToggle voiceToggleOn bind "" "voiceToggle"

Then pressing the push-to-talk button to start your microphone and then pressing it again to stop it (this doesn't fix it for me).

Maybe try those stuff and comment here the results?

4nk1 commented 7 years ago

Recently there was a problem with sound stuttering lagging due to an update where the revolver and negev was bring back to competitive, fixes with HRTF and so on. The temporal fix was to set snd_mixahead from value 0.05 to 0.1. Later they fixed this with an update of 15 and 10mb.

The problem with sound stuttering and lagging was fixed for the mayority of users on gnu/linux and mac.

Now i have noticed that the function Push To Talk in game and crashing its FIXED for me also.

Using the temporal fix to the PTT problem>

alias voiceToggleOn "+voicerecord; alias voiceToggle voiceToggleOff"

alias voiceToggleOff "-voicerecord; alias voiceToggle voiceToggleOn"

alias voiceToggle voiceToggleOn

bind "MOUSE5" "voiceToggle"

also crashed my CSGO, now it also works flawlessly.

Edit. Again , PTT crashing the game.

ICHx commented 7 years ago

the same problem exist in linux tf2 trying out the workaround

4nk1 commented 7 years ago

ICHx, Recently i fixed the problem completly uninstalling pulseaudio. Iam using Debian. No more crash,no more stutter, all works well.

ICHx commented 7 years ago

that is not feasible for me tho

eh8 commented 4 years ago

Issue still present when using microphone on Ubuntu 19.10

pyramidenkoenig commented 4 years ago

This problem still seems to exsist, for me at least... ElementaryOS 5.1.2 Ubuntu 18.04.3 LTS, 4.15.0-88 kernel. Using Pulseaudio (needed for my sound card to work flawlessly)

mvrmoreira commented 4 years ago

Even trying with alias the problems still persit on MacBook Pro with Catalina and AirPods Pro

alphonse92 commented 3 years ago

Same here, but it was working righ!

DisDis commented 2 years ago

'pavucontrol' way works. Ubuntu 22.04 64bit.

Blayung commented 2 years ago

Issue is also coming up in cs 1.6 and cs:cz.

hywoid commented 1 year ago

I'm having the same problem over here in Linux Mint 21.2.