Mem Leak when playing a large number of files #3894
Unanswered
robotastic
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am noticing the memory usage constantly growing when I playback a large number of files. I am using React and generally following this example: https://wavesurfer.xyz/examples/?react.js My code is up at: https://openmhz.com/system/dcfd but I made a small sandbox example to help simplify things.
When I run this in Chrome and use the Memory tools in Developer tools, I notice the memory usage constantly growing. I created a snapshot when I first load the page and then after playing through the files in the play list and I got the following:

Should I be doing something different to destroy the current audio buffer before I switch to a different URL? I have tried different backends and also useHook instead of Components and it didn't seem to help.
Thanks for any pointers - I am figuring I am doing something wrong
Beta Was this translation helpful? Give feedback.
All reactions