brave / brave-browser

Brave browser for Android, iOS, Linux, macOS, Windows.
https://brave.com
Mozilla Public License 2.0
17.9k stars 2.34k forks source link

after upgrade to 1.65.114.0 on mac os 14.4.1, brave crash every minute #37743

Open dolt131943 opened 7 months ago

dolt131943 commented 7 months ago

Description

After updated to 1.65.114.0 on mac os 14.4.1, brave browser crash every 1 min

Steps to Reproduce

  1. open brave
  2. browser any page
  3. brave closed suddenly (keep alive for about 1 min)
  4. reopen brave , brave hint "Restore pages?"
  5. in brave directory "~/Library/Application Support/BraveSoftware/Brave-Browser/Crashpad/completed", there are many *.dmp files
  6. reinstall is not resolve this problem, it always crash.

Actual result:

image

Expected result:

don't be crashed.

Reproduces how often:

always, open then crash interval : about 1 min

Brave version (brave://version info)

Brave 1.65.114 Chromium: 124.0.6367.60 (Official Build) (x86_64) Revision f1e2cbb65e11340d9040d5ef0b0115c7a5206207 OS macOS Version 14.4.1 (Build 23E224)

Version/Channel Information:

Other Additional Information:

Miscellaneous Information:

prase stack info from dump :

Operating system: Mac OS X
                 14.4.1 23E224
CPU: amd64
    family 6 model 158 stepping 10
    12 CPUs

GPU: UNKNOWN

Crash reason:  EXC_BAD_ACCESS / KERN_INVALID_ADDRESS
Crash address: 0x8
Process uptime: 78 seconds

Thread 0 (crashed)
0  Brave Browser Framework + 0x65132e1
   rax = 0x0000000000000000   rdx = 0x0000000000000008
   rcx = 0x0000012800bada90   rbx = 0x00007ff7becb6db8
   rsi = 0x0000000000000000   rdi = 0x0000012800badad8
   rbp = 0x00007ff7becb6e00   rsp = 0x00007ff7becb6d30
    r8 = 0x00007ff85d045800    r9 = 0x0000000000000001
   r10 = 0x00007ff85d0458d8   r11 = 0xffffffffff87d8f0
   r12 = 0x0000000000000018   r13 = 0x00007ff7becb6d48
   r14 = 0x0000012800bada98   r15 = 0x00007ff7becb6d40
   rip = 0x000000011573f2e1
   Found by: given as instruction pointer in context
1  Brave Browser Framework + 0xaf92909
   rbp = 0x00007ff7becb6e50   rsp = 0x00007ff7becb6e10
   rip = 0x000000011a1be909
   Found by: previous frame's frame pointer
......
GreyKaizen commented 7 months ago

Crashing on Fedora as well after last update

botsunny commented 7 months ago

Similar issue on Arch Linux. Launched Brave in the terminal and let it idle for a few minutes. It then crashed and I got the following terminal message:

[4083:4083:0420/160611.350146:ERROR:chrome_browser_cloud_management_controller.cc(161)] Cloud management controller initialization aborted as CBCM is not enabled. Please use the `--enable-chrome-browser-cloud-management` command line flag to enable it if you are not using the official Google Chrome build.
[4128:4128:0420/160619.018231:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
[4128:4128:0420/160620.105254:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!
[4128:4128:0420/160620.107081:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!
[4083:4083:0420/160725.588201:ERROR:publishers_parsing.cc(26)] Publisher data expected to be a list
[0420/160725.634773:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0420/160725.635148:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0420/160725.638989:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0420/160725.642730:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0420/160725.657889:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0420/160725.658415:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0420/160725.662596:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0420/160725.662806:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0420/160725.663020:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0420/160725.663222:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0420/160725.663828:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0420/160725.664051:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0420/160725.665517:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0420/160725.666605:ERROR:process_memory_range.cc(75)] read out of range
[0420/160725.667400:ERROR:process_memory_range.cc(75)] read out of range
[0420/160725.667648:ERROR:process_memory_range.cc(75)] read out of range
[0420/160725.667707:ERROR:process_memory_range.cc(75)] read out of range
[0420/160725.688929:ERROR:process_memory_range.cc(75)] read out of range
[0420/160725.688973:ERROR:process_memory_range.cc(75)] read out of range
[0420/160725.690544:ERROR:process_memory_range.cc(75)] read out of range
[0420/160725.690569:ERROR:process_memory_range.cc(75)] read out of range
[0420/160725.690976:ERROR:process_memory_range.cc(75)] read out of range
[0420/160725.690997:ERROR:process_memory_range.cc(75)] read out of range
[0420/160725.691073:ERROR:process_memory_range.cc(75)] read out of range
[0420/160725.691092:ERROR:process_memory_range.cc(75)] read out of range
fish: Job 1, 'brave' terminated by signal SIGSEGV (Address boundary error)

Kernel: 6.8.7-arch1-1 Brave version: 1:1.65.114-1 (brave-bin from AUR)

Pursu1tOfHapp1ness commented 6 months ago

Also, the same behavior in Ubuntu 23.10. Crashed with the error:

[12905:12905:0422/105555.790496:ERROR:chrome_browser_cloud_management_controller.cc(161)] Cloud management controller initialization aborted as CBCM is not enabled. Please use the `--enable-chrome-browser-cloud-management` command line flag to enable it if you are not using the official Google Chrome build.
[12905:12905:0422/105556.135216:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.ScreenSaver.GetActive: object_path= /org/freedesktop/ScreenSaver: org.freedesktop.DBus.Error.NotSupported: This method is not part of the idle inhibition specification: https://specifications.freedesktop.org/idle-inhibit-spec/latest/

After downgrading to 1.64.122 -> everything is good.

BirbIrl commented 2 months ago

Same issue on Nixos Unstable

[0901/004422.054944:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0901/004422.055014:ERROR:process_memory_range.cc(75)] read out of range
[0901/004422.067409:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[0901/004422.067434:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
/nix/store/yj3nlg5713ir28hh9k2vkzz9f8sf6gmh-brave-1.69.153/bin/.brave-wrapped: line 39: 13531 Trace/breakpoint trap   (core dumped) "$HERE/brave" "$@"

always crashes after 6 seconds of use. issue persists when running without gpu acceleration

BirbIrl commented 2 months ago

Found the culprit in my case. In .config/BraveSoftware/Brave-Browser/Default/Sync Data/LevelDB/ deleting the "000003.log" file fixed it for me. I'd love to share what it looks like for debug purposes but it has sensitive information. i've no idea what the file actually houses or what it does, how to manipulate it - anything. Deleting it and letting brave generate a new one stops it from crashing :D

As for bad news - the file alone isn't enough to crash my browser. generated a new config, slapped in the broken file aaaand it just worked. No idea how anyone would go about fixing this, especially with how hard it is to reproduce