Back to build
Raw log | Switch to full mode | Login

Test 'DiscardsTest.CompareTabDiscardsInfo' completed with the following status(es): 'FAILURE','SUCCESS' Test 'DiscardsTest.CompareTabDiscardsInfo' had the following logs when run: ================================================================================ [ RUN ] DiscardsTest.CompareTabDiscardsInfo Xlib: extension "RANDR" missing on display ":99". [11432:11432:0319/144400.561140:WARNING:password_store_factory.cc(262)] Using basic (unencrypted) store for password storage. See https://chromium.googlesource.com/chromium/src/+/master/docs/linux_password_storage.md for more information about password storage options. (browser_tests:11432): LIBDBUSMENU-GLIB-WARNING **: Unable to get session bus: Unknown or unsupported transport 'disabled' for address 'disabled:' [11432:11432:0319/144400.908756:WARNING:CONSOLE(0)] "HTML Imports is deprecated and will be removed in M73, around March 2019. Please use ES modules instead. See https://www.chromestatus.com/features/5144752345317376 for more details.", source: (0) shm_open() failed: Function not implemented Home directory not accessible: Operation not permitted [11432:11432:0319/144401.207295:WARNING:CONSOLE(442)] "document.registerElement is deprecated and will be removed in M73, around March 2019. Please use window.customElements.define instead. See https://www.chromestatus.com/features/4642138092470272 for more details.", source: chrome://resources/polymer/v1_0/polymer/polymer-micro-extracted.js (442) [11432:11432:0319/144401.395317:WARNING:CONSOLE(2083)] "Element.createShadowRoot is deprecated and will be removed in M73, around March 2019. Please use Element.attachShadow instead. See https://www.chromestatus.com/features/4507242028072960 for more details.", source: chrome://resources/polymer/v1_0/polymer/polymer-mini-extracted.js (2083) ../../chrome/test/base/mojo_web_ui_browser_test.cc:74: Failure Failed Terminating renderer for requesting contextual_search.mojom.ContextualSearchJsApiService interface from subframe Google Test trace: ../../chrome/browser/ui/webui/web_ui_test_handler.cc:93: WebUITestHandler::WaitForResult Stack trace: #0 0x559c6c09c874 StackTraceGetter::CurrentStackTrace() #1 0x559c6c0abe8f testing::internal::UnitTestImpl::CurrentOsStackTraceExceptTop() #2 0x559c6c0ab0dc testing::internal::AssertHelper::operator=() #3 0x559c702f37c4 MojoWebUIBrowserTest::OnInterfaceRequestFromFrame() #4 0x559c6ddf6a35 content::WebContentsImpl::OnInterfaceRequest() #5 0x559c6d7ed86a content::RenderFrameHostImpl::GetInterface() #6 0x559c726c5b93 service_manager::mojom::InterfaceProviderStubDispatch::Accept() #7 0x559c72420548 mojo::internal::MultiplexRouter::ProcessIncomingMessage() #8 0x559c7241f28c mojo::internal::MultiplexRouter::Accept() #9 0x559c7240d8e8 mojo::Connector::DispatchMessage() #10 0x559c7240d106 mojo::Connector::DispatchNextMessageInQueue() #11 0x559c7021b2ac base::TaskAnnotator::RunTask() #12 0x559c7021d94e base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl() #13 0x559c7021e6c9 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoDelayedWork() #14 0x559c7019d65b base::MessagePumpGlib::Run() #15 0x559c7021ef11 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run() #16 0x559c701e00e2 base::RunLoop::Run() #17 0x559c70e72d7f content::RunThisRunLoop() #18 0x559c7ac708d7 WebUITestHandler::WaitForResult() #19 0x559c7ac701c9 WebUITestHandler::RunJavaScriptTestWithResult() #20 0x559c702fa9ba BaseWebUIBrowserTest::RunJavascriptUsingHandler() #21 0x559c702fb360 BaseWebUIBrowserTest::RunJavascriptTest() #22 0x559c702fb0ef BaseWebUIBrowserTest::RunJavascriptTestF() #23 0x559c6bbc075b DiscardsTest_CompareTabDiscardsInfo_Test::RunTestOnMainThread() #24 0x559c70e21497 content::BrowserTestBase::ProxyRunTestOnMainThreadLoop() #25 0x559c7039da9d ChromeBrowserMainParts::PreMainMessageLoopRunImpl() #26 0x559c7039a84c ChromeBrowserMainParts::PreMainMessageLoopRun() #27 0x559c6d473907 content::BrowserMainLoop::PreMainMessageLoopRun() #28 0x559c6dd63cf7 content::StartupTaskRunner::RunAllTasksNow() #29 0x559c6d4701a7 content::BrowserMainLoop::CreateStartupTasks() #30 0x559c6d4799aa content::BrowserMainRunnerImpl::Initialize() #31 0x559c6d46b5ad content::BrowserMain() #32 0x559c6fbfd240 content::RunBrowserProcessMain() #33 0x559c6fbffb33 content::ContentMainRunnerImpl::RunServiceManager() #34 0x559c6fbfec85 content::ContentMainRunnerImpl::Run() #35 0x559c741b4c88 service_manager::Main() #36 0x559c6fbfbb81 content::ContentMain() #37 0x559c70e20bf5 content::BrowserTestBase::SetUp() [11432:11432:0319/144401.946025:INFO:CONSOLE(1328)] "Running TestCase DiscardsTest.CompareTabDiscardsInfo", source: file:///b/s/w/ir/chrome/test/data/webui/test_api.js (1328) [11432:11585:0319/144405.274274:ERROR:bus.cc(393)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") [11432:11517:0319/144407.686815:ERROR:browser_process_sub_thread.cc(217)] Waited 1044 ms for network service [11432:11432:0319/144410.068060:WARNING:pref_notifier_impl.cc(23)] Pref observer found at shutdown. [11432:11432:0319/144410.401309:WARNING:pref_notifier_impl.cc(23)] Pref observer found at shutdown. [ FAILED ] DiscardsTest.CompareTabDiscardsInfo, where TypeParam = and GetParam() = (10572 ms) [ RUN ] DiscardsTest.CompareTabDiscardsInfo Xlib: extension "RANDR" missing on display ":99". [10227:10261:0319/144700.073906:ERROR:bus.cc(393)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") [10227:10227:0319/144700.081544:WARNING:password_store_factory.cc(262)] Using basic (unencrypted) store for password storage. See https://chromium.googlesource.com/chromium/src/+/master/docs/linux_password_storage.md for more information about password storage options. (browser_tests:10227): LIBDBUSMENU-GLIB-WARNING **: Unable to get session bus: Unknown or unsupported transport 'disabled' for address 'disabled:' [10227:10246:0319/144700.192127:WARNING:leveldb_database.cc(106)] Unable to open /b/s/w/itara24N/.org.chromium.Chromium.Yi7DxM/dvhQohy/Default/shared_proto_db: Invalid argument: /b/s/w/itara24N/.org.chromium.Chromium.Yi7DxM/dvhQohy/Default/shared_proto_db: does not exist (create_if_missing is false) [10227:10227:0319/144700.326984:WARNING:CONSOLE(0)] "HTML Imports is deprecated and will be removed in M73, around March 2019. Please use ES modules instead. See https://www.chromestatus.com/features/5144752345317376 for more details.", source: (0) shm_open() failed: Function not implemented Home directory not accessible: Operation not permitted [10227:10227:0319/144700.420326:WARNING:CONSOLE(442)] "document.registerElement is deprecated and will be removed in M73, around March 2019. Please use window.customElements.define instead. See https://www.chromestatus.com/features/4642138092470272 for more details.", source: chrome://resources/polymer/v1_0/polymer/polymer-micro-extracted.js (442) [10227:10227:0319/144700.544209:WARNING:CONSOLE(2083)] "Element.createShadowRoot is deprecated and will be removed in M73, around March 2019. Please use Element.attachShadow instead. See https://www.chromestatus.com/features/4507242028072960 for more details.", source: chrome://resources/polymer/v1_0/polymer/polymer-mini-extracted.js (2083) [10227:10227:0319/144700.642276:INFO:CONSOLE(205)] "Uncaught ReferenceError: d3 is not defined", source: data:text/html;base64,PCEtLQpDb3B5cmlnaHQgMjAxOCBUaGUgQ2hyb21pdW0gQXV0aG9ycy4gQWxsIHJpZ2h0cyByZXNlcnZlZC4KVXNlIG9mIHRoaXMgc291cmNlIGNvZGUgaXMgZ292ZXJuZWQgYnkgYSBCU0Qtc3R5bGUgbGljZW5zZSB0aGF0IGNhbiBiZQpmb3VuZCBpbiB0aGUgTElDRU5TRSBmaWxlLgoKVGhpcyBkb2N1bWVudCBpcyBsb2FkZWQgaW50byBhIDx3ZWJ2aWV3PiBmcm9tIHRoZSBncmFwaF90YWIgZWxlbWVudCBhcyBhIGRhdGE6ClVSTC4gQXMgcmVzdWx0LCB0aGlzIGRvY3VtZW50IG5lZWRzIHRvIGJlIHNlbGYtY29udGFpbmVkLCBoZW5jZSBpbmxpbmUgc2NyaXB0cy4KLS0+CjxodG1sPgogIDxoZWFkPgogICAgPHN0eWxlPgogICAgICBodG1sLAogICAgICBib2R5IHsKICAgICAgICBoZWlnaHQ6IDEwMCU7CiAgICAgIH0KCiAgICAgIGJvZHkgewogICAgICAgIG1hcmdpbjogMDsKICAgICAgfQoKICAgICAgLmxpbmtzIGxpbmUgewogIC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S5yZW1vdmUoKTsKCiAgICAvLyBTZWxlY3QgdGhlIG5vZGVzLCBleGNlcHQgZm9yIGFueSBkZWFkIG9uZXMgdGhhdCBhcmUgc3RpbGwgdHJhbnNpdGlvbmluZy4KICAgIGNvbnN0IG5vZGVzID0gQXJyYXkuZnJvbSh0aGlzLm5vZGVzXy52YWx1ZXMoKSk7CiAgICBjb25zdCBub2RlID0KICAgICAgICB0aGlzLm5vZGVHcm91cF8uc2VsZWN0QWxsKCdjaXJjbGU6bm90KC5kZWFkKScpLmRhdGEobm9kZXMsIGQgPT4gZC5pZCk7CgogICAgLy8gQWRkIG5ldyBub2RlcywgaWYgYW55LgogICAgaWYgKCFub2RlLmVudGVyKCkuZW1wdHkoKSkgewogICAgICBjb25zdCBkcmFnID0gZDMuZHJhZygpOwogICAgICBkcmFnLm9uKCdzdGFydCcsIHRoaXMub25EcmFnU3RhcnRfLmJpbmQodGhpcykpOwogICAgICBkcmFnLm9uKCdkcmFnJywgdGhpcy5vbkRyYWdfLmJpbmQodGhpcykpOwogICAgICBkcmFnLm9uKCdlbmQnLCB0aGlzLm9uRHJhZ0VuZF8uYmluZCh0aGlzKSk7CgogICAgICBjb25zdCBjaXJjbGVzID0gbm9kZS5lbnRlcigpCiAgICAgICAgICAgICAgICAgICAgICAgICAgLmFwcGVuZCgnY2lyY2xlJykKICAgICAgICAgICAgICAgICAgICAgICAgICAuYXR0cigncicsIDcuNSkKICAgICAgICAgICAgICAgICAgICAgICAgICAuYXR0cignZmlsbCcsICdncmVlbicpICAvLyBOZXcgbm9kZXMgYXBwZWFyIGdyZWVuLgogICAgICAgICAgICAgICAgICAgICAgICAgIC5jYWxsKGRyYWcpOwogICAgICBjaXJjbGVzLmFwcGVuZCgndGl0bGUnKTsKCiAgICAgIC8vIFRyYW5zaXRpb24gbmV3IG5vZGVzIHRvIGJsYWNrIG92ZXIgMiBzZWNvbmRzLgogICAgICBjaXJjbGVzLnRyYW5zaXRpb24oKS5kdXJhdGlvbigyMDAwK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llbnRXaWR0aDsKICAgIHRoaXMuaGVpZ2h0XyA9IHRoaXMuc3ZnXy5jbGllbnRIZWlnaHQ7CgogICAgLy8gUmVzZXQgYm90aCBYIGFuZCBZIGF0dHJhY3RpdmUgZm9yY2VzLCBhcyB0aGV5J3JlIGNhY2hlZC4KICAgIGNvbnN0IHhGb3JjZSA9IGQzLmZvcmNlWCgpLngodGhpcy53aWR0aF8gLyAyKS5zdHJlbmd0aCgwLjEpOwogICAgY29uc3QgeUZvcmNlID0gZDMuZm9yY2VZKCkKICAgICAgICAgICAgICAgICAgICAgICAueSh0aGlzLmdldFlQb3NpdGlvbl8uYmluZCh0aGlzKSkKICAgICAgICAgICAgICAgICAgICAgICAuc3RyZW5ndGgodGhpcy5nZXRZU3RyZW5ndGhfLmJpbmQodGhpcykpOwogICAgdGhpcy5zaW11bGF0aW9uXy5mb3JjZSgneF9wb3MnLCB4Rm9yY2UpOwogICAgdGhpcy5zaW11bGF0aW9uXy5mb3JjZSgneV9wb3MnLCB5Rm9yY2UpOwoKICAgIHRoaXMucmVzdGFydFNpbXVsYXRpb25fKCk7CiAgfQp9CgpsZXQgZ3JhcGggPSBudWxsOwpmdW5jdGlvbiBvbkxvYWQoKSB7CiAgZ3JhcGggPSBuZXcgR3JhcGgoZG9jdW1lbnQucXVlcnlTZWxlY3Rvcignc3ZnJykpOwoKICBncmFwaC5pbml0aWFsaXplKCk7Cn0KCndpbmRvdy5hZGRFdmVudExpc3RlbmVyKCdsb2FkJywgb25Mb2FkKTsKCiAgPC9zY3JpcHQ+CiAgPC9oZWFkPgogIDxib2R5PgogICAgPHN2ZyBpZD0iZ3JhcGhCb2R5IiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIj48L3N2Zz4KICA8L2JvZHk+CjwvaHRtbD4K (205) [10227:10227:0319/144700.651682:INFO:CONSOLE(1328)] "Running TestCase DiscardsTest.CompareTabDiscardsInfo", source: file:///b/s/w/ir/chrome/test/data/webui/test_api.js (1328) [10227:10238:0319/144700.787631:ERROR:browser_process_sub_thread.cc(217)] Waited 51 ms for network service [10227:10227:0319/144700.802723:WARNING:pref_notifier_impl.cc(23)] Pref observer found at shutdown. [10227:10227:0319/144700.802757:WARNING:pref_notifier_impl.cc(23)] Pref observer found at shutdown. [ OK ] DiscardsTest.CompareTabDiscardsInfo (1012 ms) ================================================================================