prasanaworld / puppeteer-screen-recorder

A powerful plugin for recording with Puppeteer.
https://prasanaworld.github.io/puppeteer-screen-recorder/classes/puppeteerscreenrecorder.html
MIT License
388 stars 63 forks source link

what is the good way to destroy the recorder and release the resource it use? #81

Open FishBlanche opened 1 year ago

FishBlanche commented 1 year ago

question: what is the good way to destroy the recorder? It seems that the memory usage keep rising during recording.

In beforeEach: recorder = new PuppeteerScreenRecorder(pyBell.page); await recorder.start(./report/video/a.mp4); after finish executing test case: await recorder.stop();

just repeat the above steps,After loads of tests,the memory usage rise to unacceptable level,and cause test to fail.

Also tried stream,it turns out the same.

AriVagelatos-KSO commented 3 months ago

Any update for this? This library is unusable due to memory usage not being released. Any alternatives?