Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Got an error "out of memory" while streaming a large video file. #1177

Closed
zikoops opened this issue Aug 24, 2017 · 2 comments
Closed

Got an error "out of memory" while streaming a large video file. #1177

zikoops opened this issue Aug 24, 2017 · 2 comments

Comments

@zikoops
Copy link

@zikoops zikoops commented Aug 24, 2017

What version of WebTorrent?
The latest (I'm embeding the script)

What operating system and Node.js version?
v8.4.0

What browser and version? (if using WebTorrent in the browser)
Chrome Version 60.0.3112.101 (Official Build) (64-bit)

What did you expect to happen?

What actually happened?
I was streaming a video file quite large (2 GB), it was really smooth at very first of the video but after a while, Webtorrent downloaded a half of content, my browser got lag and crashed with error "out of memory"
I think it is about my Webtorrent application used over of memory on my computer, so is there any way to handle it?
I used example code "HTML example with status showing UI" part in this thread
Thanks!

Update 1:
There is a new error on chrome "Aw, Snap! Something went wrong while displaying this webpage".

@disarticulate disarticulate mentioned this issue Oct 26, 2017
2 of 3 tasks complete
@stale stale bot added the stale label May 3, 2018
@feross

This comment has been minimized.

Copy link
Member

@feross feross commented May 4, 2018

This used to be a Chrome bug, but it was fixed. Chrome can handle seeding files larger than 500MB now.

You still might see this error if:

  • You're seeding torrents that are larger than the amount of RAM that you have (by default, WebTorrent uses an in-memory file store in the browser)
  • You're on a 32-bit OS, in which case no process on the system is allowed to use more than ~2-4GB RAM
@stale stale bot removed the stale label May 4, 2018
@webtorrent webtorrent deleted a comment from stale bot May 4, 2018
@feross feross closed this May 4, 2018
@feross

This comment has been minimized.

Copy link
Member

@feross feross commented May 4, 2018

Duplicate #319

@lock lock bot locked as resolved and limited conversation to collaborators Aug 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.