Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upWindow Crashes and Seeding Stops after a few Consecutive Seeds #1118
Comments
This comment has been minimized.
This comment has been minimized.
|
If you're creating the torrents yourself, i've documented similar memory leak issues here: The only work around I found was to increase pieceLength in the seed options. |
This comment has been minimized.
This comment has been minimized.
|
Duplicate #895 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I've been testing this both in the browser as well as in node using the latest versions of webtorrent and running in chrome browser.
I am trying to create a "live stream" using webtorrents where every 10 seconds I save the webcam stream using RecordRTC along with MediaStreamRecorder. Once the webcam is saved as video/webm, I immediately seed the video. After a few consecutive seeds, the browser seems to crash and the seeding stops. If I try to restart webcam, it doesn't work. I have to restart the browser. This case happens every time when I create 4 or more consecutive seeds using:
The problem may have something to do with event listeners? Sometimes, if I get past 10 seeds, i will get the event.emitter warning. Although, reading from previous closed issues, I don't think that this should be the issue...
I have tried to destroy the client each time I seed a new file using client.destroy. But the same error still occurs. I have also attempted to try seeding on the node server by first posting the video file to the server using forms and then parsing the form-video using formidable. Still no luck :(.