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

Issue 671268 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner:
please use my google.com address
Closed: Dec 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 1
Type: Bug



Sign in to add a comment

"org.chromium.chrome.browser.incognito.IncognitoNotificationServiceTest#testSingleRunningChromeTabbedActivity" is flaky

Project Member Reported by chromium...@appspot.gserviceaccount.com, Dec 5 2016

Issue description

"org.chromium.chrome.browser.incognito.IncognitoNotificationServiceTest#testSingleRunningChromeTabbedActivity" is flaky.

This issue was created automatically by the chromium-try-flakes app. Please find the right owner to fix the respective test/step and assign this issue to them. If the step/test is infrastructure-related, please add Infra-Troopers label and change issue status to Untriaged. When done, please remove the issue from Sheriff Bug Queue by removing the Sheriff-Chromium label.

We have detected 3 recent flakes. List of all flakes can be found at https://chromium-try-flakes.appspot.com/all_flake_occurrences?key=ahVzfmNocm9taXVtLXRyeS1mbGFrZXNydwsSBUZsYWtlImxvcmcuY2hyb21pdW0uY2hyb21lLmJyb3dzZXIuaW5jb2duaXRvLkluY29nbml0b05vdGlmaWNhdGlvblNlcnZpY2VUZXN0I3Rlc3RTaW5nbGVSdW5uaW5nQ2hyb21lVGFiYmVkQWN0aXZpdHkM.

Flaky tests should be disabled within 30 minutes unless culprit CL is found and reverted. Please see more details here: https://sites.google.com/a/chromium.org/dev/developers/tree-sheriffs/sheriffing-bug-queues#triaging-auto-filed-flakiness-bugs
 
Looks like the renderer processes are having problems:

Device(06cfe2330074d3a5) 12-05 17:16:03.659   867  1578 I ActivityManager: Process org.chromium.chrome:sandboxed_process1 (pid 1341) has died
Device(06cfe2330074d3a5) 12-05 17:16:03.659   867  1578 W ActivityManager: Scheduling restart of crashed service org.chromium.chrome/org.chromium.content.app.SandboxedProcessService1 in 1000ms
Device(06cfe2330074d3a5) 12-05 17:16:03.669   867   884 I MediaFocusControl:  AudioFocus  abandonAudioFocus() from android.media.AudioManager@297e963eorg.chromium.content.browser.AudioFocusDelegate@2ea10c9f
Device(06cfe2330074d3a5) 12-05 17:16:03.675  1179  1179 D cr_tabmodel: [TabPersistentStore.java:826] Serializing tab lists; counts: 1, 0, 0
Device(06cfe2330074d3a5) 12-05 17:16:03.686   867  1255 I MediaFocusControl:  AudioFocus  abandonAudioFocus() from android.media.AudioManager@297e963eorg.chromium.content.browser.AudioFocusDelegate@101fe9b5
Device(06cfe2330074d3a5) 12-05 17:16:03.689   867  2954 W libprocessgroup: failed to open /acct/uid_10230/pid_1365/cgroup.procs: No such file or directory
Device(06cfe2330074d3a5) 12-05 17:16:03.689   867  2954 I ActivityManager: Process org.chromium.chrome:sandboxed_process2 (pid 1365) has died
Device(06cfe2330074d3a5) 12-05 17:16:03.690   867  2954 W ActivityManager: Scheduling restart of crashed service org.chromium.chrome/org.chromium.content.app.SandboxedProcessService2 in 10970ms
Device(06cfe2330074d3a5) 12-05 17:16:03.708  1179  1179 W cr_ChildProcessConnect: onServiceDisconnected (crash or killed by oom): pid=1341
Device(06cfe2330074d3a5) 12-05 17:16:03.710  1179  1179 D cr_ChildProcLauncher: [ChildProcessLauncher.java:764] stopping child connection: pid=1341
Device(06cfe2330074d3a5) 12-05 17:16:03.716  1179  1179 W cr_ChildProcessConnect: onServiceDisconnected (crash or killed by oom): pid=1365
Device(06cfe2330074d3a5) 12-05 17:16:03.718  1179  1179 D cr_ChildProcLauncher: [ChildProcessLauncher.java:764] stopping child connection: pid=1365
Device(06cfe2330074d3a5) 12-05 17:16:03.738  1179  1179 D cr_ChildProcLauncher: [ChildProcessLauncher.java:114] Allocator freed a connection, sandbox: true, slot: 1
Device(06cfe2330074d3a5) 12-05 17:16:03.743  1179  1179 D cr_ChildProcLauncher: [ChildProcessLauncher.java:114] Allocator freed a connection, sandbox: true, slot: 2

from https://chromium-swarm.appspot.com/task?id=32e89f062b824310
Failing w/ a native crash:

I  301.340s run_tests_on_device(06abe9f5003b6bb2)  detected failure in org.chromium.chrome.browser.incognito.IncognitoNotificationServiceTest#testSingleRunningChromeTabbedActivity. raw output:
I  301.340s run_tests_on_device(06abe9f5003b6bb2)    INSTRUMENTATION_STATUS: numtests=1
I  301.340s run_tests_on_device(06abe9f5003b6bb2)    INSTRUMENTATION_STATUS: stream=
I  301.340s run_tests_on_device(06abe9f5003b6bb2)    org.chromium.chrome.browser.incognito.IncognitoNotificationServiceTest:
I  301.340s run_tests_on_device(06abe9f5003b6bb2)    INSTRUMENTATION_STATUS: id=InstrumentationTestRunner
I  301.340s run_tests_on_device(06abe9f5003b6bb2)    INSTRUMENTATION_STATUS: test=testSingleRunningChromeTabbedActivity
I  301.340s run_tests_on_device(06abe9f5003b6bb2)    INSTRUMENTATION_STATUS: class=org.chromium.chrome.browser.incognito.IncognitoNotificationServiceTest
I  301.340s run_tests_on_device(06abe9f5003b6bb2)    INSTRUMENTATION_STATUS: current=1
I  301.340s run_tests_on_device(06abe9f5003b6bb2)    INSTRUMENTATION_STATUS_CODE: 1
I  301.340s run_tests_on_device(06abe9f5003b6bb2)    INSTRUMENTATION_RESULT: shortMsg=Process crashed.
I  301.340s run_tests_on_device(06abe9f5003b6bb2)    INSTRUMENTATION_CODE: 0

Comment 3 by yosin@chromium.org, Dec 7 2016

Owner: tedc...@chromium.org
Status: Assigned (was: Untriaged)
tedchoc@, could you take look, since you introduced this test[1]?

[1] http://crrev.com/1863453002 Initial tests for the IncognitoNotificationService
Cc: jbudorick@chromium.org
@jbudorick -- I assume these are bots that have no way to symbolize the stack trace?

I see the following:

Device(00e9e39a38d69a81) 12-07 14:48:04.327 32571 32714 E chromium: [ERROR:native_library_runner.cc(46)] Failed to load library (path: /data/app/org.chromium.chrome-1/lib/arm64/content_browser/content_browser.library reason: dlopen failed: library "/data/app/org.chromium.chrome-1/lib/arm64/content_browser/content_browser.library" not found)
Device(00e9e39a38d69a81) 12-07 14:48:04.350 32571 32714 F chromium: [FATAL:init.cc(86)] Check failed: init_function
Device(00e9e39a38d69a81) 12-07 14:48:04.353 32571 32628 F chromium: [FATAL:thread_restrictions.cc(38)] Check failed: false. Function marked as IO-only was called from a thread that disallows IO!  If this thread really should be allowed to make IO calls, adjust the call to base::ThreadRestrictions::SetIOAllowed() in this thread's startup.

Something is definitely going wrong, but I don't know if this test is just tickling some other bug or is actually broken itself without seeing the stack.


Cc: jamescook@chromium.org jam@chromium.org
+jam, +jamescook for the stacks below.

FWIW, this test is creating incognito tabs very quickly and then destroying them, which will cause the incongito profile to be destroyed.  I "suspect" this is hitting some race with the destruction path that we don't normally encounter.

(If you click on the second like in #5 from jbudorick@, search for "testSingleRunningChromeTabbedActivity" and click on the read CRASHED box, you'll see the full output).

Here are what I believe to be a couple relevant stacks:

----------

[FATAL:thread_restrictions.cc(38)] Check failed: false. Function marked as IO-only was called from a thread that disallows IO!  If this thread really should be allowed to make IO calls, adjust the call to base::ThreadRestrictions::SetIOAllowed() in this thread's startup.

  004151cf  base::ThreadRestrictions::AssertIOAllowed()                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  /b/c/b/Android_arm_Builder__dbg_/src/base/threading/thread_restrictions.cc:38
  0040e69f  base::PlatformThread::Join(base::PlatformThreadHandle)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       /b/c/b/Android_arm_Builder__dbg_/src/base/threading/platform_thread_posix.cc:220
  00412907  base::SimpleThread::Join()                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   /b/c/b/Android_arm_Builder__dbg_/src/base/threading/simple_thread.cc:48
  01abb635  service_manager::InProcessNativeRunner::~InProcessNativeRunner()                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             /b/c/b/Android_arm_Builder__dbg_/src/services/service_manager/runner/host/in_process_native_runner.cc:34
  01abb6a3  service_manager::InProcessNativeRunner::~InProcessNativeRunner()  

----------

[FATAL:init.cc(86)] Check failed: init_function. 

1/lib/arm/libchrome.so
  018040a7  content::StartServerOnHandlerThread(base::WeakPtr<content::DevToolsHttpHandler>, base::Thread*, content::DevToolsSocketFactory*, base::FilePath const&, base::FilePath const&, bool)  /b/c/b/Android_arm_Builder__dbg_/src/content/browser/devtools/devtools_http_handler.cc:229
  v------>  scoped_refptr<content::DevToolsAgentHost>::swap(content::DevToolsAgentHost**)                                                                                                         /b/c/b/Android_arm_Builder__dbg_/src/base/memory/ref_counted.h:360
  v------>  scoped_refptr<content::DevToolsAgentHost>::swap(scoped_refptr<content::DevToolsAgentHost>&)                                                                                           /b/c/b/Android_arm_Builder__dbg_/src/base/memory/ref_counted.h:364
  01803751  scoped_refptr<content::DevToolsAgentHost>::operator=(scoped_refptr<content::DevToolsAgentHost>&&)

---------
Cc: roc...@chromium.org
I don't have much to add here -- those stack snippets don't look familiar to me and I can't find the full stacks to see if there's something more relevant above.

+rockot since I see service_manager::InProcessNativeRunner in the first one

attaching the full tombstone to which ted referred
incognito_tombstone.txt
315 KB View Download
Yeah, sorry, those stacks don't look at all familiar to me.

Comment 10 by jam@chromium.org, Dec 8 2016

Owner: roc...@chromium.org
Ken: looks like service manager related?
Yep, looks like BrowserContext creation/destruction racing with render process creation/destruction.
I'm disabling the flaky test in https://codereview.chromium.org/2559203002
Labels: OS-Android
Project Member

Comment 14 by bugdroid1@chromium.org, Dec 8 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/e517dc2eb8f6417e64a15059116e2040b86bb476

commit e517dc2eb8f6417e64a15059116e2040b86bb476
Author: treib <treib@chromium.org>
Date: Thu Dec 08 17:16:07 2016

Disable flaky IncognitoNotificationServiceTest#testSingleRunningChromeTabbedActivity

TBR=rockot@chromium.org,tedchoc@chromium.org

BUG= 671268 

Review-Url: https://codereview.chromium.org/2559203002
Cr-Commit-Position: refs/heads/master@{#437270}

[modify] https://crrev.com/e517dc2eb8f6417e64a15059116e2040b86bb476/chrome/android/javatests/src/org/chromium/chrome/browser/incognito/IncognitoNotificationServiceTest.java

Labels: -Sheriff-Chromium
Issue 674654 has been merged into this issue.
It looks like the same change also broke UndoTabModelTest#testUndoNotSupported
I'm going to re-enable the disabled test, as the flake (and the flake mentioned in #17) should be fixed by https://codereview.chromium.org/2557213002
Correction, upon closer inspection the flake in #17 is something else. Either way, this should be fixed.
Project Member

Comment 20 by bugdroid1@chromium.org, Dec 16 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/289f5bc28ed08151664f28e085ec6d2ed26cb3c6

commit 289f5bc28ed08151664f28e085ec6d2ed26cb3c6
Author: rockot <rockot@chromium.org>
Date: Fri Dec 16 23:37:39 2016

Re-enable IncognitoNotificationServiceTest.testSingleRunningChromeTabbedActivity

BUG= 671268 
TBR=tedchoc@chromium.org

Review-Url: https://codereview.chromium.org/2586603002
Cr-Commit-Position: refs/heads/master@{#439231}

[modify] https://crrev.com/289f5bc28ed08151664f28e085ec6d2ed26cb3c6/chrome/android/javatests/src/org/chromium/chrome/browser/incognito/IncognitoNotificationServiceTest.java

Status: Fixed (was: Assigned)

Sign in to add a comment