Open ignl opened 3 years ago
thanks for the report. A memory issue was resolved in wavesurfer.js 4.5.0, can you give that a try @ignl?
Yes, it's the same thing with new version as well. It seems that videojs wavesurfer plugin still holds reference to videojs player through some handlers(?) that are not cleared. Not sure haven't checked the code myself yet, maybe you might know right away.
can you attach a small example that reproduces the issue? Also, please include operating/system browser information.
I have tried first to modify regular videojs-wavesurfer plugin audio example and it seems it works OK. However in my example I used wavesurfer plugin with audio recorder and after adding that into example memory leak is visible clearly when pressing init/destroy buttons and doing allocation instrumentation (Memory tab in google chrome dev tools). I use google chrome 88 on kubuntu 20.10. It seems some handlers are not cleared, but since it's related to recorder maybe the problem is there... example.zip
Description
During navigation I destroy wavesurfer player with microphone plugin, but it seems memory is not exactly freed and slowly increasing by creating/destroying player.
Versions
Make sure to include the following versions:
videojs/wavesurfer
Video.js: 7.11.4 Video.js wavesurver: 3.3.1 wavesurfer.js: 4.4.0 videojs-record: 4.2.0
google chrome 88 on kubuntu 20.10