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

Mageia ISO crashes webtorrent #5372

Closed
fmarier opened this issue Jul 24, 2019 · 10 comments
Closed

Mageia ISO crashes webtorrent #5372

fmarier opened this issue Jul 24, 2019 · 10 comments
Assignees
Labels
closed/works-for-me crash/webview Only tab webview crash. Browser doesn't crash feature/webtorrent Label for webtorrent related issues OS/Linux

Comments

@fmarier
Copy link
Member

fmarier commented Jul 24, 2019

#403 Description

Webtorrent consistently crashes while downloading a Mageia ISO.

Steps to Reproduce

  1. Open http://mirror.math.princeton.edu/pub/mageia/iso/7.1/torrents/Mageia-7.1-x86_64.torrent.
  2. Start Torrent.

Actual result:

At some point before the download has finished, the tab crashes:

Screenshot from 2019-07-24 10-56-16

Expected result:

Download finishes without crashing.

Reproduces how often:

I tried it three times on release and it failed the same way each time.

Brave version (brave://version info)

Brave | 0.66.101 Chromium: 75.0.3770.142 (Official Build) (64-bit)
Revision | 8d93477bd18154c67a70a67019cb8032382c55dd-refs/branch-heads/3770@{#1160}
OS | Linux

Version/Channel Information:

  • Can you reproduce this issue with the current release?

Yes

  • Can you reproduce this issue with the beta channel?

No, I tried once on Beta and it worked.

  • Can you reproduce this issue with the dev channel?

Yes:
Screenshot from 2019-07-24 11-13-05

  • Can you reproduce this issue with the nightly channel?

No, I tried once on Nightly and it worked.

@fmarier fmarier added crash/webview Only tab webview crash. Browser doesn't crash feature/webtorrent Label for webtorrent related issues labels Jul 24, 2019
@kjozwiak
Copy link
Member

Adding this into the WebTorrent Revamp board. @feross please remove if it doesn't belong in there 👍

@feross
Copy link

feross commented Jul 27, 2019

WebTorrent seems to be keeping the entire torrent in memory as the file is downloaded. I can see the RAM usage of the "Brave Browser Helper" process increase along with the amount of the torrent that is downloaded, which should not happen. It appears that it is being initialed with the in-memory storage mode instead of the filesystem mode.

@fmarier Can you answer the following questions to help me debug this issue:

  • How much RAM does the computer where you experienced the crash have?
  • Can you confirm that you are indeed using a 64-bit version of Brave?
  • What OS and version are you using?
  • Is your OS 32-bit or 64-bit?
  • Can you re-download the Mageia Linux ISO torrent and watch the RAM usage of Brave? Does one "Brave Browser Helper" process consume up to 4 GB+ (the size of the torrent) over time, until the download completes or the browser crashes?
  • If the browser crashes before the download completes, at what point does it crash? How much RAM is used by the "Brave Browser Helper" process at the time the tab crashes?

Thanks for your help!

@feross feross self-assigned this Jul 27, 2019
@fmarier
Copy link
Member Author

fmarier commented Jul 27, 2019

How much RAM does the computer where you experienced the crash have?

32GB

Can you confirm that you are indeed using a 64-bit version of Brave?

Yes, we don't have 32-bit builds of Brave for Linux.

What OS and version are you using?
Is your OS 32-bit or 64-bit?

Ubuntu 18.04, 64-bit

@kjozwiak
Copy link
Member

Possibly a dupe of #1199?

@fmarier
Copy link
Member Author

fmarier commented Jul 27, 2019

Possibly a dupe of #1199?

No because in my case, the download never actually completes. The tab crashes before that.

@kjozwiak
Copy link
Member

Possibly a dupe of #1199?

No because in my case, the download never actually completes. The tab crashes before that.

Sounds good 👍 Figured it might have been a dupe due to @feross mentioned the following above:

WebTorrent seems to be keeping the entire torrent in memory as the file is downloaded. I can see the RAM usage of the "Brave Browser Helper" process increase along with the amount of the torrent that is downloaded, which should not happen.

@feross
Copy link

feross commented Jul 27, 2019

32GB

Okay, so running out of RAM is probably not the issue.

Yes, we don't have 32-bit builds of Brave for Linux.

Good to know. So the 4GB address limit for 32-bit processes is not the issue.

Ubuntu 18.04, 64-bit

I'll see if I can reproduce the issue on Ubuntu. Though it doesn't seem like it reproduces reliably.

@btlechowski
Copy link

Dupe of #5563?

@iefremov
Copy link
Contributor

I wasn't able to reproduce on Mac. @fmarier do you think this is still an issue?

@fmarier
Copy link
Member Author

fmarier commented May 17, 2021

I tried it again and I can't reproduce the crash anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed/works-for-me crash/webview Only tab webview crash. Browser doesn't crash feature/webtorrent Label for webtorrent related issues OS/Linux
Projects
None yet
Development

No branches or pull requests

6 participants