Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-19728

Fix random Webdriver launch failure when using Firefox

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 7.10, 8.3-SNAPSHOT
    • Fix Version/s: Postponed
    • Component/s: Tests

      Description

      The following error can be seen randomly on webdriver tests, using FF26, since library upgrade done for NXP-8549: sometimes firefox does not seem to load properly, for instance on https://qa.nuxeo.org/jenkins/job/Deploy/job/IT-nuxeo-master-tests-cap-tomcat/19/testReport/junit/org.nuxeo.ftest.cap/ITAdminNavigationTest/org_nuxeo_ftest_cap_ITAdminNavigationTest/

      Failed to connect to binary FirefoxBinary(/usr/bin/firefox) on port 7057; process output follows: 
      
      (process:28980): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
      
      org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(/usr/bin/firefox) on port 7057; process output follows: 
      
      (process:28980): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
      Xlib:  extension "RANDR" missing on display ":1".
      *** LOG addons.manager: Application has been upgraded
      *** LOG addons.xpi: startup
      *** LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID: /tmp/anonymous4982480020664854817webdriver-profile/extensions/webdriver-staging
      *** LOG addons.xpi: checkForChanges
      *** LOG addons.xpi-utils: Opening XPI database /tmp/anonymous4982480020664854817webdriver-profile/extensions.json
      *** LOG addons.xpi: New add-on JSErrorCollector@jsourcerer.com installed in app-profile
      *** Blocklist::_loadBlocklistFromFile: blocklist is disabled
      *** LOG addons.xpi-utils: Make addon app-profile:JSErrorCollector@jsourcerer.com visible
      *** LOG DeferredSave/extensions.json: Save changes
      *** LOG DeferredSave/extensions.json: Save changes
      *** LOG addons.xpi: New add-on fxdriver@googlecode.com installed in app-profile
      *** LOG addons.xpi-utils: Make addon app-profile:fxdriver@googlecode.com visible
      *** LOG DeferredSave/extensions.json: Save changes
      *** LOG DeferredSave/extensions.json: Save changes
      *** LOG addons.xpi: New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} installed in app-global
      *** LOG addons.xpi-utils: Make addon app-global:{972ce4c6-7e08-4474-a285-3208198ce6fd} visible
      *** LOG DeferredSave/extensions.json: Save changes
      *** LOG DeferredSave/extensions.json: Save changes
      *** LOG addons.xpi: Updating database with changes to installed add-ons
      *** LOG addons.xpi-utils: Updating add-on states
      *** LOG addons.xpi-utils: Writing add-ons list
      *** LOG DeferredSave/extensions.json: Starting timer
      *** LOG DeferredSave/extensions.json: Starting write
      *** LOG DeferredSave/extensions.json: Write succeeded
      *** LOG addons.xpi-utils: XPI Database saved, setting schema version preference to 15
      
      Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'
      System info: host: 'joyeux', ip: '172.17.0.4', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-22-generic', java.version: '1.8.0_77'
      Driver info: driver.version: FirefoxDriver
      	at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:125)
      	at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:271)
      	at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:119)
      	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:216)
      	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:211)
      	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:128)
      	at org.nuxeo.functionaltests.drivers.FirefoxDriverProvider.init(FirefoxDriverProvider.java:133)
      	at org.nuxeo.functionaltests.AbstractTest.initFirefoxDriver(AbstractTest.java:222)
      	at org.nuxeo.functionaltests.AbstractTest.initDriver(AbstractTest.java:205)
      	at sun.reflect.GeneratedMethodAccessor57.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      	at org.junit.runners.Suite.runChild(Suite.java:127)
      	at org.junit.runners.Suite.runChild(Suite.java:26)
      	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      	at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
      	at org.junit.runner.JUnitCore.run(JUnitCore.java:138)
      	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:113)
      	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:85)
      	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:54)
      	at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:134)
      	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
      	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
      	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
      Caused by: org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7057 after 45000 ms. Firefox console output:
      
      (process:28980): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
      Xlib:  extension "RANDR" missing on display ":1".
      *** LOG addons.manager: Application has been upgraded
      *** LOG addons.xpi: startup
      *** LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID: /tmp/anonymous4982480020664854817webdriver-profile/extensions/webdriver-staging
      *** LOG addons.xpi: checkForChanges
      *** LOG addons.xpi-utils: Opening XPI database /tmp/anonymous4982480020664854817webdriver-profile/extensions.json
      *** LOG addons.xpi: New add-on JSErrorCollector@jsourcerer.com installed in app-profile
      *** Blocklist::_loadBlocklistFromFile: blocklist is disabled
      *** LOG addons.xpi-utils: Make addon app-profile:JSErrorCollector@jsourcerer.com visible
      *** LOG DeferredSave/extensions.json: Save changes
      *** LOG DeferredSave/extensions.json: Save changes
      *** LOG addons.xpi: New add-on fxdriver@googlecode.com installed in app-profile
      *** LOG addons.xpi-utils: Make addon app-profile:fxdriver@googlecode.com visible
      *** LOG DeferredSave/extensions.json: Save changes
      *** LOG DeferredSave/extensions.json: Save changes
      *** LOG addons.xpi: New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} installed in app-global
      *** LOG addons.xpi-utils: Make addon app-global:{972ce4c6-7e08-4474-a285-3208198ce6fd} visible
      *** LOG DeferredSave/extensions.json: Save changes
      *** LOG DeferredSave/extensions.json: Save changes
      *** LOG addons.xpi: Updating database with changes to installed add-ons
      *** LOG addons.xpi-utils: Updating add-on states
      *** LOG addons.xpi-utils: Writing add-ons list
      *** LOG DeferredSave/extensions.json: Starting timer
      *** LOG DeferredSave/extensions.json: Starting write
      *** LOG DeferredSave/extensions.json: Write succeeded
      *** LOG addons.xpi-utils: XPI Database saved, setting schema version preference to 15
      
      	at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:113)
      	at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:271)
      	at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:119)
      	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:216)
      	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:211)
      	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:128)
      	at org.nuxeo.functionaltests.drivers.FirefoxDriverProvider.init(FirefoxDriverProvider.java:133)
      	at org.nuxeo.functionaltests.AbstractTest.initFirefoxDriver(AbstractTest.java:222)
      	at org.nuxeo.functionaltests.AbstractTest.initDriver(AbstractTest.java:205)
      	at sun.reflect.GeneratedMethodAccessor57.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      	at org.junit.runners.Suite.runChild(Suite.java:127)
      	at org.junit.runners.Suite.runChild(Suite.java:26)
      	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      	at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
      	at org.junit.runner.JUnitCore.run(JUnitCore.java:138)
      	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:113)
      	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:85)
      	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:54)
      	at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:134)
      	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
      	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
      	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: