brave / brave-browser

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

"Brave is not responding" spam - Android 14 / GrapheneOS #33715

Open Peacock365 opened 9 months ago

Peacock365 commented 9 months ago

Description

Brave is frequently spamming "Brave is not responding" here, it looks exactly like this Google Chrome prompt (replace "Chrome" with "Brave"):

https://i.redd.it/upirfurmd2i61.png

The app starts up slowly, the UI elements are slow to load. Once the app has started, I am being spammed with this message. Brave itself is not unresponsive after the initial slow startup, it just constantly asks me to close the app with this prompt. This issue can't be reproduced at every single restart, but is frequent enough to be annoying.

Steps to reproduce

  1. Open Brave. It immediately starts spamming "Brave is not responding".

Actual result

Brave spams this message.

Expected result

Brave should stop spamming this message, start up quicker.

Issue reproduces how often

Not with every restart, but generally easily reproduced.

Version/Channel Information:

Brave Stable, downloaded from the Play Store via the Aurora Store app. Version 1.59.117 (has started with Chromium 117 already though).

Yes.

Not tested.

Not tested.

Device details

Google Pixel 6, Android 14 (has happened before the Android 14 update, under Android 13 too though). GrapheneOS, with no Google Play Services installed.

I can reproduce this on another device with no Google Play Services installed as well. SafeBrowsing is disabled (since I know that SafeBrowsing uses the Google Play Services on Android).

Brave version

1.59.117

Additional information

I have this crash log:

type: ANR
osVersion: google/oriole/oriole:14/UP1A.231005.007/2023101300:user/release-keys
package: com.brave.browser:425911722
process: com.brave.browser
installer: com.aurora.store

activity: com.brave.browser/com.google.android.apps.chrome.Main
cause: ANR Input dispatching timed out (f6f033f com.brave.browser/com.google.android.apps.chrome.Main (server) is not responding. Waited 5000ms for FocusEvent(hasFocus=true))
info: ANR in com.brave.browser (com.brave.browser/com.google.android.apps.chrome.Main)
PID: 22634
Reason: Input dispatching timed out (f6f033f com.brave.browser/com.google.android.apps.chrome.Main (server) is not responding. Waited 5000ms for FocusEvent(hasFocus=true))
Parent: com.brave.browser/com.google.android.apps.chrome.Main
ErrorId: ca8eeb73-d9e9-4a87-99b1-0ae73f029480
Frozen: false
Load: 1.35 / 1.43 / 1.33
----- Output from /proc/pressure/memory -----
some avg10=1.48 avg60=0.31 avg300=0.06 total=5450031
full avg10=0.14 avg60=0.03 avg300=0.00 total=1873659
----- End output from /proc/pressure/memory -----
----- Output from /proc/pressure/cpu -----
some avg10=8.39 avg60=7.46 avg300=5.42 total=1641445123
----- End output from /proc/pressure/cpu -----
----- Output from /proc/pressure/io -----
some avg10=0.00 avg60=0.00 avg300=0.00 total=57051503
full avg10=0.00 avg60=0.00 avg300=0.00 total=50002962
----- End output from /proc/pressure/io -----

CPU usage from 6ms to 7826ms later (2023-10-18 01:03:38.682 to 2023-10-18 01:03:46.502):
  176% 22634/com.brave.browser: 116% user + 59% kernel / faults: 1324665 minor 4282 major
  46% 1572/system_server: 28% user + 18% kernel / faults: 44626 minor 42 major
  12% 2798/com.android.systemui: 7.5% user + 4.4% kernel / faults: 28320 minor
  9.6% 22744/com.brave.browser:privileged_process0: 5.8% user + 3.7% kernel / faults: 27125 minor 14 major
  8.7% 712/surfaceflinger: 6% user + 2.6% kernel / faults: 94 minor
  6.2% 22697/com.brave.browser_zygote: 0.3% user + 5.8% kernel / faults: 9383 minor
  5.6% 1287/media.swcodec: 4.2% user + 1.4% kernel / faults: 278 minor
  3.9% 4585/com.android.inputmethod.latin: 2.4% user + 1.5% kernel / faults: 9475 minor 3 major
  3.5% 1099/audioserver: 3.5% user + 0% kernel / faults: 5 major
70% TOTAL: 40% user + 27% kernel + 0.2% iowait + 1.1% irq + 0.5% softirq
CPU usage from 68ms to 453ms later (2023-10-18 01:03:38.744 to 2023-10-18 01:03:39.129):
  354% 22634/com.brave.browser: 227% user + 126% kernel / faults: 30992 minor 170 major
    92% 22654/Signal Catcher: 50% user + 42% kernel
    92% 22710/ThreadPoolForeg: 80% user + 12% kernel
    75% 22711/ThreadPoolForeg: 50% user + 25% kernel
    25% 22712/ThreadPoolForeg: 12% user + 12% kernel
    21% 22634/m.brave.browser: 8.4% user + 12% kernel
    21% 22718/ThreadPoolForeg: 12% user + 8.4% kernel
    16% 22682/RenderThread: 8.4% user + 8.4% kernel
    4.2% 22661/binder:22634_2: 4.2% user + 0% kernel
    4.2% 22716/NetworkService: 4.2% user + 0% kernel
  45% 1572/system_server: 22% user + 22% kernel / faults: 724 minor 2 major
    29% 22868/AnrAuxiliaryTas: 12% user + 16% kernel
    3.2% 1651/android.fg: 3.2% user + 0% kernel
    3.2% 1655/android.anim: 3.2% user + 0% kernel
    3.2% 2928/binder:1572_7: 3.2% user + 0% kernel
    3.2% 2929/binder:1572_8: 3.2% user + 0% kernel
   +0% 22881/pool-76-thread-: 0% user + 0% kernel
  25% 22744/com.brave.browser:privileged_process0: 12% user + 12% kernel / faults: 1190 minor 2 major
    8.5% 22849/CompositorGpuTh: 4.2% user + 4.2% kernel
    4.2% 22816/CrGpuMain: 4.2% user + 0% kernel
   +0% 22880/mali-compiler: 0% user + 0% kernel
  11% 712/surfaceflinger: 8.5% user + 2.8% kernel / faults: 1 minor
    5.7% 712/surfaceflinger: 5.7% user + 0% kernel
    2.8% 769/binder:712_1: 2.8% user + 0% kernel
    2.8% 770/binder:712_2: 2.8% user + 0% kernel
    3.8% 22251/ExoPlayer:Playb: 3.8% user + 0% kernel
    3.8% 22273/MediaCodec_loop: 3.8% user + 0% kernel
  2.6% 64/rcuop/6: 0% user + 2.6% kernel
  2.7% 348/decon0_kthread: 0% user + 2.7% kernel
  2.8% 667/sugov:4: 0% user + 2.8% kernel
  2.8% 713/android.hardware.graphics.allocator-V1-service: 0% user + 2.8% kernel / faults: 82 minor
    2.8% 14389/binder:713_5: 0% user + 2.8% kernel
  2.8% 714/android.hardware.graphics.composer@2.4-service: 0% user + 2.8% kernel
    5.7% 795/HwBinder:714_3: 2.8% user + 2.8% kernel
  2.8% 824/android.hardware.power-service.pixel-libperfmgr: 0% user + 2.8% kernel
    2.8% 824/android.hardwar: 0% user + 2.8% kernel
    2.8% 3507/NodeLooperThrea: 0% user + 2.8% kernel
  2.9% 986/statsd: 0% user + 2.9% kernel
    2.9% 1940/statsd.writer: 0% user + 2.9% kernel
  3% 1099/audioserver: 3% user + 0% kernel
    3% 1569/AudioOut_15: 3% user + 0% kernel
  3.2% 1287/media.swcodec: 0% user + 3.2% kernel / faults: 9 minor
72% TOTAL: 44% user + 26% kernel + 0.3% iowait + 0.9% irq + 0.6% softirq

Hopefully you can fix this issue, Brave is a degoogled product and so should work on a degoogled operating system. I have already tried to delete Brave's app cache, to reset its settings, and to force-stop the application from the device settings, none of which improved the situation.

Also Vanadium (default browser of GrapheneOS, also based on Chromium) works without issue, on a similar Chromium version. This problem seems to be Brave-specific and not Chromium-specific.

Thank you for your attention, hope you can see an issue from the log I have provided.

Peacock365 commented 8 months ago

@atuchin-m @deeppandya @arthuredelstein @DJAndries @cypt4 @vadimstruts @bsclifton @mkarolin @cdesouza-chromium @samartnik @jamesmudgett @antonok-edm @petemill @rebron @AlexeyBarabash

Sad that I have to tag all of you guys so that my issue receives any attention at all, for whoever of you feels responsible for this type of bug that is currently rendering Brave unusable in my configuration: Can you make nothing of my crash report? What else do you need? I, the user, am willing to cooperate with you to resolve this issue as quickly as possible.

Peacock365 commented 8 months ago

Hellooooooooooo? Anyone?

Peacock365 commented 8 months ago

Possibly related?

https://github.com/uazo/cromite/discussions/292