csgo-osx-linux icon indicating copy to clipboard operation
csgo-osx-linux copied to clipboard

Game freeze while using mic

Open clanstyles opened this issue 7 years ago • 11 comments

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.

clanstyles avatar Feb 26 '17 20:02 clanstyles

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?

ifohancroft avatar Mar 05 '17 19:03 ifohancroft

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.

4nk1 avatar Apr 13 '17 12:04 4nk1

the same problem exist in linux tf2 trying out the workaround

ICHx avatar Sep 04 '17 15:09 ICHx

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

4nk1 avatar Sep 04 '17 15:09 4nk1

that is not feasible for me tho

ICHx avatar Sep 05 '17 15:09 ICHx

Issue still present when using microphone on Ubuntu 19.10

eh8 avatar Nov 17 '19 00:11 eh8

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)

pyramidenkoenig avatar Mar 18 '20 11:03 pyramidenkoenig

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

mvrmoreira avatar Mar 22 '20 20:03 mvrmoreira

Same here, but it was working righ!

alphonse92 avatar Nov 12 '20 22:11 alphonse92

'pavucontrol' way works. Ubuntu 22.04 64bit.

DisDis avatar Apr 29 '22 18:04 DisDis

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

Blayung avatar Oct 14 '22 20:10 Blayung

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

hywoid avatar Jul 24 '23 02:07 hywoid