celzero / rethink-app

DNS over HTTPS / DNS over Tor / DNSCrypt client, WireGuard proxifier, firewall, and connection tracker for Android.
https://rethinkfirewall.com/
Apache License 2.0
3.03k stars 154 forks source link

New kind of crash when pressing STOP #1696

Open PikaGamer8 opened 2 months ago

PikaGamer8 commented 2 months ago

Hello, there seems to be a new kind of crash when you press on STOP. This is different than this one:

https://github.com/celzero/rethink-app/issues/1539

This doesn't crash the app instantly, it instead hangs for like 6 seconds before then crashing.

Here is the log:

ANR in com.celzero.bravedns (com.celzero.bravedns/.ui.HomeScreenActivity)
PID: 7366
Reason: Input dispatching timed out (3d5be13 com.celzero.bravedns/com.celzero.bravedns.ui.HomeScreenActivity (server) is not responding. Waited 10001ms for FocusEvent(hasFocus=true))
Parent: com.celzero.bravedns/.ui.HomeScreenActivity
ErrorId: 3f42e24a-78e6-41a8-a89a-a84a08d04900
Frozen: s[false] g[false]
Load: 17.88 / 18.89 / 18.26
------ Current CPU Core Info ------
- offline :
- online : 0-7
- AP Temp = 488
                             0           1           2           3           4           5           6           7
------------------------------------------------------------------------------------------------------------------
scaling_cur_freq       2002000     2002000     2002000     2002000     2002000     2002000     2208000     2208000
scaling_governor  energy_awareenergy_awareenergy_awareenergy_awareenergy_awareenergy_awareenergy_awareenergy_aware
scaling_max_freq       2002000     2002000     2002000     2002000     2002000     2002000     2208000     2208000
------------------------------------------------------------------------------------------------------------------
----- Output from /proc/pressure/memory -----
some avg10=4.53 avg60=2.21 avg300=1.82 total=2980404283
full avg10=3.93 avg60=1.66 avg300=1.19 total=2054108209
----- End output from /proc/pressure/memory -----
----- Output from /proc/pressure/cpu -----
some avg10=10.96 avg60=12.25 avg300=12.90 total=32467681908
----- End output from /proc/pressure/cpu -----
----- Output from /proc/pressure/io -----
some avg10=0.69 avg60=0.63 avg300=0.64 total=2252655444
full avg10=0.24 avg60=0.26 avg300=0.19 total=1441618929
----- End output from /proc/pressure/io -----
CPU usage from 4ms to 5168ms later (2024-09-12 15:06:16.731 to 2024-09-12 15:06:21.894):
  84% 1543/system_server: 55% user + 29% kernel / faults: 47440 minor 1323 major
  66% 23188/com.google.android.apps.messaging: 55% user + 11% kernel / faults: 15193 minor 16 major
  49% 22939/com.f0x1d.logfox: 35% user + 14% kernel / faults: 13816 minor 15 major
  42% 146/kswapd0: 0% user + 42% kernel
  18% 2160/com.android.systemui: 11% user + 7% kernel / faults: 8324 minor 1063 major
  14% 29314/com.google.android.gms.persistent: 10% user + 4.1% kernel / faults: 13827 minor 7264 major
  9.3% 1252/surfaceflinger: 5.2% user + 4.1% kernel / faults: 560 minor 162 major
  7.4% 547/lmkd: 1.3% user + 6% kernel
  5.6% 546/logd: 1.3% user + 4.2% kernel / faults: 208 minor 31 major
  5% 2667/com.android.bluetooth: 2.7% user + 2.3% kernel / faults: 5884 minor 1030 major
51% TOTAL: 26% user + 21% kernel + 0.7% iowait + 1.8% irq + 0.3% softirq
CPU usage from 1847ms to 2760ms later (2024-09-12 15:06:18.573 to 2024-09-12 15:06:19.487):
  86% 1543/system_server: 28% user + 57% kernel / faults: 3023 minor 110 major
    40% 23529/AnrAuxiliaryTas: 8.6% user + 31% kernel
    25% 1549/Signal Catcher: 17% user + 8.6% kernel
    2.8% 1551/system_server: 0% user + 2.8% kernel
    2.8% 1588/android.ui: 0% user + 2.8% kernel
    2.8% 1619/PowerManagerSer: 0% user + 2.8% kernel
    2.8% 1723/InputReader: 0% user + 2.8% kernel
    2.8% 4975/binder:1543_20: 0% user + 2.8% kernel
    2.8% 11172/CFMS Handler Th: 0% user + 2.8% kernel
    2.8% 23521/AnrConsumer: 0% user + 2.8% kernel
  72% 22939/com.f0x1d.logfox: 47% user + 25% kernel / faults: 382 minor
    18% 22965/RenderThread: 14% user + 3.6% kernel
    18% 22974/mali-cmar-backe: 7.2% user + 10% kernel
    14% 22939/om.f0x1d.logfox: 10% user + 3.6% kernel
    10% 22978/DefaultDispatch: 7.2% user + 3.6% kernel
    3.6% 22980/DefaultDispatch: 3.6% user + 0% kernel
    3.6% 22986/DefaultDispatch: 3.6% user + 0% kernel
  58% 5251/com.samsung.android.honeyboard: 38% user + 19% kernel / faults: 5952 minor 871 major
    48% 5265/Signal Catcher: 35% user + 12% kernel
    3.2% 19091/mali-cmar-backe: 3.2% user + 0% kernel
    3.2% 21269/binder:5251_5: 0% user + 3.2% kernel
    3.2% 28911/AudioTrack: 0% user + 3.2% kernel
  7.1% 547/lmkd: 2.3% user + 4.7% kernel
    7.1% 547/lmkd: 2.3% user + 4.7% kernel
  8.3% 1252/surfaceflinger: 5.5% user + 2.7% kernel
    2.7% 1252/surfaceflinger: 2.7% user + 0% kernel
    2.7% 1290/binder:1252_2: 2.7% user + 0% kernel
    2.7% 1326/TimerDispatch: 0% user + 2.7% kernel
  4.7% 546/logd: 2.3% user + 2.3% kernel / faults: 1 minor
    2.3% 562/logd.writer: 2.3% user + 0% kernel
  5.8% 2140/com.android.phone: 2.9% user + 2.9% kernel / faults: 22 minor
    2.9% 2140/m.android.phone: 2.9% user + 0% kernel
    2.9% 2910/binder:2140_C: 2.9% user + 0% kernel
  1% 1/init: 1% user + 0% kernel
    1% 452/init: 0% user + 1% kernel
  1% 13/rcu_preempt: 0% user + 1% kernel
  2.1% 248/fast_switch_pos: 0% user + 2.1% kernel
  2.1% 249/thermal_BIG: 0% user + 2.1% kernel
  2.1% 253/thermal_ISP: 0% user + 2.1% kernel
  2.1% 326/crtc0_kthread: 0% user + 2.1% kernel
  2.7% 1154/android.hardware.graphics.composer@2.4-service: 0% user + 2.7% kernel
    2.7% 1318/HwBinder:1154_3: 0% user + 2.7% kernel
  2.7% 1169/android.hardware.power.samsung-service: 0% user + 2.7% kernel
  2.8% 1436/rild: 0% user + 2.8% kernel
  3% 2667/com.android.bluetooth: 3% user + 0% kernel / faults: 1 minor 7 major
  3% 2901/mxlog_thread: 0% user + 3% kernel
  3.1% 3127/loop47: 0% user + 3.1% kernel
  3.1% 3137/kworker/0:3-events: 0% user + 3.1% kernel
  3.1% 4647/com.sec.android.diagmonagent: 0% user + 3.1% kernel / faults: 121 minor 65 major
  3.6% 20935/com.samsung.android.heartplugin:persistent: 0% user + 3.6% kernel / faults: 6 minor 142 major
    3.6% 21225/DefaultDispatch: 0% user + 3.6% kernel
  3.6% 21239/kworker/7:1H-kverityd: 0% user + 3.6% kernel
  3.6% 23029/kworker/6:9H-kverityd: 0% user + 3.6% kernel
  3.9% 27538/kworker/u17:2-kbase_pm_shader_powerof: 0% user + 3.9% kernel
  4% 30949/kworker/u17:0-kbase_pm_poweroff_wait: 0% user + 4% kernel
30% TOTAL: 13% user + 13% kernel + 1.4% iowait + 1.6% irq + 0.2% softirq

Thanks for the support.

ignoramous commented 1 month ago

Looks like an ANR (activity not responding) error. Unsure from the logs you shared what's causing it. We've improved a bunch of things around START / STOP in v055o, the next version. Hopefully, this ANR has also been fixed along with that.