New issue
Advanced search Search tips

Issue 849946 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

Chrome ANR -- BackgroundTaskJobService

Issue description

Steps to reproduce the problem:
NO

What is the expected behavior?
No ANR at all

What went wrong?
at java.lang.Object.wait!(Native method)
  - waiting on <0x03a727e5> (a java.lang.Object)
  at java.lang.Thread.parkFor$(Thread.java:2160)
  - locked <0x03a727e5> (a java.lang.Object)
  at sun.misc.Unsafe.park(Unsafe.java:325)
  at java.util.concurrent.locks.LockSupport.park(LockSupport.java:161)
  at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:840)
  at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:994)
  at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1303)
  at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:203)
  at org.chromium.components.signin.AccountManagerFacade.getGoogleAccounts(AccountManagerFacade.java:37)
  at org.chromium.components.signin.AccountManagerFacade.tryGetGoogleAccounts(AccountManagerFacade.java:47)
  at org.chromium.components.signin.AccountManagerFacade.getAccountFromName(AccountManagerFacade.java:61)
  at org.chromium.chrome.browser.signin.OAuth2TokenService.hasOAuth2RefreshToken(OAuth2TokenService.java:39)
  at org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native method)
  at org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:9)
  at android.os.Handler.dispatchMessage(Handler.java:102)

WebStore page: 

Did this work before? N/A 

Chrome version: 67.0.3396.68  Channel: stable
OS Version: 6 & 7
Flash Version:
 
Chrome_ANR_BackgroundTaskJobService.zip
6.4 MB Download
Cc: bsazonov@chromium.org pnangunoori@chromium.org
Labels: Needs-triage-Mobile Triaged-Mobile
bsazonov@ -- Could you please look into this issue as the AccountManagerFacade.java is seen from the logs. If there is nothing to do from this file, could you please help us in routing this issue to the possible dev.

Thanks in advance!
Owner: bsazonov@chromium.org
Status: Assigned (was: Unconfirmed)
I'll take a look at this.
hello, several days passed, is there any update on this issue?
Dear chrome friend, do you have any updates on this issue? 
Sorry for the delay.

How often does the issue occur? Do you have any specific reproduction steps?

The root cause: some Chrome APIs are designed in a way that they request account list synchronously. Sometimes Google Play services are slow to return the account list (especially after an update). If it takes more than 5 seconds - ANR will be shown.

I have an idea how this can be mitigated, but it's a rather large change, so it won't be in M69, sorry.
Before answering your questions, I’d introduce our quality system, so you will understand how we works.
The MIUI Quality System(MQS), is a platform to monitoring errors like crashes, ANRs, OOMs, etc. Once our user faces any kind of problem, a background service get the necessary data(log snapshot and device infos, etc.) and report to the MQS platform with user’s permission automatically and anonymously. 
While the platform found a certain issue has influenced a certain number of users, it create a Jira Issue automatically, and assign to me or someone else. 

Thus, some information can not be provided, like reproduce steps, because the problem occurred during user’s daily use, not by labs or testing team.
Moreover, we can not recall a user to provide more information like screenshot, because all the process is automatically and anonymously.
For other information, I’d send you a package of logs in attach.

So far, it has influenced over thousand users
MIUIGLOBAL-10876.zip
9.0 MB Download
Ref. jira.n.xiaomi.com/browse/MIUIGLOBAL-10876
internal link as associated mark.
Components: -Platform>Apps Services>SignIn
Quick update - I've landed several changes to fix these ANRs: https://crrev.com/c/1231935, https://crrev.com/c/1234233, https://crrev.com/c/1238559. These CLs should roll out in M-71.

Sign in to add a comment