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

Voice chat breaks after unloading a workshop map.

Open DarkRTA opened this issue 11 months ago • 15 comments

Description

When playing a workshop map in CS2, voice chat will break after returning to the main menu and loading an official map, requiring a game restart in order to fix. This seems to be caused by the resource system getting confused and being unable to reload sounds/servervoice.vsnd_c

Steps to reproduce.

  • Load any workshop map offline.
  • Type voice_loopback true into the console.
  • Try speaking, you should hear yourself.
  • Load any official map offline.
  • Type voice_loopback true into the console.
  • Try speaking, you will not hear yourself this time and will see the game failing to load sounds/servervoice.vsnd_c in the console.

System information

This bug has been confirmed to occur on Windows clients although I am testing on a NixOS machine.

Processor Information:
CPU Vendor: AuthenticAMD
CPU Brand: AMD Ryzen 5 3600 6-Core Processor

Operating System Version:
"NixOS 25.05 (Warbler)" (64 bit)
Kernel Name: Linux
Kernel Version: 6.6.71

Video Card:
Driver: AMD AMD Radeon RX 7600 XT (radeonsi, navi33, LLVM 19.1.5, DRM 3.54, 6.6.71)
Driver Version: 4.6 (Compatibility Profile) Mesa 24.3.3

Memory:
RAM: 15915 Mb

DarkRTA avatar Jan 24 '25 21:01 DarkRTA

This is caused by the game purging all sounds whenever all workshop addons are unloaded.

Since servervoice.vsnd_c seems to be created by the voice system on init and not loaded from a file, the voice system ends up being unable to find it whenever it goes to play back any voice chat.

Patching libsoundsystem.so to not unload sounds on addon unmount (requires -insecure) avoids this bug entirely.

[EngineServiceManager] Unmounting addon '3075706807'
[SoundSystem] Addon unloaded, unloading sound resources. <--- bug occurs here

// later when the game needs to play voice chat
[ResourceSystem] Failed loading resource "sounds/servervoice.vsnd_c" (ERROR_FILEOPEN: File not found)

DarkRTA avatar Jan 24 '25 22:01 DarkRTA

Can confirm, this issue also exists in Windows. @kisak-valve

thouravi avatar Jan 27 '25 13:01 thouravi

Thanks for the excellent bug report! We are working on a fix.

danginsburg avatar Jan 27 '25 17:01 danginsburg

Hi Dan, is this still being worked on at all? 3 weeks seems like a bit of a long time for a fix unless this is a really tricky problem to solve.

DarkRTA avatar Feb 19 '25 00:02 DarkRTA

Hi Dan, is this still being worked on at all? 3 weeks seems like a bit of a long time for a fix unless this is a really tricky problem to solve.

I will check in with the folks that were working on fixing this.

danginsburg avatar Feb 19 '25 17:02 danginsburg

So we do have a fix for this, it just hasn't shipped yet. It should be in the next client update.

danginsburg avatar Feb 19 '25 20:02 danginsburg

I just retested after today's update and it is unfortunately still broken after following the exact steps I gave to reproduce, along with testing on a dedicated server with another player running windows.

Did this not ship despite being in the patch notes?

DarkRTA avatar Feb 28 '25 01:02 DarkRTA

The fix was shipped, but it sounds like it's not working. I'll check in with the team. Thanks for the update.

danginsburg avatar Feb 28 '25 15:02 danginsburg

Hi Dan, is this still being worked on at all?

tautuxs avatar Mar 11 '25 12:03 tautuxs

https://github.com/ValveSoftware/csgo-osx-linux/issues/3771

For me it's still not fixed - my comment from that other report: "Yup, still not fixed. For me its like this: Start server > play default map > Switch to Workshop map > Switch back default maps > Voice stops working. People have to restart the game."

clausdk avatar Mar 11 '25 15:03 clausdk

Dan? It's been a month and still no fix for this problem. Was this left over, never to be fixed?

tautuxs avatar Mar 25 '25 20:03 tautuxs

@danginsburg Hi? Almost 4 months and it's still not fixed.

thouravi avatar Apr 20 '25 19:04 thouravi

hi , my server is suffering from the same issue.

mayersgamer avatar May 03 '25 03:05 mayersgamer

@danginsburg can we have an update on this? It's been 3 months now officially.

thouravi avatar May 04 '25 12:05 thouravi

Alright since Valve is not working on a fix..Let's contact the guy who made the old fix and see what he thinks. Otherwise lets try and see if we can find a solution in form of a plugin for CounterStrikeSharp

clausdk avatar May 09 '25 15:05 clausdk