icons for running android apps not shown in shelf after discards |
|||||||
Issue descriptionI am running high-memory pressure experiments, which intentionally create tab discards and app kills, and possibly involve kernel OOM kills. After running these for a while, my shelf only contains the "circle" icon and the chrome icon, even though I have four or five Android apps running and can switch among those. I am on ToT as of a few days ago. Please let me know what logs may be useful.
,
Apr 13 2017
Hi, thanks for reporting. If possible /home/user/XXXXXX/log/chrome_XXXXX.log and logcat can be useful. Is any chance I can reproduce this locally (script or test)?
,
Apr 13 2017
I will try to reproduce today. The system is still in that state if you want to take a look, I will IM you the IP address.
,
Apr 13 2017
One strange thing I see is one per 90 seconds "WARNING:arc_session_manager.cc(209)] Provisioning result was already reported. Ignoring additional result 0." Does it mean that Android container gets restarted each time? CC Luis
,
Apr 13 2017
,
Apr 13 2017
No, that's just an effect of the OOM kills. ArcAppLauncher will report provisioning each time it's launched. Since semenzato@'s experiment is killing it repeatedly, you'll see several log statements for it. The container as a whole survives this whole exercise.
,
Apr 13 2017
Yes, also see this (logcat is not interrupted). It seems problem comes from restarting AppLauncher. Will test this case.
,
Apr 13 2017
,
Apr 13 2017
This is actually pretty easy to reproduce, and tt appears that the AppLauncher is killed before other Android apps are. Is this the correct behavior, or are we assigning the wrong kill priority to it?
,
Apr 13 2017
,
Apr 13 2017
Yes as #10 pointed out, the process org.chromium.arc.applauncher is not deemed as "important process" by Chrome so it's not assigned oom_score_adj -1000 Chrome has no knowledge of what Android apps are "important" and what are not. Anybody from ARC++ team want to add a android:persistent="true" to ArcAppLauncher as well?
,
Apr 13 2017
Thank you @cylee for your comment. I will take care about it.
,
Apr 13 2017
,
Apr 26 2017
This was fixed by yusukes@'s ag/2148956
,
Apr 26 2017
I wasn't aware of this bug, but yes, it should be fixed now. nyc-arc M58+ and mnc-arc M60+ will be okay. Will probably merge this into mnc-arc M59 too since the other issue ( crbug.com/706048 ) is marked as P1 M58. Merging the CL to mnc M58 is probably too late but doing so to mnc M59 is probably okay.
,
May 19 2017
khmel@ Trying to verify this bug. Could you provide verification steps?
,
May 19 2017
Try to run apps with heavy memory consumption. At some point you should see that some apps are killed by OOM. In any case shelf should correctly display list of apps. Probably semenzato@ or yusukes@ can provide more details here.
,
May 19 2017
If you have a dev-mode device, please try https://bugs.chromium.org/p/chromium/issues/detail?id=706048#c76 (please note that you need to reboot your device after step #3 to reflect the swap setting change.) At some point, lots of tab/app kill logs will show up in ui.LATEST, but the icons should be still there.
,
Jan 22 2018
|
|||||||
►
Sign in to add a comment |
|||||||
Comment 1 by uekawa@google.com
, Apr 13 2017