ValveSoftware / steam-for-linux

Issue tracking for the Steam for Linux beta client
4.18k stars 173 forks source link

Crashes when using steam voice/microphone #1853

Closed Dubanubiel closed 10 years ago

Dubanubiel commented 11 years ago

Ever since the official launch of steam for Linux, TF2 will crash when I hit the microphone button. It will usually work the first couple of times but then it will freeze up, sort of catch itself, be REALLY slow and buggy, and then won't close without having to turn off my computer. I can Alt+tab away and shutdown but I can't even kill TF2 using system monitor.

Processor Information: Vendor: AuthenticAMD Speed: 2800 Mhz 2 logical processors 2 physical processors HyperThreading: Unsupported FCMOV: Supported SSE2: Supported SSE3: Supported SSSE3: Supported SSE4a: Supported SSE41: Unsupported SSE42: Unsupported

Network Information: Network Speed:

Operating System Version: Ubuntu 12.10 (32 bit) Kernel Name: Linux Kernel Version: 3.5.0-23-generic X Server Vendor: The X.Org Foundation X Server Release: 11300000 X Window Manager: Compiz Steam Runtime Version:

Video Card: Driver: NVIDIA Corporation GeForce 9800 GTX+/PCIe/SSE2/3DNOW!

Driver Version:  3.3.0 NVIDIA 304.43
Desktop Color Depth: 24 bits per pixel
Monitor Refresh Rate: 59 Hz
VendorID:  0x10de
DeviceID:  0x613
Number of Monitors:  1
Number of Logical Video Cards:  1
Primary Display Resolution:  1440 x 900
Desktop Resolution: 1440 x 900
Primary Display Size: 16.06" x 10.04"  (18.94" diag)
                                        40.8cm x 25.5cm  (48.1cm diag)
Primary Bus: PCI Express 16x
Primary VRAM: 512 MB
Supported MSAA Modes:  2x 4x 8x 16x 

Sound card: Audio device: Realtek ALC889A

Memory: RAM: 4036 Mb

Miscellaneous: UI Language: English LANG: en_CA.UTF-8 Microphone: Not set Total Hard Disk Space Available: 202004 Mb Largest Free Hard Disk Block: 123696 Mb

Installed software:

Recent Failure Reports: Sun Feb 17 01:29:17 2013 GMT: file ''/tmp/dumps/assert_20130216202905_1.dmp'', upload yes: ''CrashID=bp-913d3f0f-27b9-4711-98fc-4f1712130216''

gdrewb-valve commented 11 years ago

Possibly related to other TF2 voice chat crashes.

MrPopinjay commented 11 years ago

I am also having this problem. The first time I hit the mic button TF2 stutters for a second and then recovers and works normally for ~1 hour. At some point after this steam will crash when I hit the mic button shortly followed by TF2.

This used to happen a lot in early beta but seemed to clear up after a few updates. Shortly before release the problem returned again.

System info: Processor Information: Vendor: GenuineIntel Speed: 3300 Mhz 4 logical processors 2 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 Mint 14 Nadia (64 bit) Kernel Name: Linux Kernel Version: 3.5.0-17-generic X Server Vendor: The X.Org Foundation X Server Release: 11300000 X Window Manager: Mutter (Muffin) Steam Runtime Version:

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

Driver Version:  4.2.0 NVIDIA 304.43
Desktop Color Depth: 24 bits per pixel
Monitor Refresh Rate: 60 Hz
VendorID:  0x10de
DeviceID:  0x1244
Number of Monitors:  2
Number of Logical Video Cards:  1
Primary Display Resolution:  1280 x 1024
Desktop Resolution: 2560 x 1024
Primary Display Size: 1.26" x 1.26"  (1.77" diag)
                                        3.2cm x 3.2cm  (4.5cm diag)
Primary Bus: PCI Express 16x
Primary VRAM: 1023 MB
Supported MSAA Modes:  2x 4x 8x 16x 

Sound card: Audio device: Realtek ALC887-VD

Memory: RAM: 3894 Mb

Miscellaneous: UI Language: English LANG: en_GB.UTF-8 Microphone: Not set Total Hard Disk Space Available: 281610 Mb Largest Free Hard Disk Block: 192917 Mb

Installed software:

Recent Failure Reports: Sun Feb 17 18:10:53 2013 GMT: file ''/tmp/dumps/crash_20130217181047_1.dmp'', upload yes: ''CrashID=bp-f3799d0e-b0fb-4049-83b8-850f12130217'' Sun Feb 17 18:10:58 2013 GMT: file ''/tmp/dumps/assert_20130217181054_1.dmp'', upload yes: ''CrashID=bp-5b03b2a6-80f3-4438-b1d8-2c7032130217'' Sun Feb 17 18:11:02 2013 GMT: file ''/tmp/dumps/assert_20130217181100_1.dmp'', upload yes: ''CrashID=bp-17b2af43-d189-4a8a-a1a8-b42062130217''

brl1214 commented 11 years ago

Similar issue is I will get into game use mic for 1 round and it will begin to bug out Character will lock in place looping sound if I stop using mic and than it will next time just crash to desktop and take steam with it.

Maybe a problem with pulseaudio....

Processor Information: Vendor: AuthenticAMD Speed: 2400 Mhz 2 logical processors 2 physical processors HyperThreading: Unsupported FCMOV: Supported SSE2: Supported SSE3: Supported SSSE3: Supported SSE4a: Unsupported SSE41: Unsupported SSE42: Unsupported

Network Information: Network Speed:

Operating System Version: Ubuntu 12.04.2 LTS (64 bit) Kernel Name: Linux Kernel Version: 3.2.0-37-generic X Server Vendor: The X.Org Foundation X Server Release: 11103000 X Window Manager: Compiz Steam Runtime Version:

Video Card: Driver: NVIDIA Corporation GeForce 9800 GTX/9800 GTX+/PCIe/SSE2

Driver Version:  3.3.0 NVIDIA 310.14
Desktop Color Depth: 24 bits per pixel
Monitor Refresh Rate: 59 Hz
VendorID:  0x10de
DeviceID:  0x612
Number of Monitors:  1
Number of Logical Video Cards:  1
Primary Display Resolution:  1440 x 900
Desktop Resolution: 1440 x 900
Primary Display Size: 16.06" x 10.04"  (18.94" diag)
                                        40.8cm x 25.5cm  (48.1cm diag)
Primary Bus: PCI Express 16x
Primary VRAM: 512 MB
Supported MSAA Modes:  2x 4x 8x 16x 

Sound card: Audio device: VIA VT1708S

Memory: RAM: 3954 Mb

Miscellaneous: UI Language: English LANG: en_CA.UTF-8 Microphone: Not set Total Hard Disk Space Available: 41500 Mb Largest Free Hard Disk Block: 16541 Mb

Installed software:

Recent Failure Reports: Mon Feb 18 06:59:23 2013 GMT: file ''/tmp/dumps/crash_20130217225917_1.dmp'', upload yes: ''CrashID=bp-c97bb2e0-5862-4d25-bafb-f75752130217'' Mon Feb 18 06:59:32 2013 GMT: file ''/tmp/dumps/assert_20130217225925_1.dmp'', upload yes: ''CrashID=bp-08b02719-10ed-467d-8c6c-090b52130217'' Mon Feb 18 06:59:38 2013 GMT: file ''/tmp/dumps/assert_20130217225936_1.dmp'', upload yes: ''CrashID=bp-88f011f4-8a6d-4e7f-9627-7c5e02130217'' Mon Feb 18 07:20:10 2013 GMT: file ''/tmp/dumps/crash_20130217232005_1.dmp'', upload yes: ''CrashID=bp-baff09ad-a9d5-475b-bd37-74c4f2130217'' Mon Feb 18 07:20:14 2013 GMT: file ''/tmp/dumps/assert_20130217232012_1.dmp'', upload yes: ''CrashID=bp-0c46b224-9a6f-4db4-83a2-2734d2130217'' Mon Feb 18 07:20:14 2013 GMT: file ''/tmp/dumps/assert_20130217232012_1.dmp'', upload yes: ''CrashID=bp-9ec124b0-94bb-4c00-ae1d-97d032130217'' Mon Feb 18 07:20:47 2013 GMT: file ''/tmp/dumps/assert_20130217232045_2.dmp'', upload yes: ''CrashID=bp-ac83cbd6-d66b-4019-aef7-a6b132130217'' Mon Feb 18 07:20:52 2013 GMT: file ''/tmp/dumps/assert_20130217232050_2.dmp'', upload yes: ''CrashID=bp-aed93ff3-3186-4a4b-b726-bcf912130217'' Mon Feb 18 07:41:16 2013 GMT: file ''/tmp/dumps/crash_20130217234112_1.dmp'', upload yes: ''CrashID=bp-343d3058-708f-4b30-8a03-8e2e62130217'' Mon Feb 18 07:41:23 2013 GMT: file ''/tmp/dumps/assert_20130217234117_1.dmp'', upload yes: ''CrashID=bp-8564bbd5-16a9-4400-90fc-c0cfd2130217''

MrPopinjay commented 11 years ago

This seems to be happening a lot more frequently now :(

brl1214 commented 11 years ago

I can confirm this is an issue related to microphone use. Will issue #1853 be fixed in the next milestone update?

NothingMuchHereToSay commented 11 years ago

It gives me some sort of "model" error as well.

NothingMuchHereToSay commented 11 years ago

Also, it crashes everything relating to Steam, as in, once TF2 crashes, Steam dies along with it.

NothingMuchHereToSay commented 11 years ago

Is there a possibility..? Sorry for responding to this a lot, I've just been having a rough time with Steam crashing every 10 minutes because of this.

MrPopinjay commented 11 years ago

I've taken to not using the microphone at all which has had a huge effect on my ability to enjoy playing the game. It's really frustrating :(

NothingMuchHereToSay commented 11 years ago

I'm really hoping this is a top priority, as I'm a little frustrated at this bug/glitch. :/

I also REALLY want to avoid using Wine at all costs, because while it is very picky to get a game started up on Wine, it at least won't crash by using a freakin' microphone..

Oh and the Steam voice chat works perfectly when I'm in a call, so it might be something different.

stengun commented 11 years ago

I have this same issue. It occurs when playing and using the in game voice chat too frequently. I can play for about 1 hour, more if I rarely use voice chat. When this crash happens, it happens when the voice button is pressed, then depressed after sending voice. Steam will crash, and tf2 notices that and blocks in loops, ant then I must kill its process.

These are my specs

Informazioni sul processore: Produttore: GenuineIntel Velocità: 2401 MHz Processori logici 8 Processori fisici 4 HyperThreading: Supportato FCMOV: Supportato SSE2: Supportato SSE3: Supportato SSSE3: Supportato SSE4a: Non supportato SSE41: Supportato SSE42: Supportato

Informazioni sulla rete: Velocità rete:

Versione di Sistema Operativo: "Arch Linux" (64 bit) Nome del kernel: Linux Versione del kernel: 3.7.10-1-uksm-ck Produttore dell'X Server: The X.Org Foundation Versione dell'X Server: 11400000 X Window Manager: Mutter (Muffin) Steam Runtime Version: steam-runtime-release-i386_2013-03-08

Scheda video: Driver: NVIDIA Corporation GeForce GTX 560M/PCIe/SSE2

Versione driver: 4.3.0 NVIDIA 313.26
Intensità colore desktop: 24 bit per pixel
Frequenza di aggiornamento del monitor: 59 Hz
VendorID: 0x10de
DeviceID: 0x1251
Numero di monitor: 1
Numero di schede video logiche: 1
Risoluzione visualizzazione primaria: 1920 x 1080
Risoluzione desktop: 1920 x 1080
Dimensioni visualizzazione primaria: 13,58" x 7,64"  (15,55" diag)
                                        34,5cm x 19,4cm  (39,5cm diag)
Bus primario: PCI Express 16x
VRAM primaria: 1536 MB
Modalità MSAA supportate: 2x 4x 8x 16x 

Scheda audio: Periferica audio: Realtek ALC892

Memoria: RAM: 7956 Mb

Varie: Lingua IU: Italiano LANG: it_IT.utf8 Microfono: Not set Spazio totale disponibile su disco rigido: 268191 Mb Blocco libero più ampio del disco rigido: 81741 Mb

Software installato:

BHSPitMonkey commented 11 years ago

I'll add that this happens to me when using a USB microphone (part of a Logitech Quickcam). The odd thing is that I can generally use voice communication several (dozen) times with no problems before the one time that causes the crash.

When the problem happens, the game will stutter (freeze up while looping the current audio frame for a few seconds), then it will become playable again for around 5 to 10 seconds (but with obvious graphical glitches in the HUD), then it will crash with an Engine Error dialog saying some model (different each time) was not found, and that error.mdl could not be loaded.

Engine Error

At this point, the current audio frame is looping indefinitely, and the GUI is unresponsive. I have to switch to a tty in order to kill the process.

NothingMuchHereToSay commented 11 years ago

@BHSPitMonkey

I have that exact issue, though it eventually crashes away and I can restart Steam back.

@ValveSoftware Please please please fix this bug, I'm close to literally begging on the floor for anybody to fix this extreme annoyance, I really hate it when I'm speaking to people in game about how good (or bad) the team is and it's freakin' annoying as hell to be interrupted by.. a crash.

Dubanubiel commented 11 years ago

Things have actually gotten worse for me. I caved in and got an analog headset and TF2 is still doing the same thing. I have frigged around with all of my audio settings but my game still crashes after using my microphone about a dozen times.

Nokei commented 11 years ago

Has anyone tried using a microphone with alsa and seeing if it works?

nake90 commented 11 years ago

Wait, don't we all use alsa by default? I mean, I use phonon-gstreamer, but I thought that used alsa by itself.

Come on guys, this bug makes games like Guns of Icarus Online completely unplayable!

MrPopinjay commented 11 years ago

Well, most people use ALSA with PulseAudio rather than just ALSA alone.

NothingMuchHereToSay commented 11 years ago

@Nokei @nake90 @MrPopinjay

Pulseaudio is ABSOLUTELY required for what I do, which is talk to people on Teamspeak, Skype, Youtube, etc. Because Alsa can only handle 1 audio stream without sacrificing the other, so ditching Pulseaudio is most certainly out of the question.

MrPopinjay commented 11 years ago

Clearly nobody suggesting it as a fix- this really needs to get fixed. It just might be interesting if the problem stems from pulseAudio or not.

Nokei commented 11 years ago

Yes, I can't use alsa for my microphone without a very special configuration so I haven't been able to see whether the problem is pulseaudio related or not.

joshuajonah commented 11 years ago

Same issue here, this is a bit of a deal breaker. I hope this gets fixed soon.

NothingMuchHereToSay commented 11 years ago

Pardon my impatience but I'll be on Wine until this bug gets resolved. I'm so sick of it.

MrPopinjay commented 11 years ago

Yeah, this sucks. TF2 and steam are too unstable to really use at the moment...

TheHybrid commented 11 years ago

Okay, I think I found what the issue is. It seems steam crashes when tf2 has an outgoing voice stream (aka your microphone) and an incoming voice stream (aka someone else microphone) inputing into tf2 at once. For example, if you and some guy in the game both press the microphone button, and use them at the same time, steam will crash. However, if someone is already using their microphones, and you decide to use yours, it wont crash, and vice versa. It only crashes when you and someone else decide to use your microphones at once. This is my theory, because it seems like every time my steam crashed, it was because of this.

So a hot fix would be just to make sure you use your mic lightly, and becareful of when you use it. Until Valve/Linux resolves this issue, we just have to deal with it.

MrPopinjay commented 11 years ago

I'm not sure that's the case- I'm sure I've used my microphone to interrupt people without issue and I'm often crashing in servers where no one else is using a microphone.

TheHybrid commented 11 years ago

Really? Well... damn. I guess the solution would just refrain from using mic too much, or just not use it at all. I got used to using it on this one server, but my game kept crashing, so the only way to make sure I didn't habitually use my mic was to type "unbind v" into the console xD. This sucks though, the only way I can see this getting fixed is if we shove it into Valve's face...

NothingMuchHereToSay commented 11 years ago

Until I see this bug closed (I'll be watching this bug like a hawk), I won't play TF2 natively, just use Wine for now, as sad as it is.

MrPopinjay commented 11 years ago

yeah- I'm not really playing any more. Too frustrating to crash out all the time...

joshuajonah commented 11 years ago

The recent hardware report came out and said that 1.6% of users are on linux.

They started a real grass roots movement about getting of Microsoft dependence, and everybody went and bought games and started using linux. They are too concerned with porting new games to linux for new potential revenue streams it seems. Meanwhile there are games like CS:S and TF2 that basically require voice to play competitively, these games are completely useless now.

BHSPitMonkey commented 11 years ago

This is an issue tracker, not a discussion forum. Please refrain from commenting unless you're contributing information related to the bug (i.e. not merely making conversation or complaining).

joshuajonah commented 11 years ago

Then, can somebody link the relevant steamforums post?

TheHybrid commented 11 years ago

I think you guys are taking it a bit far... the game isn't completely useless, I'm very used to playing without a mic and I do fine. I'm still sticking to my theory though about the voice streams, because my game only crashed when my mic and someone else's mic were activated at once.

MrPopinjay commented 11 years ago

You cannot say "this bug isn't an issue because I don't use that feature". You are not the entire user base of this game, there are many people, such as me, to which a microphone is a vital part of a competitive FPS game.

nake90 commented 11 years ago

You know that this bug affects other games that DO need a mic to play like Guns of Icarus Online? I mean, at least playing TF2 you can not talk, but in GoIO it's just impossible, it's a 100% teamplay game and you need to talk to your crew and your team's captains. The same with L4D2.

This bug is really harming those games.

joshuajonah commented 11 years ago

Not sure if it affects those games, but so you know competetive CS:S absolutely requires a mic.

brl1214 commented 11 years ago

This is a conflict with either the microphone buffer or codec it has nothing to do with other people in the game the crash is caused by how you initialize the microphone ie, Pushing the button to activate the mic. It's for certain that if you mash the microphone button twice you are almost guaranteed a crash telling me that it has something to do with the buffer, codec, or the way the microphone is initialized from a trigger.

I find I can use the microphone on tf2 for a whole match or 2 if I play it safe so the bug consists somewhere within the input and the microphone triggering or possibly the codec.

along side this bug some other source engine games such at CSS the microphone isn't even detected once you join a server.

TheHybrid commented 11 years ago

Well bri, I've mashed the mic button rapidly and it doesn't cause a crash.

EDIT: Also, I know this is a issue. I'm not saying it is not, I'm just saying quiting tf2 just because of this issue is a bit much. And I know it extends to more then just tf2, I'm not stupid.

MrPopinjay commented 11 years ago

I gave mashing the push-to-talk a try but it didn't seem to cause a crash. I'll try again later today.

gdrewb-valve commented 11 years ago

A user on the forums has said that removing pulseaudio and using alsa stopped things from crashing. Purely to help narrow down where the problem may be, can other people confirm that switch avoids the crash? I understand not using pulseaudio creates its own problems but by doing this experiment it may indicate that pulseaudio has a bug in it and then we can try and get them to look into it.

adaricmar commented 11 years ago

I can confirm that removing Pulseaudio remedied my Counterstrike 1.6 crash related to voice chat.

Using voice chat for 15 minutes with Pulseaudio in a regular game, Steam will crash, and I will quickly get kicked from the server for losing connection to Steam.

After removing pulseaudio and its related packages completely, and setting Steam to use the ALSA default microphone input, I can no longer reproduce the crash.

This is using Linux Mint Nadia 14 on a Thinkpad T60, with the builtin HDA Intel microphone.

BHSPitMonkey commented 11 years ago

@gdrewb-valve I had a slightly different experience than the commenter above me. Rather than removing the pulseaudio packages, I:

When I launched TF2, however, there was no audio output. Audio input settings were correctly inherited from the Steam client, and people in-game were able to hear me, but the game client produced no sound of its own.

gdrewb-valve commented 11 years ago

You might need to set SDL_AUDIO=alsa.

gdrewb-valve commented 11 years ago

Here's the pulseaudio info on bug report, with a number of sub-pages on checking for broken drivers and more.

http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Community

BHSPitMonkey commented 11 years ago

@gdrewb-valve Thanks. I fully exited both Steam and TF2 and relaunched Steam with that environment variable set, but it didn't change things.

One interesting thing I noticed is that, in the game's current state with PA disabled (playback not working), there's another little bug that somewhat allows me to cheat a bit: Whenever someone uses voice chat, the callout bubble appears over their head and their username is displayed on the lower-right part of the screen (as usual), but neither of these items are going away now. This breaks invisibility for any spy in the game who has used voice chat in the time since I connected, since the callout bubble is always visible. It seems that the code responsible for destroying the label/callout is never getting called in this broken state. Then again, not being able to hear anything helps to balance out this advantage.

adaricmar commented 11 years ago

On an unrelated note, if I choose the ALSA input for my microphone as opposed to the Pulseaudio one, the game no longer crashes yet if I change server, noone can hear me/mic no longer works.

nake90 commented 11 years ago

So, has anyone created a bug report there? If so, could you please post a link to it? I couldn't find it.

MrPopinjay commented 11 years ago

Sorry, where?

nake90 commented 11 years ago

In the PulseAudio bug tracker. http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Community Isn't it a PulseAudio bug? Then it should be reported there.

MrPopinjay commented 11 years ago

There's little reason to believe it is a bug in the PulseAudio code, it's much more likely it's a bug in Steam that is related to how it interacts with PulseAudio.

gdrewb-valve commented 11 years ago

Steam uses Miles and OpenAL and so does not interact directly with pulseaudio (nor with alsa). The Steam code running is the same in both instances so that reduces the chance that the problem is in Steam.