Akylas / alpimaps

Offline map app iOS/Android
https://www.akylas.fr
MIT License
84 stars 2 forks source link

Crash #14

Closed ddanon closed 2 months ago

ddanon commented 1 year ago

Background

Device

Pixel 7

OS

GrapheneOS

Alpi Version

2.4.1.250

Symptom list (checked = solved)

Log Dump

type: ANR
osVersion: google/panther/panther:14/UP1A.231105.003/2023111500:user/release-keys
package: akylas.alpi.maps:250
process: akylas.alpi.maps
installer: com.machiav3lli.fdroid

activity: akylas.alpi.maps/com.tns.NativeScriptActivity
cause: ANR Input dispatching timed out (ddea2f4 akylas.alpi.maps/com.tns.NativeScriptActivity (server) is not responding. Waited 5001ms for MotionEvent)
info: ANR in akylas.alpi.maps (akylas.alpi.maps/com.tns.NativeScriptActivity)
PID: 31344
Reason: Input dispatching timed out (ddea2f4 akylas.alpi.maps/com.tns.NativeScriptActivity (server) is not responding. Waited 5001ms for MotionEvent)
Parent: akylas.alpi.maps/com.tns.NativeScriptActivity
ErrorId: 0a9fbb69-0d32-458a-8418-824346c1d307
Frozen: false
Load: 3.73 / 3.69 / 3.45
----- Output from /proc/pressure/memory -----
some avg10=0.87 avg60=1.26 avg300=2.45 total=306452217
full avg10=0.69 avg60=0.78 avg300=1.61 total=190720339
----- End output from /proc/pressure/memory -----
----- Output from /proc/pressure/cpu -----
some avg10=8.79 avg60=9.10 avg300=9.61 total=5570184223
----- End output from /proc/pressure/cpu -----
----- Output from /proc/pressure/io -----
some avg10=0.19 avg60=0.38 avg300=0.82 total=173830588
full avg10=0.14 avg60=0.23 avg300=0.50 total=108393718
----- End output from /proc/pressure/io -----

CPU usage from 23484ms to -1ms ago (2023-11-17 13:30:45.415 to 2023-11-17 13:31:08.899):
  67% 31344/akylas.alpi.maps: 54% user + 12% kernel / faults: 92692 minor 1937 major
  43% 1434/system_server: 31% user + 12% kernel / faults: 14337 minor 342 major
  27% 737/surfaceflinger: 19% user + 7.8% kernel / faults: 138 minor 73 major
  10% 739/android.hardware.composer.hwc3-service.pixel: 5.7% user + 4.3% kernel / faults: 76 minor 65 major
  6.8% 11095/org.unifiedpush.distributor.nextpush: 4.9% user + 1.9% kernel / faults: 2868 minor 811 major
  1.9% 6609/com.android.providers.media.module: 1.1% user + 0.8% kernel / faults: 3071 minor 1039 major
  4.3% 93/kswapd0: 0% user + 4.3% kernel
  3.3% 337/decon0_kthread: 0% user + 3.3% kernel
  3.3% 12414/net.mullvad.mullvadvpn:mullvadvpn_daemon: 0.8% user + 2.4% kernel / faults: 15 minor 10 major
  3.1% 1115/samsung.hardware.media.c2@1.0-service: 2% user + 1% kernel / faults: 87 minor 96 major
31% TOTAL: 19% user + 10% kernel + 0.2% iowait + 1.3% irq + 0.6% softirq
CPU usage from 45ms to 540ms later (2023-11-17 13:31:08.944 to 2023-11-17 13:31:09.439):
  131% 1434/system_server: 67% user + 64% kernel / faults: 1098 minor 27 major
    47% 3506/AnrAuxiliaryTas: 14% user + 32% kernel
    24% 11905/binder:1434_14: 17% user + 7.4% kernel
    12% 14505/binder:1434_16: 7.4% user + 4.9% kernel
    9.9% 1434/system_server: 4.9% user + 4.9% kernel
    9.9% 2815/binder:1434_5: 4.9% user + 4.9% kernel
    4.9% 3748/binder:1434_E: 2.4% user + 2.4% kernel
    2.4% 1620/android.ui: 2.4% user + 0% kernel
    2.4% 1911/InputDispatcher: 0% user + 2.4% kernel
    2.4% 1912/InputReader: 0% user + 2.4% kernel
    2.4% 11733/binder:1434_13: 2.4% user + 0% kernel
  193% 31344/akylas.alpi.maps: 141% user + 51% kernel / faults: 12109 minor 20 major
    94% 31344/kylas.alpi.maps: 90% user + 4.2% kernel
    94% 31372/Signal Catcher: 51% user + 42% kernel
  39% 737/surfaceflinger: 28% user + 10% kernel / faults: 10 minor 20 major
    13% 737/surfaceflinger: 8.7% user + 4.3% kernel
    13% 771/RenderEngine: 10% user + 2.1% kernel
    4.3% 807/mali-cpu-comman: 2.1% user + 2.1% kernel
    4.3% 825/app: 2.1% user + 2.1% kernel
    2.1% 768/binder:737_1: 2.1% user + 0% kernel
    2.1% 805/mali-event-hand: 0% user + 2.1% kernel
    2.1% 821/TimerDispatch: 2.1% user + 0% kernel
    2.1% 836/surfaceflinger: 2.1% user + 0% kernel
  26% 2732/com.android.systemui: 15% user + 10% kernel / faults: 30 minor 16 major
    15% 2836/RenderThread: 10% user + 5.2% kernel
    7.9% 2732/ndroid.systemui: 2.6% user + 5.2% kernel
    2.6% 20435/binder:2732_E: 0% user + 2.6% kernel
  8.8% 739/android.hardware.composer.hwc3-service.pixel: 6.6% user + 2.2% kernel / faults: 1 minor 1 major
    11% 2030/binder:739_8: 6.6% user + 4.4% kernel
  4.2% 337/decon0_kthread: 0% user + 4.2% kernel
  4.4% 865/android.hardware.power-service.pixel-libperfmgr: 2.2% user + 2.2% kernel
  4.9% 1288/irq/503-fts_ts: 0% user + 4.9% kernel
  2% 1/init: 2% user + 0% kernel / faults: 1 minor 1 major
    2% 1/init: 2% user + 0% kernel
  2% 50/rcuop/4: 0% user + 2% kernel
  2% 61/ksoftirqd/6: 0% user + 2% kernel
  2.1% 350/thermal_BIG: 0% user + 2.1% kernel
  2.1% 674/sugov:0: 0% user + 2.1% kernel
  2.2% 818/mali_kbase_csf_: 0% user + 2.2% kernel
  2.3% 1020/netd: 0% user + 2.3% kernel / faults: 22 minor
   +0% 3512/Dns_111_10270: 0% user + 0% kernel
   +0% 3517/Dns_111_10270: 0% user + 0% kernel
  2.3% 1115/samsung.hardware.media.c2@1.0-service: 2.3% user + 0% kernel
    2.3% 10740/samsung.hardwar: 0% user + 2.3% kernel
  2.5% 1481/twoshay: 2.5% user + 0% kernel
    2.5% 1809/binder:1481_2: 2.5% user + 0% kernel
  2.6% 2944/android.hardware.input.processor-service: 2.6% user + 0% kernel
    2.6% 2948/classifier_pool: 2.6% user + 0% kernel
  3.9% 12414/net.mullvad.mullvadvpn:mullvadvpn_daemon: 3.9% user + 0% kernel
57% TOTAL: 33% user + 22% kernel + 1.3% irq + 0.5% softirq
farfromrefug commented 1 year ago

@ddanon thanks for the report I will fix the layout issue. About the crash can you describe when it happened ? What were you doing ?

ddanon commented 1 year ago

Awesome, thank you! Leading up to the crash I was familiarizing myself with the UI and pushed the button circled in the new image above (for some reason on mobile I can't attach an image to a comment). I get no visible response and a near-instant crash. I was able to pull the logs after doing this twice in a span of ~10 seconds.

farfromrefug commented 1 year ago

@ddanon indeed it crashes ! Will fix it. thanks a lot. As for other layers not showing it is not normal. Just tested for example 4umaps and cartodb they work (some other might not br working anymore, hard to track them all)

ddanon commented 1 year ago

Awesome! Thanks for the prompt responses. Can confirm, 4umaps and cartodb work on my side.

I'd love to pitch in where I can. I'll go through the map list over the weekend and make a quick note of which ones work and which ones don't. If I get to it I'll try to find where the list is in the code and edit out the ones that no longer work.

farfromrefug commented 1 year ago

@ddanon that is really nice. Where do you live? Alpi maps is with offline map data which can be generated. It brings map,hillshading,routing, all that offline. I could generate it for you

ddanon commented 1 year ago

Sorry for the delay here! Holidays and work travel got in the way.

I mostly want these maps for backpacking trips in the Western US (Arizona, Colorado, Utah, Idaho, etc.). I have been looking at the data_generator but haven't put the time in to generate anything yet.