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

Blob is too big. #1429

Closed
SunnyQjm opened this issue Jul 8, 2018 · 4 comments
Closed

Blob is too big. #1429

SunnyQjm opened this issue Jul 8, 2018 · 4 comments
Labels

Comments

@SunnyQjm
Copy link

@SunnyQjm SunnyQjm commented Jul 8, 2018

Now, I want to use webtorrent API to share a file (seed it). In the same time, use the magnetURI to download this file.
But if this file too big. (For example in chrome, the file bigger than 800M). Use "file.getBlob()" or "file.getBlobUrl" can not create a Blob Object. The Web page will cash.

I have test that the demo web "https://instant.io/" also have this problem.

If I want to trans a Big file, How can I fix it.

@Weedshaker

This comment has been minimized.

Copy link

@Weedshaker Weedshaker commented Jul 8, 2018

There is certainly a hard limit of the browser, resp. the machines RAM, but also at https://webtorrent.io/docs ->file.appendTo->opts->maxBlobLength->default: 200 * 1000 * 1000 bytes

@SilentBot1

This comment has been minimized.

Copy link
Member

@SilentBot1 SilentBot1 commented Jul 17, 2018

@SunnyQjm,

What browser are you using @SunnyQjm?

Browsers handle blobs differently, with some storing them solely in memory while others store the blob on disk, a good breakdown of the different limits between browsers can be seen here.

The Web page will cash.

Chrome specifically states that

Creating a lot of blobs, especially if they are very large blobs, can cause the renderer memory to grow too fast and result in an OOM on the renderer side. This is because the renderer temporarily stores the blob data while it waits for the browser to request it.

Using a different store would possibly help you with this issue; something like the indexeddb-chunk-store.

Hope this helps.

@jimmywarting

This comment has been minimized.

Copy link
Contributor

@jimmywarting jimmywarting commented Aug 17, 2018

@stale

This comment has been minimized.

Copy link

@stale stale bot commented Nov 15, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale label Nov 15, 2018
@stale stale bot closed this Nov 22, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Feb 20, 2019
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
4 participants
You can’t perform that action at this time.