jdolan / quetoo

Quetoo ("Q2") is a free first person shooter based on id Tech2. GPL v2 license.
http://quetoo.org
204 stars 28 forks source link

Player sounds stop playing back after a Com_Error #650

Open jdolan opened 2 years ago

jdolan commented 2 years ago

In debugging other issues, I noticed that if a Com_Error / ERR_DROP is thrown, player sounds (and only player sounds) stop working. This is probably a media dependency issue, where maybe the backing OpenAL buffer is freed inadvertently or something.

To reproduce, set a breakpoint somewhere (for me, this was in G_Damage, but it probably doesn't matter at all). Allow the breakpoint to reach, and then sit on it for 30 seconds or more. Step over the breakpoint, and the client will timeout (assuming you've waited enough time). Notice that player sounds are silent. Reloading the current map does not fix them, but s_restart does.

Paril commented 2 years ago

Can't repro. There's probably something additional going on here.