New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 723953 link

Starred by 1 user

Issue metadata

Status: Duplicate
Owner:
OOO until Feb 4th
Closed: Jun 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocked on:
issue 711708



Sign in to add a comment

Java assertion error in UmaUtils#getForegroundStartTime()

Project Member Reported by pkotw...@chromium.org, May 18 2017

Issue description

The assertion error occurs if you:
1) Launch Chrome
2) Quickly move to recents

The assertion error occurs because ChromeActivity#onDeferredStartup() can be called prior to ChromeActivity#onStartWithNative()

In particular, the following occurs:
NativeInitializationController#onStart()
NativeInitializationController#onStop()
NativeInitializationController#onNativeInitializationComplete()
....
eventually
NativeInitializationController#onStart()

05-18 00:40:01.286 14375 14375 W System.err: java.lang.AssertionError
05-18 00:40:01.286 14375 14375 W System.err: 	at org.chromium.chrome.browser.metrics.UmaUtils.getForegroundStartTime(UmaUtils.java:98)
05-18 00:40:01.287 14375 14375 W System.err: 	at org.chromium.chrome.browser.ChromeActivity.postDeferredStartupIfNeeded(ChromeActivity.java:2066)
05-18 00:40:01.287 14375 14375 W System.err: 	at org.chromium.chrome.browser.ChromeActivity$6.onPageLoadFinished(ChromeActivity.java:614)
05-18 00:40:01.287 14375 14375 W System.err: 	at org.chromium.chrome.browser.tab.Tab.didFinishPageLoad(Tab.java:1523)
05-18 00:40:01.287 14375 14375 W System.err: 	at org.chromium.chrome.browser.tab.TabWebContentsObserver.didFinishLoad(TabWebContentsObserver.java:145)
05-18 00:40:01.287 14375 14375 W System.err: 	at org.chromium.content.browser.webcontents.WebContentsObserverProxy.didFinishLoad(WebContentsObserverProxy.java:169)
05-18 00:40:01.287 14375 14375 W System.err: 	at org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method)
05-18 00:40:01.287 14375 14375 W System.err: 	at org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:41)
05-18 00:40:01.287 14375 14375 W System.err: 	at android.os.Handler.dispatchMessage(Handler.java:102)
05-18 00:40:01.287 14375 14375 W System.err: 	at android.os.Looper.loop(Looper.java:148)
05-18 00:40:01.287 14375 14375 W System.err: 	at android.app.ActivityThread.main(ActivityThread.java:5417)
05-18 00:40:01.287 14375 14375 W System.err: 	at java.lang.reflect.Method.invoke(Native Method)
05-18 00:40:01.287 14375 14375 W System.err: 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
05-18 00:40:01.287 14375 14375 W System.err: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

 
Cc: pkotw...@chromium.org
Owner: wnwen@chromium.org
Status: Assigned (was: Untriaged)
Assigning to wnwen@ who added the assertion in UmaUtils#getForegroundStartTime()

Comment 2 by wnwen@chromium.org, May 18 2017

Blockedon: 711708
This is related to issue 711708, we will want to decide what to do with the metrics and how to deal with this assert.
Components: Internals>Metrics

Comment 4 by wnwen@chromium.org, Jun 12 2017

Mergedinto: 711708
Status: Duplicate (was: Assigned)

Sign in to add a comment