Race Condition in NetworkSetVoiceChannel

  1. Client (production/canary) and FXServer version:
  • Client - Canary | Server - v3425
  1. What you expected to happen:
  • Two people to be able NetworkSetVoiceChannel(channel) around the same time (like when they’re in a car)
  1. What actually happens:
  • Two players NetworkSetVoiceChannel(channel) at the same time and quite often one isn’t able to hear the other player.
  1. Category of bug (eg. client, server, weapons, peds, native):
  • Server: Mumble
  1. Reproducible steps, preferably with example script(s):
  • With two players use pma-voice with channel pre-creation removed (server/server.lua:19-23).
  • Get into a vehicle with another player
  • Switch to a grid that is not already created
  • Often times you will not be able to hear/talk to the other player.

What is wrong with permanent channels?

Precreating doesn’t work particularly well for routing bucket support as there isn’t a limit on how many you can have, and making more than 1-2k channels doesn’t typically work very well.

Are you by chance able to make a script that tries to chaos-time this on a periodic event/timer?

Here’s a script that should mimic it.

voice-chaos.zip (737 Bytes)

1 Like