View Issue Details

IDProjectCategoryView StatusLast Update
0007020Talerwallet (Android App)public2021-09-23 19:14
Reportersebasjm Assigned ToFlorian Dold  
PriorityhighSeveritycrashReproducibilityalways
Status assignedResolutionopen 
Product Versiongit (master) 
Target Versiongit (master) 
Summary0007020: WalletBackendService gets killed, wallet stays in black background waiting for a response
DescriptionDevice: SM-A510M
OS: Lineage 17.1

Logcat

2021-09-17 03:09:07.489 2650-2678/system_process E/ActivityManager: ANR in net.taler.wallet.fdroid:WalletBackendService
    PID: 17369
    Reason: executing service net.taler.wallet.fdroid/net.taler.wallet.backend.WalletBackendService
    Load: 0.0 / 0.0 / 0.0
    CPU usage from 167066ms to 0ms ago (2021-09-17 03:06:20.264 to 2021-09-17 03:09:07.330):
      33% 2444/surfaceflinger: 20% user + 12% kernel / faults: 689 minor 3 major
      7.1% 2746/irq/570-bhy: 0% user + 7.1% kernel
      4.7% 2650/system_server: 2.8% user + 1.9% kernel / faults: 6176 minor 298 major
      3.5% 10452/kworker/u17:3: 0% user + 3.5% kernel
      1.6% 1397/decon0: 0% user + 1.6% kernel
      1.2% 3278/com.google.android.gms.persistent: 0.9% user + 0.2% kernel / faults: 16006 minor 54 major
      0.8% 15699/kworker/0:3: 0% user + 0.8% kernel
      0.7% 16232/kworker/u17:2: 0% user + 0.7% kernel
      0.7% 2472/adbd: 0.1% user + 0.5% kernel / faults: 4912 minor 38 major
      0.6% 13565/kworker/0:1: 0% user + 0.6% kernel
      0.5% 1394/s3c-fb-vsync: 0% user + 0.5% kernel
      0.5% 15283/com.google.android.googlequicksearchbox:search: 0.4% user + 0% kernel / faults: 19274 minor 856 major
      0.4% 682/kswapd0: 0% user + 0.4% kernel
      0.3% 2841/com.android.systemui: 0.2% user + 0.1% kernel / faults: 1549 minor 64 major
      0.3% 2819/com.android.bluetooth: 0.2% user + 0% kernel / faults: 288 minor 27 major
      0.3% 23632/com.whatsapp: 0.2% user + 0.1% kernel / faults: 848 minor 133 major
      0.3% 1239/mmcqd/0: 0% user + 0.3% kernel
      0.3% 3099/com.android.phone: 0.2% user + 0% kernel / faults: 1049 minor 80 major
      0.2% 8/rcu_preempt: 0% user + 0.2% kernel
      0.2% 2312/logd: 0.1% user + 0.1% kernel / faults: 264 minor 49 major
      0.1% 2500/wificond: 0% user + 0.1% kernel / faults: 51 minor
      0.1% 31750/cfinteractive0: 0% user + 0.1% kernel
      0.1% 2603/dhd_dpc: 0% user + 0.1% kernel
      0% 15365/com.google.android.googlequicksearchbox:interactor: 0% user + 0% kernel / faults: 3756 minor 1503 major
      0.1% 29427/com.google.android.youtube: 0.1% user + 0% kernel / faults: 796 minor 9 major
      0.1% 3602/com.google.android.gms: 0% user + 0% kernel / faults: 1588 minor 100 major
      0.1% 16415/kworker/u16:0: 0% user + 0.1% kernel
      0.1% 3075/com.android.launcher3: 0% user + 0% kernel / faults: 3367 minor 1572 major
      0% 2418/android.hardware.bluetooth@1.0-service: 0% user + 0% kernel / faults: 2 minor
      0% 20878/com.sony.songpal.mdr: 0% user + 0% kernel / faults: 96 minor
      0% 2602/dhd_watchdog_th: 0% user + 0% kernel
      0% 8984/com.google.android.gms.unstable: 0% user + 0% kernel / faults: 832 minor 172 major
      0% 2498/statsd: 0% user + 0% kernel / faults: 24 minor 1 major
      0% 2502/rild: 0% user + 0% kernel / faults: 27 minor 7 major
      0% 15753/kworker/u16:1: 0% user + 0% kernel
      0% 2415/zygote: 0% user + 0% kernel / faults: 781 minor
      0% 2442/lmkd: 0% user + 0% kernel / faults: 4 minor
      0% 25036/com.android.chrome: 0% user + 0% kernel / faults: 429 minor 32 major
      0% 1055/irq/10-bt532_ts: 0% user + 0% kernel
      0% 15835/logcat: 0% user + 0% kernel / faults: 4 minor
      0% 2313/servicemanager: 0% user + 0% kernel / faults: 3 minor
      0% 2386/jbd2/mmcblk0p23: 0% user + 0% kernel
      0% 12285/me.twrp.twrpapp: 0% user + 0% kernel / faults: 413 minor 48 major
      0% 617/ion_noncontig_h: 0% user + 0% kernel
      0% 31336/com.android.webview:sandboxed_process0:org.chromium.content.app.SandboxedPr: 0% user + 0% kernel / faults: 8 minor 1 major
      0% 31744/irq/99-11060000: 0% user + 0% kernel
      0% 1/init: 0% user + 0% kernel / faults: 62 minor 1 major
      0% 1641/ueventd: 0% user + 0% kernel / faults: 46 minor
      0% 2390/android.system.suspend@1.0-service: 0% user + 0% kernel / faults: 56 minor
      0% 2424/android.hardware.health@2.0-service: 0% user + 0% kernel / faults: 8 minor
      0% 6457/installer: 0% user + 0% kernel / faults: 118 minor
      0% 14880/kworker/1:2: 0% user + 0% kernel
      0% 15838/kworker/2:1: 0% user + 0% kernel
      0% 2314/hwservicemanager: 0% user + 0% kernel / faults: 69 minor 3 major
      0% 2414/netd: 0% user + 0% kernel / faults: 127 minor 3 major
      0% 2439/ashmemd: 0% user + 0% kernel / faults: 3 minor 1 major
      0% 2486/keystore: 0% user + 0% kernel / fault
TagsNo tags attached.

Activities

sebasjm

2021-09-17 14:52

developer   ~0018394

debugging the app seems that the WalletBackendService.onCreate is not even called

grote

2021-09-21 09:12

developer   ~0018400

This is most likely an issue introduced by https://git.taler.net/taler-android.git/commit/?id=06f16a7477b337f07526285b65a7f3003b814d33

can you confirm that it works before that commit?

I tried to debug this, but the issue seems to lie with changes in wallet-core, I know little about.

sebasjm

2021-09-21 15:49

developer   ~0018401

Yes! it works in that commit. Oh, the issue was around the corner :)

Thanks!

sebasjm

2021-09-21 17:08

developer   ~0018402

I see that wallet core change the global names from __akono_* to __native_* so there should be used a new version of the JNI interface Akono.
We need to publish a new version of net.taler:akono first with this change https://git.taler.net/akono.git/commit/?id=52d468141e3478523c1373f3bc81fd3a4fbfea72

sebasjm

2021-09-22 18:23

developer   ~0018407

I changed the priority since the android app wont work until this is fixed.

Currently I'm following the steps to build up the android-node-v8 repository but it's taking time (between errors and compile time)

I hope to have some a confirmation that this is the correct fix soon.

sebasjm

2021-09-22 22:05

developer   ~0018408

I was able to build the akono lib using android ndk 19.2.5345600

But I blocked at this error, probably I have missed a step in the build process? I don't know

2021-09-22 16:34:15.638 32497-32497/net.taler.wallet.nightly V/AkonoJni: putting module code (kotlin)
2021-09-22 16:34:15.639 32497-32497/net.taler.wallet.nightly D/akono-jni.cpp: in putModuleCodeNative
2021-09-22 16:34:15.654 32497-32497/net.taler.wallet.nightly D/akono-jni.cpp: registered module
2021-09-22 16:34:18.377 32497-32529/net.taler.wallet.nightly D/akono-jni.cpp: akono.js:24
      sendMessage: akono.sendMessage,
                         ^
    
    TypeError: Cannot read property 'sendMessage' of undefined
        at akono.js:24:22
        at NativeModule.compile (internal/bootstrap/loaders.js:300:5)
        at NativeModule.compileForPublicLoader (internal/bootstrap/loaders.js:217:8)
        at Function.Module._load (internal/modules/cjs/loader.js:538:16)
        at Module.require (internal/modules/cjs/loader.js:683:19)
        at require (internal/modules/cjs/helpers.js:16:16)
        at eval (eval at global.__native_run ([eval]:1:78), <anonymous>:1:1)
        at eval (<anonymous>)
        at global.__native_run ([eval]:1:78)
2021-09-22 16:34:18.494 2651-4693/system_process I/ActivityManager: Process net.taler.wallet.nightly:WalletBackendService (pid 32497) has died: fore BTOP

sebasjm

2021-09-23 17:23

developer   ~0018409

finally made it working, the problem was that the I was using the code of androidbuild since was better documented but the code from master, with some changes from the androidbuild branch, is the working one.
I have a working akono.aar lib but I'm not able to publish it, @grote can you?

I'm going to push one more change into the taler-android repo since the wallet need to be initialized before calling it.

sebasjm

2021-09-23 19:14

developer   ~0018410

i have an android wallet working!
wallet core release 0.8.1 has a bug, a new release should be made with the latest version: this if is bogus

https://git.taler.net/wallet-core.git/tree/v0.8.1/taler-wallet-embedded.js?h=prebuilt#n20972

Issue History

Date Modified Username Field Change
2021-09-17 14:50 sebasjm New Issue
2021-09-17 14:50 sebasjm Status new => assigned
2021-09-17 14:50 sebasjm Assigned To => grote
2021-09-17 14:52 sebasjm Note Added: 0018394
2021-09-21 09:12 grote Note Added: 0018400
2021-09-21 15:49 sebasjm Note Added: 0018401
2021-09-21 15:49 sebasjm Assigned To grote => Florian Dold
2021-09-21 17:08 sebasjm Note Added: 0018402
2021-09-22 18:23 sebasjm Priority normal => high
2021-09-22 18:23 sebasjm Severity minor => crash
2021-09-22 18:23 sebasjm Note Added: 0018407
2021-09-22 22:05 sebasjm Note Added: 0018408
2021-09-23 17:23 sebasjm Note Added: 0018409
2021-09-23 19:14 sebasjm Note Added: 0018410