brave-browser: [Flatpak] Crash Shortly After Launch

Description

I noticed that OS/Linux/Flatpak was a label for issues over here, so I figured reporting this crash (over from the Flatpak repo) might help with getting this issue the proper visibility. (Do still feel free to look over the original though)

It’s not entirely clear what specifically is causing the issue, but I did notice that it began (for me - I can’t say for the other users) after enabling Brave ads/rewards. Initially, the crash only happened after a few minutes - long enough for me to do some reading about the Brave token system and start to sign up for the Brave wallet… to then be interrupted by a momentary freeze while I was interacting with the form and then experience the crash. After that, each attempt to launch the browser was met with a crash within probably 60 seconds or less and, in that time, my process viewer reveals that Brave very quickly balloons in RAM usage and then seems to terminate after around 10GBs or so. (For context, I have 32GBs available, so it isn’t that my system ran out of RAM.)

Prior to what I mentioned about the Brave ads/rewards, the only thing I really did worthy of mention was open 13 tabs and import some filterlists (though I’m not at all aware of how relevant that is).

Steps to reproduce

  1. Install Brave via flatpak (I’ve had Brave installed for a while but haven’t used it in a long time)
  2. Import filterlists (Not sure if there’s an easy way for me to include which ones here if the overall list is somewhat large)
  3. Opt-in to the Brave ad system in a fresh/home tab
  4. Wait for Brave to implode? (The crash occurs both on the default of X11 and Wayland modes)

(Given that I only have one desktop, I can’t reproduce it on another one, but this was what I did.)

Actual result

When running from the terminal:

/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=brave --file-forwarding com.brave.Browser --ozone-platform-hint=auto --enable-features=UseOzonePlatform,WaylandWindowDecorations --password-store=basic

[2:2:1022/205227.657879:ERROR:CONSOLE(2185)] "[Settings] Appearance Page cannot find use default theme button template", source: chrome://settings/settings.js (2185)
tracing_subscriber - init success
[1022/205253.963518:ERROR:scoped_ptrace_attach.cc(27)] ptrace: Operation not permitted (1)

(Ignore --password-store=basic, I just had that there because Brave was looking for KWallet on my system despite that I keep it turned off.)

Expected result

Ideally, Brave’s RAM usage shouldn’t aggressively increase and the browser shouldn’t be crashing.

Reproduces how often

Easily reproduced

Brave version (brave://version info)

Brave	1.71.114 Chromium: 130.0.6723.58 (Official Build) unknown (64-bit) 
Revision	89c4031c685a4296315a6f421f46275f0b72dd55
OS	Linux
JavaScript	V8 13.0.245.16
User Agent	Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36

Desktop Info:

[!NOTE] OS: Gentoo Linux 2.15 (Completely LLVM18 built & w/ glibc) Kernel: 6.10.9 DE: KDE Plasma 6.1.5 Desktop Session: Wayland RAM: 32GBs @ 3600 MHz

Channel information

  • release (stable)
  • beta
  • nightly

Reproducibility

  • with Brave Shields disabled
  • with Brave Rewards disabled (Turning it back off doesn’t resolve the issue)
  • in the latest version of Chrome

Miscellaneous information

[!NOTE] EDIT: Using flatseal, I was able to enable ptrace support for Brave:

Screenshot:

Image

then subsequently (and temporarily), do: sudo sh -c 'echo 0 > /proc/sys/kernel/yama/ptrace_scope' which lets Brave’s ptrace function, revealing this about the crashes:

[1023/102917.347511:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[1023/102917.347659:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[1023/102917.347774:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[1023/102917.359870:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[1023/102917.360098:ERROR:elf_dynamic_array_reader.h(64)] tag not found

This let the Brave crash folder (finally) get used and the brave://crashes page tells me that the Uploaded Crash Report ID is be160000-9344-cf0c-0000-000000000000.

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Comments: 16 (9 by maintainers)

Most upvoted comments

@ThisNekoGuy

  1. copy Local State file content (~/.config/brave-browser/)
  2. Format it using any JSON formatter like https://jsonviewer.stack.hu/
  3. share regional_filters and list_subscriptions block

Don’t share the full file because it contains sensetive information.

@ThisNekoGuy many thanks for the report. Can you share what’s on your brave://settings/shields/filters ?

  1. be160000-9344-cf0c-0000-000000000000
  2. 911f0000-9344-cf0c-0000-000000000000
  3. f6280000-9344-cf0c-0000-000000000000
  4. a06f1300-9344-cf0c-0000-000000000000
  5. af6f1300-9344-cf0c-0000-000000000000
  6. c16f1300-9344-cf0c-0000-000000000000