mozilla / geckodriver

WebDriver for Firefox
https://firefox-source-docs.mozilla.org/testing/geckodriver/
Mozilla Public License 2.0
7.09k stars 1.52k forks source link

Aborting on channel error.: MessageChannel.cpp, line 2143 (Too low shared memory in docker image, use "--shm-size 2g") #285

Open AlexanderArendar opened 7 years ago

AlexanderArendar commented 7 years ago

My OS properties:

Operating System: Linux Mint 18 Cinnamon 64-bit
Cinnamon Version: 3.0.7
Linux Kernel: 4.4.0-43-generic

In 'About Mozilla Firefox' info I can see this:

49.0
Mozilla Firefox for Linux Mint - 1.0

I have Selenium WebDriver java 3.0.0. Gecko driver version is geckodriver-v0.11.1-linux64.tar.gz

When I run a simple ScalaTest test suite with 1 test which calls the driver.close in the end there's nothing happening, the test reports as passed but the Firefox window is not closed. Here is a full output from the console:

/usr/lib/jvm/java-8-oracle/bin/java -Didea.launcher.port=7532 -Didea.launcher.bin.path=/ssd2/idea-IU-143.2370.31/bin -Dfile.encoding=UTF-8 -classpath /home/alex/.IntelliJIdea15/config/plugins/Scala/lib/scala-plugin-runners.jar:/usr/lib/jvm/java-8-oracle/jre/lib/charsets.jar:/usr/lib/jvm/java-8-oracle/jre/lib/deploy.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/cldrdata.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/dnsns.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/jaccess.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/jfxrt.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/localedata.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/nashorn.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/sunec.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/sunjce_provider.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/sunpkcs11.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/zipfs.jar:/usr/lib/jvm/java-8-oracle/jre/lib/javaws.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jce.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jfr.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jfxswt.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jsse.jar:/usr/lib/jvm/java-8-oracle/jre/lib/management-agent.jar:/usr/lib/jvm/java-8-oracle/jre/lib/plugin.jar:/usr/lib/jvm/java-8-oracle/jre/lib/resources.jar:/usr/lib/jvm/java-8-oracle/jre/lib/rt.jar:/ssd2/projects/ADMP/target/scala-2.11/test-classes:/home/alex/.ivy2/cache/org.scala-lang/scala-library/jars/scala-library-2.11.8.jar:/home/alex/.ivy2/cache/org.scala-lang/scala-reflect/jars/scala-reflect-2.11.8.jar:/home/alex/.ivy2/cache/org.scala-lang.modules/scala-parser-combinators_2.11/bundles/scala-parser-combinators_2.11-1.0.4.jar:/home/alex/.ivy2/cache/org.scala-lang.modules/scala-xml_2.11/bundles/scala-xml_2.11-1.0.5.jar:/home/alex/.ivy2/cache/org.scalactic/scalactic_2.11/bundles/scalactic_2.11-3.0.0.jar:/home/alex/.ivy2/cache/org.scalatest/scalatest_2.11/bundles/scalatest_2.11-3.0.0.jar:/home/alex/.ivy2/cache/com.google.code.gson/gson/jars/gson-2.3.1.jar:/home/alex/.ivy2/cache/com.google.guava/guava/jars/guava-19.0.jar:/home/alex/.ivy2/cache/commons-logging/commons-logging/jars/commons-logging-1.2.jar:/home/alex/.ivy2/cache/net.java.dev.jna/jna/jars/jna-4.1.0.jar:/home/alex/.ivy2/cache/net.java.dev.jna/jna-platform/jars/jna-platform-4.1.0.jar:/home/alex/.ivy2/cache/org.apache.commons/commons-exec/jars/commons-exec-1.3.jar:/home/alex/.ivy2/cache/io.netty/netty/jars/netty-3.5.7.Final.jar:/home/alex/.ivy2/cache/cglib/cglib-nodep/jars/cglib-nodep-3.2.4.jar:/home/alex/.ivy2/cache/com.codeborne/phantomjsdriver/jars/phantomjsdriver-1.3.0.jar:/home/alex/.ivy2/cache/commons-codec/commons-codec/jars/commons-codec-1.9.jar:/home/alex/.ivy2/cache/junit/junit/jars/junit-4.12.jar:/home/alex/.ivy2/cache/org.apache.httpcomponents/httpclient/jars/httpclient-4.5.2.jar:/home/alex/.ivy2/cache/org.apache.httpcomponents/httpcore/jars/httpcore-4.4.4.jar:/home/alex/.ivy2/cache/org.apache.httpcomponents/httpmime/jars/httpmime-4.5.2.jar:/home/alex/.ivy2/cache/org.hamcrest/hamcrest-core/jars/hamcrest-core-1.3.jar:/home/alex/.ivy2/cache/org.seleniumhq.selenium/selenium-api/jars/selenium-api-3.0.0.jar:/home/alex/.ivy2/cache/org.seleniumhq.selenium/selenium-chrome-driver/jars/selenium-chrome-driver-3.0.0.jar:/home/alex/.ivy2/cache/org.seleniumhq.selenium/selenium-edge-driver/jars/selenium-edge-driver-3.0.0.jar:/home/alex/.ivy2/cache/org.seleniumhq.selenium/selenium-firefox-driver/jars/selenium-firefox-driver-3.0.0.jar:/home/alex/.ivy2/cache/org.seleniumhq.selenium/selenium-ie-driver/jars/selenium-ie-driver-3.0.0.jar:/home/alex/.ivy2/cache/org.seleniumhq.selenium/selenium-java/jars/selenium-java-3.0.0.jar:/home/alex/.ivy2/cache/org.seleniumhq.selenium/selenium-opera-driver/jars/selenium-opera-driver-3.0.0.jar:/home/alex/.ivy2/cache/org.seleniumhq.selenium/selenium-remote-driver/jars/selenium-remote-driver-3.0.0.jar:/home/alex/.ivy2/cache/org.seleniumhq.selenium/selenium-safari-driver/jars/selenium-safari-driver-3.0.0.jar:/home/alex/.ivy2/cache/org.seleniumhq.selenium/selenium-support/jars/selenium-support-3.0.0.jar:/ssd2/idea-IU-143.2370.31/lib/idea_rt.jar com.intellij.rt.execution.application.AppMain org.jetbrains.plugins.scala.testingSupport.scalaTest.ScalaTestRunner -s SmokeTest -showProgressMessages true -C org.jetbrains.plugins.scala.testingSupport.scalaTest.ScalaTestReporter
Testing started at 1:16 PM ...
1476785792292   geckodriver INFO    Listening on 127.0.0.1:10309
Oct 18, 2016 1:16:32 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Attempting bi-dialect session, assuming Postel's Law holds true on the remote end
1476785792460   mozprofile::profile INFO    Using profile path /tmp/rust_mozprofile.LcHhoF2M0MKU
1476785792461   geckodriver::marionette INFO    Starting browser /usr/bin/firefox
1476785792467   geckodriver::marionette INFO    Connecting to Marionette on localhost:38428
1476785792704   addons.manager  DEBUG   Application has been upgraded
1476785792725   addons.manager  DEBUG   Loaded provider scope for resource://gre/modules/addons/XPIProvider.jsm: ["XPIProvider"]
1476785792727   addons.manager  DEBUG   Loaded provider scope for resource://gre/modules/LightweightThemeManager.jsm: ["LightweightThemeManager"]
1476785792732   addons.manager  DEBUG   Loaded provider scope for resource://gre/modules/addons/GMPProvider.jsm
1476785792734   addons.manager  DEBUG   Loaded provider scope for resource://gre/modules/addons/PluginProvider.jsm
1476785792735   addons.manager  DEBUG   Starting provider: XPIProvider
1476785792735   addons.xpi  DEBUG   startup
1476785792736   addons.xpi  INFO    SystemAddonInstallLocation directory is missing
1476785792737   addons.xpi  INFO    Mapping firefox@getpocket.com to /usr/lib/firefox/browser/features/firefox@getpocket.com.xpi
1476785792737   addons.xpi  INFO    Mapping e10srollout@mozilla.org to /usr/lib/firefox/browser/features/e10srollout@mozilla.org.xpi
1476785792737   addons.xpi  INFO    Mapping webcompat@mozilla.org to /usr/lib/firefox/browser/features/webcompat@mozilla.org.xpi
1476785792738   addons.xpi  INFO    Mapping langpack-en-GB@firefox.mozilla.org to /usr/lib/firefox/browser/extensions/langpack-en-GB@firefox.mozilla.org.xpi
1476785792738   addons.xpi  INFO    Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to /usr/lib/firefox/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi
1476785792738   addons.xpi  INFO    Mapping langpack-en-ZA@firefox.mozilla.org to /usr/lib/firefox/browser/extensions/langpack-en-ZA@firefox.mozilla.org.xpi
1476785792739   addons.xpi  DEBUG   checkForChanges
1476785792740   addons.xpi  DEBUG   Loaded add-on state from prefs: {}
1476785792741   addons.xpi  DEBUG   New add-on firefox@getpocket.com in app-system-defaults
1476785792741   addons.xpi  DEBUG   getModTime: Recursive scan of firefox@getpocket.com
1476785792742   addons.xpi  DEBUG   New add-on e10srollout@mozilla.org in app-system-defaults
1476785792742   addons.xpi  DEBUG   getModTime: Recursive scan of e10srollout@mozilla.org
1476785792743   addons.xpi  DEBUG   New add-on webcompat@mozilla.org in app-system-defaults
1476785792743   addons.xpi  DEBUG   getModTime: Recursive scan of webcompat@mozilla.org
1476785792743   addons.xpi  DEBUG   New add-on langpack-en-GB@firefox.mozilla.org in app-global
1476785792744   addons.xpi  DEBUG   getModTime: Recursive scan of langpack-en-GB@firefox.mozilla.org
1476785792744   addons.xpi  DEBUG   New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} in app-global
1476785792744   addons.xpi  DEBUG   getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1476785792745   addons.xpi  DEBUG   New add-on langpack-en-ZA@firefox.mozilla.org in app-global
1476785792745   addons.xpi  DEBUG   getModTime: Recursive scan of langpack-en-ZA@firefox.mozilla.org
1476785792745   addons.xpi  DEBUG   getInstallState changed: true, state: {"app-system-defaults":{"firefox@getpocket.com":{"d":"/usr/lib/firefox/browser/features/firefox@getpocket.com.xpi","st":1474570969000},"e10srollout@mozilla.org":{"d":"/usr/lib/firefox/browser/features/e10srollout@mozilla.org.xpi","st":1474570969000},"webcompat@mozilla.org":{"d":"/usr/lib/firefox/browser/features/webcompat@mozilla.org.xpi","st":1474570969000}},"app-global":{"langpack-en-GB@firefox.mozilla.org":{"d":"/usr/lib/firefox/browser/extensions/langpack-en-GB@firefox.mozilla.org.xpi","st":1474571288000},"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"/usr/lib/firefox/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi","st":1474570969000},"langpack-en-ZA@firefox.mozilla.org":{"d":"/usr/lib/firefox/browser/extensions/langpack-en-ZA@firefox.mozilla.org.xpi","st":1474571288000}}}
1476785792753   addons.xpi-utils    DEBUG   Opening XPI database /tmp/rust_mozprofile.LcHhoF2M0MKU/extensions.json
1476785792755   addons.xpi-utils    DEBUG   New add-on firefox@getpocket.com installed in app-system-defaults
*** Blocklist::_loadBlocklistFromFile: blocklist is disabled
1476785792767   DeferredSave.extensions.json    DEBUG   Save changes
1476785792768   addons.xpi-utils    DEBUG   New add-on e10srollout@mozilla.org installed in app-system-defaults
1476785792770   DeferredSave.extensions.json    DEBUG   Starting timer
1476785792772   DeferredSave.extensions.json    DEBUG   Save changes
1476785792772   addons.xpi-utils    DEBUG   New add-on webcompat@mozilla.org installed in app-system-defaults
1476785792777   DeferredSave.extensions.json    DEBUG   Save changes
1476785792778   addons.xpi-utils    DEBUG   New add-on langpack-en-GB@firefox.mozilla.org installed in app-global
1476785792790   DeferredSave.extensions.json    DEBUG   Save changes
1476785792790   addons.xpi-utils    DEBUG   New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} installed in app-global
1476785792794   DeferredSave.extensions.json    DEBUG   Save changes
1476785792794   addons.xpi-utils    DEBUG   New add-on langpack-en-ZA@firefox.mozilla.org installed in app-global
1476785792806   DeferredSave.extensions.json    DEBUG   Save changes
1476785792814   addons.xpi  DEBUG   Loading bootstrap scope from /usr/lib/firefox/browser/features/firefox@getpocket.com.xpi
1476785792828   addons.xpi  DEBUG   Calling bootstrap method install on firefox@getpocket.com version 1.0.4
1476785792828   addons.xpi-utils    DEBUG   Make addon app-system-defaults:firefox@getpocket.com visible
1476785792828   DeferredSave.extensions.json    DEBUG   Save changes
1476785792829   addons.xpi  DEBUG   Loading bootstrap scope from /usr/lib/firefox/browser/features/e10srollout@mozilla.org.xpi
1476785792831   addons.xpi  DEBUG   Calling bootstrap method install on e10srollout@mozilla.org version 1.2
1476785792832   addons.xpi-utils    DEBUG   Make addon app-system-defaults:e10srollout@mozilla.org visible
1476785792833   DeferredSave.extensions.json    DEBUG   Save changes
1476785792834   addons.xpi  DEBUG   Loading bootstrap scope from /usr/lib/firefox/browser/features/webcompat@mozilla.org.xpi
1476785792835   addons.xpi  DEBUG   Calling bootstrap method install on webcompat@mozilla.org version 1.0
1476785792836   addons.xpi-utils    DEBUG   Make addon app-system-defaults:webcompat@mozilla.org visible
1476785792836   DeferredSave.extensions.json    DEBUG   Save changes
1476785792836   addons.manager  DEBUG   Registering startup change 'installed' for langpack-en-GB@firefox.mozilla.org
1476785792836   addons.xpi-utils    DEBUG   Make addon app-global:langpack-en-GB@firefox.mozilla.org visible
1476785792837   DeferredSave.extensions.json    DEBUG   Save changes
1476785792837   addons.xpi-utils    DEBUG   Make addon app-global:{972ce4c6-7e08-4474-a285-3208198ce6fd} visible
1476785792838   DeferredSave.extensions.json    DEBUG   Save changes
1476785792838   addons.manager  DEBUG   Registering startup change 'installed' for langpack-en-ZA@firefox.mozilla.org
1476785792839   addons.xpi-utils    DEBUG   Make addon app-global:langpack-en-ZA@firefox.mozilla.org visible
1476785792839   DeferredSave.extensions.json    DEBUG   Save changes
1476785792839   addons.xpi  DEBUG   Updating XPIState for {"id":"firefox@getpocket.com","syncGUID":"LpWHFQ0HkWMj","location":"app-system-defaults","version":"1.0.4","type":"extension","internalName":null,"updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Pocket","description":"When you find something you want to view later, put it in Pocket.","creator":null,"homepageURL":null},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"/usr/lib/firefox/browser/features/firefox@getpocket.com.xpi","installDate":1474570969000,"updateDate":1474570969000,"applyBackgroundUpdates":1,"bootstrap":true,"skinnable":false,"size":895232,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"49.0","maxVersion":"49.*"}],"targetPlatforms":[],"multiprocessCompatible":false,"seen":true}
1476785792840   addons.xpi  DEBUG   getModTime: Recursive scan of firefox@getpocket.com
1476785792840   addons.xpi  DEBUG   Updating XPIState for {"id":"e10srollout@mozilla.org","syncGUID":"VxbtVaeN5YpG","location":"app-system-defaults","version":"1.2","type":"extension","internalName":null,"updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Multi-process staged rollout","description":"Staged rollout of Firefox multi-process feature.","creator":null,"homepageURL":null},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"/usr/lib/firefox/browser/features/e10srollout@mozilla.org.xpi","installDate":1474570969000,"updateDate":1474570969000,"applyBackgroundUpdates":1,"bootstrap":true,"skinnable":false,"size":5714,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"49.0","maxVersion":"49.*"}],"targetPlatforms":[],"multiprocessCompatible":false,"seen":true}
1476785792840   addons.xpi  DEBUG   getModTime: Recursive scan of e10srollout@mozilla.org
1476785792840   addons.xpi  DEBUG   Updating XPIState for {"id":"webcompat@mozilla.org","syncGUID":"b5ZTJmqGISHO","location":"app-system-defaults","version":"1.0","type":"extension","internalName":null,"updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Web Compat","description":"Urgent post-release fixes for web compatibility.","creator":null,"homepageURL":null},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"/usr/lib/firefox/browser/features/webcompat@mozilla.org.xpi","installDate":1474570969000,"updateDate":1474570969000,"applyBackgroundUpdates":1,"bootstrap":true,"skinnable":false,"size":1500,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"49.0","maxVersion":"49.*"}],"targetPlatforms":[],"multiprocessCompatible":false,"seen":true}
1476785792841   addons.xpi  DEBUG   getModTime: Recursive scan of webcompat@mozilla.org
1476785792841   addons.xpi  DEBUG   Updating XPIState for {"id":"langpack-en-GB@firefox.mozilla.org","syncGUID":"vqnGNzymbzdg","location":"app-global","version":"49.0","type":"locale","internalName":null,"updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"English (GB) Language Pack","description":null,"creator":"Mark Tyndall","homepageURL":null,"contributors":["David Bartlett","Constantine Murenin","Ian Neal"]},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"/usr/lib/firefox/browser/extensions/langpack-en-GB@firefox.mozilla.org.xpi","installDate":1474571288000,"updateDate":1474571288000,"applyBackgroundUpdates":1,"bootstrap":true,"skinnable":false,"size":1109449,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":true,"hasBinaryComponents":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"49.0","maxVersion":"49.*"}],"targetPlatforms":[],"seen":true}
1476785792841   addons.xpi  DEBUG   getModTime: Recursive scan of langpack-en-GB@firefox.mozilla.org
1476785792841   addons.xpi  DEBUG   Updating XPIState for {"id":"{972ce4c6-7e08-4474-a285-3208198ce6fd}","syncGUID":"LN6jBR-vgpmB","location":"app-global","version":"49.0","type":"theme","internalName":"classic/1.0","updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{"32":"icon.png","48":"icon.png"},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Default","description":"The default theme.","creator":"Mozilla","homepageURL":null,"contributors":["Mozilla Contributors"]},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"/usr/lib/firefox/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi","installDate":1474570969000,"updateDate":1474570969000,"applyBackgroundUpdates":1,"skinnable":true,"size":5022,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"49.0","maxVersion":"49.0"}],"targetPlatforms":[],"seen":true}
1476785792842   addons.xpi  DEBUG   getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1476785792842   addons.xpi  DEBUG   Updating XPIState for {"id":"langpack-en-ZA@firefox.mozilla.org","syncGUID":"1pgIyRj0FYW1","location":"app-global","version":"49.0","type":"locale","internalName":null,"updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"English (South Africa) Language Pack","description":null,"creator":"Translate.org.za","homepageURL":null,"contributors":["Translate.org.za","Dwayne Bailey"]},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"/usr/lib/firefox/browser/extensions/langpack-en-ZA@firefox.mozilla.org.xpi","installDate":1474571288000,"updateDate":1474571288000,"applyBackgroundUpdates":1,"bootstrap":true,"skinnable":false,"size":1114610,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":true,"hasBinaryComponents":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"49.0","maxVersion":"49.*"}],"targetPlatforms":[],"seen":true}
1476785792842   addons.xpi  DEBUG   getModTime: Recursive scan of langpack-en-ZA@firefox.mozilla.org
1476785792843   DeferredSave.extensions.json    DEBUG   Save changes
1476785792843   addons.xpi  DEBUG   Updating database with changes to installed add-ons
1476785792843   addons.xpi-utils    DEBUG   Updating add-on states
1476785792844   addons.xpi-utils    DEBUG   Writing add-ons list
1476785792845   addons.xpi  DEBUG   Registering manifest for /usr/lib/firefox/browser/features/firefox@getpocket.com.xpi
1476785792845   addons.xpi  DEBUG   Calling bootstrap method startup on firefox@getpocket.com version 1.0.4
1476785792846   addons.xpi  DEBUG   Registering manifest for /usr/lib/firefox/browser/features/e10srollout@mozilla.org.xpi
1476785792846   addons.xpi  DEBUG   Calling bootstrap method startup on e10srollout@mozilla.org version 1.2
1476785792847   addons.xpi  DEBUG   Registering manifest for /usr/lib/firefox/browser/features/webcompat@mozilla.org.xpi
1476785792847   addons.xpi  DEBUG   Calling bootstrap method startup on webcompat@mozilla.org version 1.0
1476785792847   addons.xpi  DEBUG   Registering manifest for /usr/lib/firefox/browser/extensions/langpack-en-GB@firefox.mozilla.org.xpi
1476785792848   addons.xpi  DEBUG   Registering manifest for /usr/lib/firefox/browser/extensions/langpack-en-ZA@firefox.mozilla.org.xpi
1476785792851   addons.manager  DEBUG   Registering shutdown blocker for XPIProvider
1476785792851   addons.manager  DEBUG   Provider finished startup: XPIProvider
1476785792851   addons.manager  DEBUG   Starting provider: LightweightThemeManager
1476785792851   addons.manager  DEBUG   Registering shutdown blocker for LightweightThemeManager
1476785792852   addons.manager  DEBUG   Provider finished startup: LightweightThemeManager
1476785792852   addons.manager  DEBUG   Starting provider: GMPProvider
1476785792858   addons.manager  DEBUG   Registering shutdown blocker for GMPProvider
1476785792859   addons.manager  DEBUG   Provider finished startup: GMPProvider
1476785792859   addons.manager  DEBUG   Starting provider: PluginProvider
1476785792859   addons.manager  DEBUG   Registering shutdown blocker for PluginProvider
1476785792859   addons.manager  DEBUG   Provider finished startup: PluginProvider
1476785792860   addons.manager  DEBUG   Completed startup sequence
1476785793029   Marionette  INFO    Listening on port 38428
1476785793299   addons.manager  DEBUG   Starting provider: <unnamed-provider>
1476785793300   addons.manager  DEBUG   Registering shutdown blocker for <unnamed-provider>
1476785793301   addons.manager  DEBUG   Provider finished startup: <unnamed-provider>
1476785793334   addons.manager  DEBUG   Starting provider: PreviousExperimentProvider
1476785793334   addons.manager  DEBUG   Registering shutdown blocker for PreviousExperimentProvider
1476785793334   addons.manager  DEBUG   Provider finished startup: PreviousExperimentProvider
1476785793337   DeferredSave.extensions.json    DEBUG   Starting write
1476785793451   DeferredSave.extensions.json    DEBUG   Write succeeded
1476785793452   addons.xpi-utils    DEBUG   XPI Database saved, setting schema version preference to 17
1476785794285   Marionette  INFO    startBrowser 364b90c8-7f03-4190-9f08-d1d8e5dc62e7
Oct 18, 2016 1:16:34 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C

(firefox:3953): GLib-GObject-CRITICAL **: g_type_add_interface_static: assertion 'g_type_parent (interface_type) == G_TYPE_INTERFACE' failed

(firefox:3953): GLib-GObject-CRITICAL **: g_type_add_interface_static: assertion 'g_type_parent (interface_type) == G_TYPE_INTERFACE' failed

(firefox:3953): GLib-GObject-CRITICAL **: g_type_add_interface_static: assertion 'g_type_parent (interface_type) == G_TYPE_INTERFACE' failed

(firefox:3953): GLib-GObject-CRITICAL **: g_type_add_interface_static: assertion 'g_type_parent (interface_type) == G_TYPE_INTERFACE' failed
Given Unauthenticated user
When he navigates to ADMP home page URL
Then 'Sign in' page should be loaded.
And 'User name' input must be shown

Process finished with exit code 0

Note that last 4 lines in the output before the final line is the output of the test.

whimboo commented 7 years ago

@whimboo The message I have mentioned in the above comment. Also the FF browser gets close before completing the script execution.

@VikasSalunke which script execution? I only see a call to get and close. Whereby the latter will shutdown Firefox because it's the last window you are closing. If you don't want that just remove the call to close.

Thesykan commented 7 years ago

I've been able to work around this issue by closing tabs before quitting out the main tab. Also setting the URL to about:config/blank before closing,

while (this.WindowHandles.Count > 1)
{
    this.Navigate().GoToUrl("about:config");
    this.Navigate().GoToUrl("about:blank");
    this.Close(); //Close Tab
    this.SwitchTo().Window(this.WindowHandles.Last());
}
this.Navigate().GoToUrl("about:config");
this.Navigate().GoToUrl("about:blank");
this.Quit(); //Then main window

Hope this helps!!

Lewiscowles1986 commented 6 years ago

I'm getting this on firefox nightly

image

I am running it in docker, could that be why? I've sent them a crash report, it's obviously a shared component

whimboo commented 6 years ago

@Lewiscowles1986 can you make sure that you set the values as proposed via https://github.com/SeleniumHQ/docker-selenium/pull/485?

Lewiscowles1986 commented 6 years ago
docker run --rm -d -e DISPLAY=unix$DISPLAY -e USER_ID=$UID -e GROUP_ID=$UID -v $HOME/Downloads:/data/Downloads -v $HOME/.config/mozilla/firefox-$version:/data/.firefox -v /dev/snd:/dev/snd --privileged -v /tmp/.X11-unix:/tmp/.X11-unix --memory 1024mb --name firefox-nightly --shm-size 2g --net host firefox-nightly

Seems to work nicely to stop crashes. I wish I understood why, but for now I'll be grateful

whimboo commented 6 years ago

Great. For details see https://bugzilla.mozilla.org/show_bug.cgi?id=1338771#c10.

Is anyone else here who sees this behavior and is not using Selenium in a docker? If yes, please test again with a latest Firefox Nightly build, and attach the trace log.

whimboo commented 6 years ago

After a bit of investigation in the last week, I think that this issue is related to bug 1403923 which I filed a week ago. Lets wait for a fix, and we could check the status again afterward.

namedgraph commented 6 years ago

@whimboo for me setting either -v /dev/shm:/dev/shm or --shm-size 2g did not address the problem on selenium/node-firefox:3.8.1-erbium. but the driver.get("about:config"); workaround seems to work.

whimboo commented 6 years ago

@pumba-lt then you most likely hit another issue. But that is hard to say without seeing any logs. Best you file a separate issue so we can investigate.

anto-ac commented 6 years ago

I am still getting this issue with either /dev/shm:/dev/shm or shm-size 2g in my docker compose file.

whimboo commented 6 years ago

@anto-wahanda how can you be sure about it? We would need a trace log to be able to say if that is really the underlying issue.

anto-ac commented 6 years ago

@whimboo I tried using either options (not together) and I ended up with timeouts as described in this and other issues. I will try to get a trace log together, but it’s not always easy because it doesn’t happen consistently and it is subject to some kind of Schroedingers’s cat effect :)