Enabling VoiceChatService / Setting it to Enabled causes HUGE memory leakage

Video:

Direct Links: Provided the repro file, it was happening in here, 🌴Perris, California - Roblox but we disabled the VCApi for now.

DxDiag:
Processor: AMD Ryzen 9 7900X 12-Core Processor (24 CPUs), ~4.7GHz
Memory: 65536MB RAM
Available OS Memory: 64696MB RAM
Page File: 43136MB used, 25655MB available
Windows Dir: C:\Windows
DirectX Version: DirectX 12
Card name: NVIDIA GeForce RTX 4070 Ti

Reproduction Steps:

  1. Create baseplate
  2. Place game to 1-50 (voicechat limit)
  3. Enable VoiceChatService and Set API to enabled.
  4. Join / Reset and watch [Unknown] go crazy

Expected behavior

When players join/leave or even reset (meaning loadcharacter) the [Unknown] starts skyrocketing. We released a game with 35 players and it crashed / shutdown with 288 meaning server ran out of memory.

We removed every script, every localscript, everything you can think of in rep etc. Basically empty map ONLY, and having it enabled still caused the issue to occur. Once disabled the issue went away.

A private message is associated with this bug report

7 Likes

Also in the video typing in [Unkown in the F9 search bar fully bricks the F9 Console, and can’t be re-opened until rejoining.

3 Likes

Hey @Ashi_Division, in the beginning of the video EnableDefaultVoice is false and UseAudioApi is Disabled, but prior to the Audio API, setting EnableDefaultVoice to false effectively turns voice chat off completely.

Does this high memory usage still occur with EnableDefaultVoice set to true but UseAudioApi disabled?

4 Likes

Let me try.

Ill be back with a video!

3 Likes

Here you I tested both ways!

Looks like this (Causes leakage)
image

4 Likes

Thanks for testing; we’ll check it out to see where this memory usage is coming from

4 Likes

Thank you, if you really need us to run a server to get a crash log let me know!

4 Likes

Are you comfortable sharing a .rbxl?

I tried EnableDefaultVoice = false, and UseAudioApi = Enabled on a baseplate, and reset my character several times; this does not seem to reproduce the issue for me – so there must be more to it :thinking:

4 Likes

Yep just added you to the PV message with the other RBX Engineer. For some reason the PV message associated with this post acting funny.

4 Likes

Hey @Ashi_Division, there was indeed a memory leak, but it only happened server-side (not on the client) – we’ve flipped a flag that should address that; has the Script Rate (/s) also gone down?

2 Likes

Yea it so much better than it was months back servers are actually lasting now thank you very much and glad you solved it!

3 Likes

Hello @ReallyLongArms ,

I have enabled VoiceChatService AudioAPI on our experience and the leakage happened again.
This has been fixed upon disable the AudioAPI (setting it to Automatic, default value)

The AudioAPI was only used under a speaker system that can only be used (and is only created) while having a vehicle spawned in, in which none was spawned at the time of the leakage.

Anything about that?

3 Likes

Is this happening in the same place as the original report, or a different placeID?

If you have a Place I can join or an rbxl that reproduces the problem I can take a look

4 Likes

No, it is a different PlaceID being 18436122805

I can give you a private server link in a minute for you to test the following, I just need to re-enable the element in question

2 Likes

Here is the private server link with the element that caused the issue enabled
Re-disabled the element in question to make servers playable.

The issue seems to happen when a player spawns having a contant spike of ~100 on AudioAPI enabled servers without spike down instead of ~10 or less with nearly instant spike down, never going above 100.

I should be ingame when you join hopefully I wont be there since sleep

EDIT :: A rbxl has also been provided to your private messages

4 Likes