WebAudio / web-audio-api

The Web Audio API v1.0, developed by the W3C Audio WG
https://webaudio.github.io/web-audio-api/
Other
1.05k stars 166 forks source link

MediaStreamAudioSourceNode memory leak, OR no way to destroy node #2484

Closed vneznaikin closed 2 years ago

vneznaikin commented 2 years ago

I am using MediaStreamAudioSourceNode to connect via WebRTC. Everything works fine until the moment when I need to end the call and open a new connection. What am I doing:

I tried not to recreate MediaStreamAudioSourceNode , just delete tracks and add new ones to MediaStream, but it's not working

I found a similar issue on stackoverflow, without any solution

As a result I didn't find any way to destroy the MediaStreamAudioSourceNode . Maybe I'm missing something?

hoch commented 2 years ago

This looks like a GC issue and maybe browser-specific. Please file an issue to the bug tracker for the browser that you used.

0x3c commented 1 year ago

This issue still there.

Chrome version: 116.0.5845.187(arm64) OS: macOS 13.5.1

image

hoch commented 1 year ago

Please file an issue here with a small repro case.

This forum is for spec discussion, and the problem reported above is an implementation issue.