Nature of Issue
Yesterday I started to experience high CPU usage while playing Youtube. The CPU went up to 100% and completely crippled and still is crippling the playback. This problem however only happens in Brave normal mode (100% CPU usage), it does not happen in Brave Incognito mode or any other browser (<10% CPU usage). All states are monitored and confirmed by the built-in task manager by Brave and activity monitor by the system. I have hardware acceleration enabled by default, I have attempted to disable and re-enable acceleration, restart the system, all did not help. Memory is not an issue, just CPU.
I’ve been using Brave for over three months and this has never happened before. I have updated to the latest version a few days ago.
I have screenshots however this format does not allow uploading pictures.
Version 1.29.79 Chromium: 93.0.4577.63 (Official Build) (arm64)
Hardward: iMac (24-inch, M1, 2021)
System version: Big Sur, 11.5.2 (20G95)
How can this issue be reproduced?
Open Brave in normal mode
Playing any Youtube video
Just play for a minute or two, 100% repro
Expected result:
Smooth Playback
Brave Version( check About Brave):
Version 1.29.79 Chromium: 93.0.4577.63 (Official Build) (arm64)
Additional Information:
See above
Please look into this as this will prevent me from using the browser.
Edit:
Looks like this problem happens intermittently, this afternoon I played another few Youtube videos and it worked fine, the symptom seems to have disappeared. But later today the problem came back and it is again unplayable. Not sure what might be causing this issue as it seems quite random. But when it happens, it is annoying and it won’t go away no matter what you do.
The problem is now also observed on Chrome in normal mode. With 100% CPU usage and eventually crashed the page.
I have a M1 Macbook, and compared clean profiles (no extensions) Brave and Chrome. (via the settings/task manager) I’m getting the same results. Tested https://www.youtube.com/watch?v=eLSc9ZZ1UJI@1080p.
Brave/ Chrome: 50-80.00 (on average)
Unfortunately FIrefox doesn’t show CPU timings in its task manager. But it’s sitting on “Medium” battery usage. Checked Brave Nightly, looks like its little better on system resources
@fanboynz Playing the same YouTube video YouTube Video at 1080p and simultaneously one music video at YouTube Music on my iMac (21.5-inch, Late 2012) with macOS Catalina 10.15.7. CPU: 40.32% and RAM: 7.11 GB! No issues at all.
Brave browser version (with no extensions):
Version 1.29.79 Chromium: 93.0.4577.63 (Official Build) (x86_64)
Could you check brave://gpu when the performance drops and see if hardware acceleration was disabled? At the same time, can you check the bottom of that page and see if the GPU Process crashed? This is an issue I’ve also reported and have had since 1.29.76.
As I can see from it, it says hardware acceleration is enable. But I cannot find information about GPU crashing. There is a body size limit to how much I can post so I have excluded the problem detected and log messages at the bottom. Please see the details below.
The log goes like this, I have omitted most of the repeated parts. Basically it’s the first two errors being repeated over a hundred times and the last error message appears only one time.
[9932:259:0912/153049.195708:ERROR:shared_image_manager.cc(263)] : SharedImageManager::ProduceOverlay: Trying to Produce a Overlay representation from a non-existent mailbox.
[9932:259:0912/153049.195736:ERROR:shared_image_manager.cc(263)] : SharedImageManager::ProduceOverlay: Trying to Produce a Overlay representation from a non-existent mailbox.
[9932:259:0913/004036.179133:ERROR:shared_image_manager.cc(214)] : SharedImageManager::ProduceSkia: Trying to Produce a Skia representation from a non-existent mailbox.
Hard solution: Delete BraveSoftware folder on ~/Library/Application Support. Using AppCleaner delete all files and folders except Brave Browser app. That should solve your issue.
I just did that, it seems to have fixed the playback problem but introduced some new problems. Since everything is deleted all the extensions were corrupted. I repaired them by re-downloading but some other features still aren’t working, for example, I can no longer play Spotify web player. It asked me to enable secure playback in my browser which I had by default and I double-checked it by disable-enable but that didn’t fix it.
I also lost all my history, all saved passwords, everything, this is a huge setback I would not like to see. You should let me know this will delete everything such that I won’t attempt this fix in the first place.
@Fufski Yes, it erased everything, but I thought you had synced with other machines, so when you synced again you would recover everything. That’s why I said Hard Solution. Sorry about that. To play Spotify you have to enable Widevine.