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

Bat Ledger Service uses 99% of CPU #8691

Closed
jesusmartinoza opened this issue Mar 14, 2020 · 12 comments · Fixed by brave/brave-core#4948
Closed

Bat Ledger Service uses 99% of CPU #8691

jesusmartinoza opened this issue Mar 14, 2020 · 12 comments · Fixed by brave/brave-core#4948

Comments

@jesusmartinoza
Copy link

jesusmartinoza commented Mar 14, 2020

Description

In the last weeks I noticed that Brave Browser Helper process is using a lot of CPU(~99%). Digging in the browser tools I found that Bat Ledger Service is taking all the CPU.

Test plan / Steps to Reproduce (edited by @bsclifton)

  1. Install Brave, fresh profile
  2. Enable rewards
  3. Visit a page (website, twitter profile, etc)
  4. Click BAT icon in omnibox

Actual result:

CPU usage

Reproduces how often:

Every time I open the browser.

Brave version (brave://version info)

Revision	fcea73228632975e052eb90fcf6cd1752d3b42b4-refs/branch-heads/3987@{#974}
OS	macOS Version 10.14.6 (Build 18G95)
JavaScript	V8 8.0.426.26
Flash	(Disabled)
User Agent	Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36
Command Line	/Applications/Brave Browser.app/Contents/MacOS/Brave Browser --enable-dom-distiller --disable-domain-reliability --no-pings --extension-content-verification=enforce_strict --extensions-install-verification=enforce --sync-url=https://no-thanks.invalid --enable-features=PasswordImport,WebUIDarkMode,SimplifyHttpsIndicator --disable-features=AutofillServerCommunication,VideoPlaybackQuality,AllowPopupsDuringPageUnload,SmsReceiver,AudioServiceOutOfProcess,NotificationTriggers,LookalikeUrlNavigationSuggestionsUI,WebXR,WebXrGamepadModule --flag-switches-begin --flag-switches-end --enable-audio-service-sandbox --disable-webrtc-apm-in-audio-service --disable-sync
Executable Path	/Applications/Brave Browser.app/Contents/MacOS/Brave Browser
Profile Path	/Users/hongoloco/Library/Application Support/BraveSoftware/Brave-Browser/Default

Other Additional Information:

  • Does the issue resolve itself when disabling Brave Shields? No
  • Does the issue resolve itself when disabling Brave Rewards? No
  • Is the issue reproducible on the latest version of Chrome? No
@congard
Copy link

congard commented Mar 14, 2020

The same issue on Linux

Brave: 1.8.10 Chromium: 80.0.3987.132 (Official build) unknown (64-bit)
Version: fcea73228632975e052eb90fcf6cd1752d3b42b4-refs/branch-heads/3987@{#974}

@tag9724
Copy link

tag9724 commented Mar 14, 2020

I just started to get the same problem an hour ago after restarting Brave, it seem that the process "Bat Ledger Service" don't stop restarting and I cannot stop it.

Brave | 1.7.59 Chromium: 80.0.3987.132 (Official Build) dev (64-bit)
Revision :  fcea73228632975e052eb90fcf6cd1752d3b42b4-refs/branch-heads/3987@{#974}
OS  : Windows 10 OS Version 1903 (Build 18362.720)

@victorelec14
Copy link

+1

image

Version 1.4.96 Chromium: 80.0.3987.132 (Official Build) (64-bit)
Windows 10
Versión 10.0.19582 Build 19582

@kjozwiak kjozwiak added bug feature/rewards perf priority/P2 A bad problem. We might uplift this to the next planned release. labels Mar 15, 2020
@kjozwiak
Copy link
Member

kjozwiak commented Mar 15, 2020

Thanks for all the info. We're currently looking into this as we speak. +1 from me as well.

I've noticed this on Friday when I updated to 1.8.11 CR: 80.0.3987.132 as I was a few days behind Nightly. After a bit of time, I started noticing that my machine started turning on the fans/overheating. This has been happening all weekend. As per the above, it's due to the BAT Ledger Service using 100% CPU.

Reproduced using the following:

Brave | 1.8.11 Chromium: 80.0.3987.132 (Official Build) nightly (64-bit)
-- | --
Revision | fcea73228632975e052eb90fcf6cd1752d3b42b4-refs/branch-heads/3987@{#974}
OS | macOS Version 10.15.3 (Build 19D76)

Screen Shot 2020-03-15 at 6 36 33 PM

CCing @rebron @NejcZdovc @mandar-brave @bsclifton @BrendanEich

@bsclifton bsclifton added priority/P1 A very extremely bad problem. We might push a hotfix for it. and removed priority/P2 A bad problem. We might uplift this to the next planned release. labels Mar 15, 2020
@GeetaSarvadnya
Copy link

Experiencing the same issue in Windows 10x 64 - 1.8.11

image

@bsclifton
Copy link
Member

Updated original issue to add steps. I used the build bisect tool to narrow down the problem to 1.7.30 which is now on Beta and Nightly. Pull request which introduced the problem is brave/brave-core#4252

@bsclifton
Copy link
Member

Marked as release-notes/exclude since this has not made it to Release channel yet. Problem that is known is only in Beta/Dev/Nightly

@aleqx
Copy link

aleqx commented Mar 25, 2020

This is still happening in the new 1.5.115. 100% CPU for Bat Ledger Service, wallet not working properly, registered publishers not recognized at all, ads not showing.

https://community.brave.com/t/bat-ledger-cpu-usage-at-100-publishers-no-longer-recognized-outdated-rewards-info/112190/13?u=alexr

@NejcZdovc
Copy link
Contributor

@aleqx we have this tracking here #8846

@kjozwiak
Copy link
Member

kjozwiak commented Mar 30, 2020

Verification PASSED on macOS 10.15.4 x64 Catalina using the following build:

Brave | 1.7.78 Chromium: 80.0.3987.149 (Official Build) dev (64-bit)
-- | --
Revision | 5f4eb224680e5d7dca88504586e9fd951840cac6-refs/branch-heads/3987_137@{#16}
OS | macOS Version 10.15.3 (Build 19D76)

As per #8691 (comment), we have an issue that's tracking a similar issue that's occurring on all channels via #8846.

Verification passed on

Brave 1.7.78 Chromium: 80.0.3987.149 (Official Build) dev (64-bit)
Revision 5f4eb224680e5d7dca88504586e9fd951840cac6-refs/branch-heads/3987_137@{#16}
OS Windows 10 OS Version 1803 (Build 17134.1006)

Verification passed on

Brave 1.7.78 Chromium: 80.0.3987.149 (Official Build) dev (64-bit)
Revision 5f4eb224680e5d7dca88504586e9fd951840cac6-refs/branch-heads/3987_137@{#16}
OS Ubuntu 18.04 LTS

@victorelec14
Copy link

Version 1.8.90 Chromium: 81.0.4044.129 (Official Build) (64-bit)

image

@NejcZdovc
Copy link
Contributor

@victorelec14 this one should fix the final thing using CPU #9607

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

10 participants