Apkd-bridge eating up all the RAM

REPRODUCIBILITY: n/a (not sure what are the steps, but I believe I got this problem in the past once, so fairly rare)
OS VERSION: 4.4.0.72
HARDWARE: XA2
UI LANGUAGE: French
REGRESSION: not sure

DESCRIPTION:

The process apkd-bridge used more than 1Gb of RAM, which made the phone slow and apps crashing.
The only Android app I use is this one: https://play.google.com/store/apps/details?id=com.stronglifts.app&hl=en&gl=us

Memory usage before stopping the Android app support:

[defaultuser@XperiaXA2 ~]$ free -m
              total        used        free      shared  buff/cache   available
Mem:           2639        2312          61          37         266         190
Swap:           511         511           0

and after:

[defaultuser@XperiaXA2 ~]$ free -m
              total        used        free      shared  buff/cache   available
Mem:           2639        1131        1336          34         171        1377
Swap:           511         212         299

PRECONDITIONS:

Android app support needs to be enabled.

STEPS TO REPRODUCE:

I have no idea yet about how to reproduce the issue.

EXPECTED RESULT:

RAM usage should stay low for apkd-bridge, especially when no Android apps are running.

ACTUAL RESULT:

+1Gb of RAM was used, even though no Android apps were running.

MODIFICATIONS:

n/a

ADDITIONAL INFORMATION:

Can you reproduce this by doing the same thing with the app?

The apkd-bridge-user process does not show the same behavior?

I’ll check for the apkd-brigde-user process.

For the reproduction, I tried, but it’s not easy.
I did notice one thing, though:
the app can open a link in the (native) web browser and it seemed like that used 300 Mb of RAM that stayed used after closing the browser.
Not sure if it’s really what happened and if it’s the issue I’m facing, though.

1 Like

I just got the same issue.

No, apkd-bridge-user doesn’t show the same behavior:

It seems I can reproduce the issue more frequently since I didn’t reboot this time.
Is there any memory profiler that I could use to give you more info?