High CPU usage while playing Youtube, completely cripples playback

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?

  1. Open Brave in normal mode
  2. Playing any Youtube video
  3. 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.

4 Likes

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

1 Like

@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)

Screenshots:




Built-in Task Manager:
Screen Shot 2021-09-12 at 18.34.37

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.

Here is all the information under brave://gpu

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.

Graphics Feature Status

  • Canvas: Hardware accelerated
  • Compositing: Hardware accelerated
  • Metal: Disabled
  • Multiple Raster Threads: Enabled
  • Out-of-process Rasterization: Hardware accelerated
  • OpenGL: Enabled
  • Rasterization: Hardware accelerated
  • Skia Renderer: Enabled
  • Video Decode: Hardware accelerated
  • WebGL: Hardware accelerated
  • WebGL2: Hardware accelerated

Driver Bug Workarounds

  • adjust_src_dst_region_for_blitframebuffer
  • clamp_texture_base_level_and_max_level
  • decode_encode_srgb_for_generatemipmap
  • disable_2d_canvas_auto_flush
  • enable_webgl_timer_query_extensions
  • get_frag_data_info_bug
  • pack_parameters_workaround_with_pack_buffer
  • regenerate_struct_names
  • remove_dynamic_indexing_of_swizzled_vector
  • remove_invariant_and_centroid_for_essl3
  • set_zero_level_before_generating_mipmap
  • unfold_short_circuit_as_ternary_operation
  • unpack_alignment_workaround_with_unpack_buffer
  • use_intermediary_for_copy_texture_image
  • use_unused_standard_shared_blocks
  • disabled_extension_GL_KHR_blend_equation_advanced
  • disabled_extension_GL_KHR_blend_equation_advanced_coherent
  • disabled_extension_GL_MESA_framebuffer_flip_y

What about the Log Messages at the bottom of the page? That’s an important part.

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.195730:ERROR:skia_output_device_buffer_queue.cc(352)] : Invalid 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:0912/153049.195741:ERROR:skia_output_device_buffer_queue.cc(352)] : Invalid 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.

I had synced with other devices but they have different tabs so the open tabs are unrecoverable. Either way, at least now I have it working.

@Fufski Glad to know that it is working now.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.