bozbez / win-capture-audio

An OBS plugin that allows capture of independant application audio streams on Windows, in a similar fashion to OBS's game capture and Discord's application streaming.
GNU General Public License v2.0
3.73k stars 203 forks source link

SEVERE memory leak #263

Closed codeHusky closed 4 months ago

codeHusky commented 6 months ago

The other night I was streaming with several win-capture-audio sources on OBS 30.0.2. As usual, the audio sources began to crackle around an hour or two into stream so I had to hide and then show them all again. However, few more hours into stream and my PC began to lag significantly.

Upon checking with ProcExp64, obs64.exe was using over 10,000,000 K "private bytes" (10gb) of memory while the working set was only around 2-3GB (typical for my setup). This memory allocation seems to increase constantly over time with no real purpose, far exceeding the amount of memory the application is actually using. Restarting OBS resolved the issue and freed up the memory for other applications.

codeHusky commented 6 months ago

IMG_6342 Here’s an example of what it looks like in ProcExp, happened after 5.25 hours of streaming

cD1rtX3 commented 5 months ago

Are you sure that's a problem with the plugin and not a problem with OBS itself?

codeHusky commented 5 months ago

Are you sure that's a problem with the plugin and not a problem with OBS itself?

I've done long recordings on separate profiles that use the plugin less or not at all, and I've been able to do those recordings for extended periods without negative consequences. I haven't strictly tested to eliminate some OBS issue as a factor, but I'm not doing anything too special with OBS either. If it was an OBS issue I'm sure it would've been a huge issue by now.

codeHusky commented 2 weeks ago

just to clarify this issue seems to be an underlying OBS issue, not sure what's causing it yet though as it happened w/out plugins