client-sdk-unity icon indicating copy to clipboard operation
client-sdk-unity copied to clipboard

Memory leak on incoming audio

Open sus-taguchi-t opened this issue 1 year ago • 1 comments

Hi. I am currently implementing an audio exchange and the audio communication is correct. However, I was experiencing memory leaks, so I did a little investigating.

I am calling the AudioStream constructor in the callback registered to the TrackSubscribed event of the Room class instance, but if I comment out that part, the memory leak goes away. In particular, I have confirmed that it is possible to reduce the memory leakage a little by changing the part of the OnAudioStreamEvent method of the AudioStream class that creates an instance of the AudioFrame class to a using statement. However, the memory leakage is not completely eliminated, so there may be other causes.

sus-taguchi-t avatar May 10 '24 01:05 sus-taguchi-t

Hi, I was wondering if there are any updates on this one — same issue with memory leak. 😢

ivanovandrewx avatar Sep 23 '24 14:09 ivanovandrewx

We also see a memory leak.

tobowers avatar Oct 29 '24 14:10 tobowers

Hi @sus-taguchi-t, thank you for reporting this. The issue has been fixed in the latest release, v1.1.1.

ladvoc avatar Apr 29 '25 03:04 ladvoc