Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Voice chat breaks after unloading a workshop map. #3980

Open
DarkRTA opened this issue Jan 24, 2025 · 3 comments
Open

Voice chat breaks after unloading a workshop map. #3980

DarkRTA opened this issue Jan 24, 2025 · 3 comments
Labels

Comments

@DarkRTA
Copy link

DarkRTA commented Jan 24, 2025

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
Copy link
Author

DarkRTA commented Jan 24, 2025

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)

@thouravi
Copy link

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

@kisak-valve kisak-valve added Audio and removed Linux labels Jan 27, 2025
@danginsburg
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants