Brave-browser: Bat Ledger Service uses 99% of CPU

Created on 14 Mar 2020  路  12Comments  路  Source: brave/brave-browser

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)

Brave 1.4.96 Chromium: 80.0.3987.132 (Official Build) (64-bit) 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
QA Pass-Linux QA Pass-Win64 QA Pass-macOS QTest-Plan-Specified QYes bug featurrewards perf prioritP1 release-noteexclude

Most helpful comment

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

All 12 comments

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}

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)

+1

image

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

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

Experiencing the same issue in Windows 10x 64 - 1.8.11

image

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 https://github.com/brave/brave-core/pull/4252

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

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

@aleqx we have this tracking here https://github.com/brave/brave-browser/issues/8846

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 https://github.com/brave/brave-browser/issues/8691#issuecomment-603664380, 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

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

image

@victorelec14 this one should fix the final thing using CPU https://github.com/brave/brave-browser/issues/9607

Was this page helpful?
0 / 5 - 0 ratings