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

Apple M1 Monterey Memory Leak #19511

Closed
JohnAntoine opened this issue Nov 16, 2021 · 7 comments
Closed

Apple M1 Monterey Memory Leak #19511

JohnAntoine opened this issue Nov 16, 2021 · 7 comments

Comments

@JohnAntoine
Copy link

JohnAntoine commented Nov 16, 2021

Description

On Macbook Air 2020 (M1) running macOS Monterey 12.0.1, Brave starts out with around 160MB of memory usage and climb non-stop to reach 2GB in two or three hours, reaching 14GB to 15GB in a couple of days, as reported by Brave's own task manager

Steps to Reproduce

  1. Disable all extensions as well as hardware acceleration
  2. Completely quit Brave
  3. Open Brave and check memory usage (should be around 100MB-120MB)
  4. Use Brave as normal for a couple of hours
  5. Close all tabs and check the task manager again (memory usage of the main Brave process should be now around 1.8GB - 2GB)

Actual result:

Memory usage continuously increases over time even if no tabs are open and all extensions are disabled.

Expected result:

Memory usage stable, rises and falls according to open tabs, falls to the same stable figure when all tabs are closed.

Reproduces how often:

The buggy behavior is the default, I can't get the memory usage to stabilize no matter what I do

Brave version (brave://version info)

Brave | 1.32.106 Chromium: 96.0.4664.45 (Official Build) (arm64)
Revision | 76e4c1bb2ab4671b8beba3444e61c0f17584b2fc-refs/branch-heads/4664@{#947}
OS | macOS Version 12.0.1 (Build 21A559)
JavaScript | V8 9.6.180.12
User Agent | Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36

Version/Channel Information:

  • Can you reproduce this issue with the current release?
    yes
  • Can you reproduce this issue with the beta channel?
    no attempt
  • Can you reproduce this issue with the nightly channel?
    no attempt

Other Additional Information:

  • Does the issue resolve itself when disabling Brave Shields?
    Haven't tried, but the issue still happens with no tabs open
  • Does the issue resolve itself when disabling Brave Rewards?
    Brave rewards disabled, the issue still happens
  • Is the issue reproducible on the latest version of Chrome?
    I don't use chrome

Miscellaneous Information:

I searched for the issue, found some similar threads on the community from a year to two years ago, with no apparent answers or solutions. I tried to create an account in the community but the verification e-mail never arrived.

@JohnAntoine JohnAntoine changed the title Apple M1 Memory Leak Apple M1 Monterey Memory Leak Nov 16, 2021
@rebron rebron added the needs-investigation A bug not 100% confirmed/fixed label Nov 23, 2021
@JohnAntoine
Copy link
Author

@rebron Hi Rafael,

I can do testing if you like. Do you have any updates on the issue?

@FirasSoltani
Copy link

I can report that I'm suffering the same issue with usage reaching 25gb at times

@philsimon
Copy link

Same issue here. Brave is inexplicably taking up 65GB of ram when I've got only 16 on my M1.

@culturerich
Copy link

Same issue on Monterey, but with an Intel, not M1.

@robertvanhoesel
Copy link

This may very well be the same bug that Mozilla Identified caused by changing the pointer color in System Preferences > Accessibility, which leaks memory every time the cursor type changes (from i.e. the pointer hand to normal cursor to text selection) which obviously happens a lot in browsers.

@philsimon
Copy link

philsimon commented Jan 10, 2022 via email

@JohnAntoine
Copy link
Author

This may very well be the same bug that Mozilla Identified caused by changing the pointer color in System Preferences > Accessibility, which leaks memory every time the cursor type changes (from i.e. the pointer hand to normal cursor to text selection) which obviously happens a lot in browsers.

It may very well be the case, and I do in fact have the cursor color in a non-standard configuration, but this wouldn't explain the fact that memory was leaking while the main browser window was open on the home tab, with no other tabs open and all extensions disabled, with a stationary mouse pointer/cursor, and I could see the memory rising linearly in the Brave task manager.

A necessary update: The issue seems to have gone away since the last two macOS updates without me changing anything with my workflow, but since we don't know the cause, we can't guarantee that it won't happen again

@rebron rebron added this to General May 28, 2024
@rebron rebron moved this to On Deck in General May 28, 2024
@github-project-automation github-project-automation bot moved this from On Deck to Completed in General Jul 16, 2024
@rebron rebron added closed/by-author and removed needs-investigation A bug not 100% confirmed/fixed possible-memory-leak labels Sep 10, 2024
@rebron rebron removed this from General Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants