geckodriver icon indicating copy to clipboard operation
geckodriver copied to clipboard

Strange path of firefox.exe provided by geckodriver | Selenium 3.3.1 | geckodriver 0.16.1 | testNG 6.10

Open leondurand opened this issue 9 years ago • 19 comments

In order to help us efficiently investigate your issue, please provide the following information:

Firefox Version : 53.0 (32 bits)

Platform : Windows 10 Pro

Steps to reproduce -

When I run the project as a testNG test (under eclipse) I have a strange path where the geckodriver is looking for firefox : Starting browser \?\C:\Program Files (x86)\Nightly\firefox.exe with args ["-marionette"]

Here is the test code:

package org.openqa.selenium.example;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.firefox.FirefoxProfile;
import org.openqa.selenium.firefox.internal.ProfilesIni;

public class IssueSelenium {
	
	@org.testng.annotations.Test
	public void Test() throws Exception{
		ProfilesIni profile = new ProfilesIni();
	  	FirefoxProfile myprofile = profile.getProfile("default");
	  	myprofile.setAcceptUntrustedCertificates(true);
	  	myprofile.setAssumeUntrustedCertificateIssuer(true);
	    WebDriver  driver = new FirefoxDriver(myprofile);
	    driver.get("www.google.com");
	}

}

I didn't understand how to set the log to trace but there is the info log :

_ 1493370140551	geckodriver	INFO	Listening on 127.0.0.1:36860
1493370165850	geckodriver::marionette	INFO	Starting browser **\\?\C:\Program Files (x86)\Nightly\firefox.exe with args ["-marionette"]**
1493370181285	addons.manager	ERROR	startup failed: [Exception... "Component rJetaurnevda Sfcariilputr ee rcroodre::  r0exs8o0u0r7005c7 e(:N/S/_gErReR/OmRo_dIuLlLeEsG/AALd_dVoAnLMUaEn)a g[enrs.IjFile.csrme,a tlei]n"e   1n5s9r3e:s uNlSt_:E R"R0OxR8_0N0O7T0_0INI5T7I A(LNISZ_EEDR:R OARd_dIoLnLMEaGnAaLg_eVrA LiUsE )n"o t  location: "JSi nfirtaimael i:z:e dr
e
source://gre/modules/FileUtils.jsm :: FileUtils_getDir :: line 70"  data: no] Stack trace: FileUtils_getDir()@resource://gre/modules/FileUtils.jsm:70 < FileUtils_getFile()@resource://gre/modules/FileUtils.jsm:42 < validateBlocklist()@resource://gre/modules/AddonManager.jsm:653 < startup()@resource://gre/modules/AddonManager.jsm:813 < startup()@resource://gre/modules/AddonManager.jsm:3081 < observe()@jar:file://///%3F/C:/Program%20Files%20(x86)/Nightly/omni.ja!/components/addonManager.js:65
Unable to read VR Path Registry from C:\Users\ldurand\AppData\Local\openvr\openvrpaths.vrpath
[GPU 3300] WARNING: pipe error: 109: file c:/builds/moz2_slave/m-cen-w32-ntly-000000000000000/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346
Unable to read VR Path Registry from C:\Users\ldurand\AppData\Local\openvr\openvrpaths.vrpath
[Child 6596] WARNING: pipe error: 109: file c:/builds/moz2_slave/m-cen-w32-ntly-000000000000000/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346
[Child 6596] WARNING: pipe error: 109: file c:/builds/moz2_slave/m-cen-w32-ntly-000000000000000/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346
1493370205152	Marionette	INFO	Listening on port 60600
Unable to read VR Path Registry from C:\Users\ldurand\AppData\Local\openvr\openvrpaths.vrpath
JavaScript error: resource://gre/modules/AddonManager.jsm, line 2508: NS_ERROR_NOT_INITIALIZED: AddonManager is not initialized
FAILED: Test
org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities [{moz:firefoxOptions={binary=Optional.empty, args=[], legacy=null, logLevel=null, prefs={}, profile=org.openqa.selenium.firefox.FirefoxProfile@dd05255}, firefox_profile=org.openqa.selenium.firefox.FirefoxProfile@dd05255}], required capabilities = Capabilities [{moz:firefoxOptions={binary=Optional.empty, args=[], legacy=null, logLevel=null, prefs={}, profile=org.openqa.selenium.firefox.FirefoxProfile@dd05255}, firefox_profile=org.openqa.selenium.firefox.FirefoxProfile@dd05255}]
Build info: version: '3.3.1', revision: '5234b325d5', time: '2017-03-10 09:10:29 +0000'
System info: host: 'PO31074', ip: '10.72.97.24', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_131'
Driver info: driver.version: FirefoxDriver
	at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:126)
	at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:141)
	at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)
	at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:604)
	at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:244)
	at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131)
	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:218)
	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:125)
	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:137)
	at org.openqa.selenium.example.IssueSelenium.Test(IssueSelenium.java:16)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:108)
	at org.testng.internal.Invoker.invokeMethod(Invoker.java:661)
	at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:869)
	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1193)
	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:126)
	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
	at org.testng.TestRunner.privateRun(TestRunner.java:744)
	at org.testng.TestRunner.run(TestRunner.java:602)
	at org.testng.SuiteRunner.runTest(SuiteRunner.java:380)
	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:375)
	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:340)
	at org.testng.SuiteRunner.run(SuiteRunner.java:289)
	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1301)
	at org.testng.TestNG.runSuitesLocally(TestNG.java:1226)
	at org.testng.TestNG.runSuites(TestNG.java:1144)
	at org.testng.TestNG.run(TestNG.java:1115)
	at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:132)
	at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:230)
	at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:76)


===============================================
    Default test
    Tests run: 1, Failures: 1, Skips: 0
===============================================


===============================================
Default suite
Total tests run: 1, Failures: 1, Skips: 0
=============================================== _

leondurand avatar Apr 28 '17 09:04 leondurand

So you appear to have two problems here:

  • That you think there is something wrong with the \?\C:\Program Files (x86)\Nightly\firefox.exe with args ["-marionette"] output
  • That the session is not created

The binary path is printed in https://github.com/mozilla/geckodriver/blob/b579b41838918460a63b59a4bb7933ecf485b7f5/src/marionette.rs#L331 and I don’t see anything funny with the way it calls binary.display(). Maybe it comes with an invisible character that can’t be displayed in the Windows command prompt?

You could verify that the path is fine by starting geckodriver with --binary "C:\Program Files (x86)\Nightly\firefox.exe" and double-checking the output.

As to why a session isn’t being created, I don’t know. You need to attach a trace-level log from geckodriver. You can get this by starting it with the -vv flag or by passing in {"moz:firefoxOptions": {"log": {"level": "trace"}}} as a capability.

andreastt avatar Apr 28 '17 12:04 andreastt

I have a similar problem with Selenium 3.4.0, Geckodriver 0.16.1 and Firefox 52

C:\ProgrammeDavid\geckodriver>geckodriver.exe -vv --port 9013 --binary C:\ProgrammeDavid\FirefoxPortable-52\FirefoxPortable.exe 1493384941486 webdriver::httpapi DEBUG Creating routes 1493384941501 geckodriver INFO Listening on 127.0.0.1:9013 1493384944936 webdriver::server DEBUG → POST /session { "desiredCapabilities": { "firefox_binary": "C:/ProgrammeDavid/FirefoxPortable-52/FirefoxPortable.exe", "moz:firefoxOptions": { "binary": "C:/ProgrammeDavid/FirefoxPortable-52/FirefoxPortable.exe", "profile": "UEsDBBQACAgIAC9xnEoAAAAAAAAAAAAAAAAHAAAAdXNlci5qc51WyW7bMBC99ysKn1qgJrK0l/aUpilQIGiKGkGPBEWOJMYUyXKx4r/vUEvs2DKV9GRLmiFnefPeRA+OWgflu0XhTItPxLMSuv9SV6RhqmUOCGhWKBCLD29Lpjy8//Im7jwFC2hjjQvJpQamQt0/EzTaSD7jryG0xq1JHYIltpa+3i7TZ8u8XyrQVajR8eLTp+duY8AOmMAfAQF4APFdOh+uMBauAN2Ci4fhmgbzeqS8dqYB6rmTNlAXNQ2ySS6XZ9MXBVZ4guXQd/paGQ/T2YzWwrRaGSbwLs2qVNjatH9q0CusVqrUtLvFoGzw6TLaGMHUTO1hE4xRnoBzxnGjvVH75T5O38tKG41Va6ApwK26R5/PxYP3Eq2CQSw48BHrVmKglDvm67yvknpNjAVN4TGA00ylZr4aQWVq6++opy9roRBObv CZcQ7Yzqgxc49woBxc8JOVeOqU9FaxLYib87PVT4PISa39OG2Mr8Sd/iM19tefnxGJF5n737fosWCFieFzoZheL44x1ydEmVL0wWMxUpyyL/1xbI9WYrnRlrS1DKCkD3jA3yjdKSQkGKxlIMM0jajD5BIWsgVQDBuDA5CHmk+4jZbUODUWz6YtKJ4mKLrU0sVByqnbukMNiRYbDERjacvtPZq8mkeiTaN0kw0PeHQybBEpCvAf8cFJHqhxspKaWqMk3+ahqqHFsSNDPpluPgu0P5mkl6tYNLIblV/dy6sOjC/jzcljshk/TefQmNQUtDzBXrs5xDTbDr/Hg2jKEu1gyaz1BNFnWlpsqYCSRRWm6WQsO/d2wM90tMd4yKJthDNiH5kquC3pmbGzv5izzR49VuTm/vaKXBK2a9Jxeg9sw3qFyJLqYSvGGcnjaBQ+zpAJNrBMUGBq+SLRPM7ZwUMngNkAe4in0PLH73WLxWC+9Syy4gigRF jn8xJ5h1CbPbtQhq87cntRxzw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A5CHmk+4jZbUODUWz6YtKJ4mKLrU0sVByqnbukMNiRYbDERjacvtPZq8mkeiTaN0kw0PeHQybBEpCvAf8cFJHqhxspKaWqMk3+ahqqHFsSNDPpluPgu0P5mkl6tYNLIblV/dy6sOjC/jzcljshk/TefQmNQUtDzBXrs5xDTbDr/Hg2jKEu1gyaz1BNFnWlpsqYCSRRWm6WQsO/d2wM90tMd4yKJthDNiH5kquC3pmbGzv5izzR49VuTm/vaKXBK2a9Jxeg9sw3qFyJLqYSvGGcnjaBQ+zpAJNrBMUGBq+SLRPM7ZwUMngNkAe4in0PLH73WLxWC+9Syy 4gigRFjn8xJ5h1CbPbtQhq87cntRxzwwx+sBP3Py25Ae5UTExma7h2h/ESafAceg2jgpppn1iIwOWehyGgk9ay/HMUQ4hTijzYPtCYoZdp35JWdPQX2n7zsFRSqKHWdnK5dgMh3E3gyZXvK6XeiHvu7XlZNb2qBdtGMtgWXUFU06MAOSGlA2eQ18/a0nrq/9l9fLGmFCyBQxm1GEyeX5f5dmZaoqvRy2uawG7M1Sl/E1ciQLspAqoU/Lqg7qhOrtuY43/g/F0XEQSIP7YQfERdopHRzUaLfSpBUUgY2L5MxOs5t7Vfpo+1Vgt238A1BLBwjbq6ZPpQMAAL4MAABQSwECFAAUAAgICAAvcZxK26umT6UDAAC+DAAABwAAAAAAAAAAAAAAAAAAAAAAdXNlci5qc1BLBQYAAAAAAQABADUAAADaAwAAAAA\u003d" }, "requiredCapabilities": {}, "capabilities": { "desiredCapabilities": { "firefox_binary": "C:/ProgrammeDavid/FirefoxPortable-52/FirefoxPortable.exe", "moz:firefoxOptions": { "binary": "C:/ProgrammeDavid/FirefoxPortable-52/FirefoxPortable.exe", "profile": "UEsDBBQACAgIAC9xnEoAAAAAAAAAAAAAAAAHAAAAdXNlci5qc51WyW7bMBC99ysKn1qgJrK0l/aUpilQIGiKGkGPBEWOJMYUyXKx4r/vUEvs2DKV9GRLmiFnefPeRA+OWgflu0XhTItPxLMSuv9SV6RhqmU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3pmbGzv5izzR49VuTm/vaKXBK2a9Jxeg9sw3qFyJLqYSvGGcnjaBQ+zpAJNrBMUGBq+SLRPM7ZwUMngNkAe4in0PLH73WLxWC+9S yy4gigRFjn8xJ5h1CbPbtQhq87cntRxzwwx+sBP3Py25Ae5UTExma7h2h/ESafAceg2jgpppn1iIwOWehyGgk9ay/HMUQ4hTijzYPtCYoZdp35JWdPQX2n7zsFRSqKHWdnK5dgMh3E3gyZXvK6XeiHvu7XlZNb2qBdtGMtgWXUFU06MAOSGlA2eQ18/a0nrq/9l9fLGmFCyBQxm1GEyeX5f5dmZaoqvRy2uawG7M1Sl/E1ciQLspAqoU/Lqg7qhOrtuY43/g/F0XEQSIP7YQfERdopHRzUaLfSpBUUgY2L5MxOs5t7Vfpo+1Vgt238A1BLBwjbq6ZPpQMAAL4MAABQSwECFAAUAAgICAAvcZxK26umT6UDAAC+DAAABwAAAAAAAAAAAAAAAAAAAAAAdXNlci5qc1BLBQYAAAAAAQABADUAAADaAwAAAAA\u003d" }, "requiredCapabilities": {}, "alwaysMatch": {}, "firstMatch": [ { "moz:firefoxOptions": { "binary": "C:/ProgrammeDavid/FirefoxPortable-52/FirefoxPortable.exe", "profile": "UEsDBBQACAgIAC9xnEoAAAAAAAAAAAAAAAAHAAAAdXNlci5qc51WyW7bMBC99ysKn1qgJrK0l/aUpilQIGiKGkGPBEWOJMYUyXKx4r/vUEvs2DKV9GRLmiFnefPeRA+OWgflu0XhTItPxLMSuv9SV6RhqmUOCGhWKBCLD29Lpjy8//Im7jwFC2hjjQvJpQamQt0/EzTaSD7jryG0xq1JHYIltpa+3i7TZ8u8XyrQVajR8eLTp+duY8AOmMAfAQF4APFdOh+uMBauAN2Ci4fhmgbzeqS8dqYB6rmTNlAXNQ2ySS6XZ9MXBVZ4guXQd/paGQ/T2YzWwrRaGSbwLs2qVNjatH9q0CusVqrUtLvFoGzw6TLaGMHUTO1hE4xRnoBzxnGjvVH75T5O38tKG41Va6ApwK26R5/PxYP3Eq2CQSw48BHrVmKglDvm67yvknpNjAVN4TGA00ylZr4aQWVq6++opy9roR BObvCZcQ7Yzqgxc49woBxc8JOVeOqU9FaxLYib87PVT4PISa39OG2Mr8Sd/iM19tefnxGJF5n737fosWCFieFzoZheL44x1ydEmVL0wWMxUpyyL/1xbI9WYrnRlrS1DKCkD3jA3yjdKSQkGKxlIMM0jajD5BIWsgVQDBuDA5CHmk+4jZbUODUWz6YtKJ4mKLrU0sVByqnbukMNiRYbDERjacvtPZq8mkeiTaN0kw0PeHQybBEpCvAf8cFJHqhxspKaWqMk3+ahqqHFsSNDPpluPgu0P5mkl6tYNLIblV/dy6sOjC/jzcljshk/TefQmNQUtDzBXrs5xDTbDr/Hg2jKEu1gyaz1BNFnWlpsqYCSRRWm6WQsO/d2wM90tMd4yKJthDNiH5kquC3pmbGzv5izzR49VuTm/vaKXBK2a9Jxeg9sw3qFyJLqYSvGGcnjaBQ+zpAJNrBMUGBq+SLRPM7ZwUMngNkAe4in0PLH73WLxWC+9Syy4g igRFjn8xJ5h1CbPbtQhq87cntRxzwwx+sBP3Py25Ae5UTExma7h2h/ESafAceg2jgpppn1iIwOWehyGgk9ay/HMUQ4hTijzYPtCYoZdp35JWdPQX2n7zsFRSqKHWdnK5dgMh3E3gyZXvK6XeiHvu7XlZNb2qBdtGMtgWXUFU06MAOSGlA2eQ18/a0nrq/9l9fLGmFCyBQxm1GEyeX5f5dmZaoqvRy2uawG7M1Sl/E1ciQLspAqoU/Lqg7qhOrtuY43/g/F0XEQSIP7YQfERdopHRzUaLfSpBUUgY2L5MxOs5t7Vfpo+1Vgt238A1BLBwjbq6ZPpQMAAL4MAABQSwECFAAUAAgICAAvcZxK26umT6UDAAC+DAAABwAAAAAAAAAAAAAAAAAAAAAAdXNlci5qc1BLBQYAAAAAAQABADUAAADaAwAAAAA\u003d", "args": [] } } ] } } 1493384944975 geckodriver::capabilities DEBUG Extracting profile to C:\Users\ordnung\AppData\Local\Temp\rust_mozprofile.DVK4gXAApFeu\user.js 1493384944987 geckodriver::marionette INFO Starting browser \?\C:\ProgrammeDavid\FirefoxPortable-52\FirefoxPortable.exe with args ["-marionette"] 1493384946991 geckodriver::marionette TRACE connection attempt 0/600

I see the Firefox screen, but then it says: "Your Firefox profile cannot be loaded. It may be missing or inaccessible."

dordnung avatar Apr 28 '17 13:04 dordnung

@dordnung That’s not exactly the same problem at all. We don’t support Firefox Portable because it doesn’t support profiles. The problem you’re having is that it fails to load the profile we provide it.

andreastt avatar Apr 28 '17 13:04 andreastt

Oh you're right, sorry for this. Didn't thought that the portable version wouldn't work anymore. But the strange characters are there, too. But it doesn't have any impact as it works now with the installed firefox

dordnung avatar Apr 28 '17 13:04 dordnung

Yeah, so I’ve seen these characters in other screenshots on Windows too. I’m willing to bet we emit some escape code/special character when calling browser.display(), possibly because it’s part of the pathbuf string, that the Windows prompt doesn’t understand.

In any case, I don’t think it is anything to worry about.

andreastt avatar Apr 28 '17 13:04 andreastt

I updated to Selenium 3.4 and it seems to work, thank you very much

leondurand avatar Apr 28 '17 15:04 leondurand

Could you help me please to solve the same problem with Selenium 3.4.0, FF 52.0 (64bit), Windows 8.1 Pro, and geckodriver-v0.16.1-win64. My log: 1494304805310 geckodriver INFO Listening on 127.0.0.1:21695 1494304805959 geckodriver::marionette INFO Starting browser \?\C:\Program Files\Mozilla Firefox\firefox.exe with args ["-marionette"] 1494304806693 addons.manager ERROR startup failed: [Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIFile.create]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: resource://gre/modules/FileUtils.jsm :: FileUtils_getDir :: line 70" data: no] Stack trace: FileUtils_getDir()@resource://gre/modules/FileUtils.jsm:70 < FiJaleUtilvsa_SgcertiFpitl ee(r)r@orre:s oruerscoeu:r/c/eg:r/e//moduglrees//mFoidluelUetsi/lAsd.djosnmM:a4n2a g<e rA.djdsomn,M alniane 1g6e7r7I:n tNeSr_nEaRlR.OvRa_lNiOdTa_tIeNBIlToIcAkLlIiZsEtD(:) @ArdedsoonuMracnea:g/e/rg ries/ mnoodtu liensi/tAidadloniMzaend ager.jsm:700 < AddonManagerInternal.startup()@resource://gre/modules/AddonManager.jsm:870 < this.AddonManagerPrivate.startup()@resource://gre/modules/AddonManager.jsm:3033 < amManager.prototype.observe()@resource://gre/components/addonManager.js:65 1494304807087 Marionette INFO Listening on port 55648 JavaScript error: resource://gre/modules/AddonManager.jsm, line 2585: NS_ERROR_NOT_INITIALIZED: AddonManager is not initialized May 08, 2017 9:40:07 PM org.openqa.selenium.remote.ProtocolHandshake createSession INFO: Detected dialect: W3C

tsheva avatar May 09 '17 04:05 tsheva

@tsheva I don’t see anything immediately suspicious in that log. The errors and warnings you’re seeing come from addons.manager, which isn’t related to Marionette. These shouldn’t be anything to worry about.

andreastt avatar May 09 '17 06:05 andreastt

Could you please help me to fix the error. I found this topic https://github.com/mozilla/geckodriver/issues/684 and the problem was solved by upgrading WebDriver. But in my case it's still there, could you please help me. Do I need to create a different issue? Seems like there is a problem with untrusted certificates.

tsheva avatar May 09 '17 14:05 tsheva

@tsheva you might wanna provide more info, how does the info log look like

PascalGit1 avatar May 09 '17 14:05 PascalGit1

@PascalGit1, sorry but there is no version: 3.3.1 in my log? What the information do you need?

tsheva avatar May 09 '17 14:05 tsheva

Please note that for the addon manager related issue there is https://bugzilla.mozilla.org/show_bug.cgi?id=1364385. But that topic is not related to the one from the reporter.

whimboo avatar May 24 '17 07:05 whimboo

FireFox browser does not open when I run simple selenium script "just opening FF browser" in eclipse . I uninstalled and installed Firefox yesterday. Did that disturb the path? please guide

1495889096561 geckodriver INFO Listening on 127.0.0.1:35265 1495889097158 geckodriver::marionette INFO Starting browser \?\C:\Program Files\Mozilla Firefox\firefox.exe with args ["-marionette"] 1495889098506 addons.manager ERROR startup failed: [Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIFile.create]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: resource://gre/modules/FileUtils.jsm :: FileUtils_getDir :: line 70" data: no] Stack trace: FileUtils_getDir()@resource://gre/modules/FileUtils.jsm:70 < FileUtils_getFile()@resourcJavea:S/c/rgirpet/ meordruolre:s /rFeisloeuUrtciel:s/./jgsrme:/4m2o d<u lveasl/iAddadtoenBMlaoncakgleirs.t()@rjessmo,u rlcien:e/ /1g6r5e7/:m oNdSu_lEeRsR/OARd_dNoOnTM_aInNaIgTeIrA.LjIsZmE:D6:7 4A d<d osntMaarntaugpe(r) @irse snooutr cei:n/i/tgirael/imzoeddu l es/AddonManager.jsm:837 < startup()@resource://gre/modules/AddonManager.jsm:3145 < observe()@resource://gre/components/addonManager.js:65 [GFX1-]: PossiblyBrokenSurfaceSharing_UnexpectedAMDGPU 1495889103486 Marionette INFO Listening on port 54674 JavaScript error: resource://gre/modules/AddonManager.jsm, line 2572: NS_ERROR_NOT_INITIALIZED: AddonManager is not initialized Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities [{moz:firefoxOptions={binary=Optional.empty, args=[], legacy=null, logLevel=null, prefs={}, profile=null}}], required capabilities = Capabilities [{moz:firefoxOptions={binary=Optional.empty, args=[], legacy=null, logLevel=null, prefs={}, profile=null}}] Build info: version: 'unknown', revision: '5234b32', time: '2017-03-10 09:00:17 -0800' System info: host: 'my pc, ip: '000.000.0.0', os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.8.0_101' Driver info: driver.version: FirefoxDriver at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:126) at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:141) at org.openqa.selenium.remote.service.Driver System info: host: 'my pc, ip: '000.000.0.0', os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.8.0_101' Driver info: driver.version: FirefoxDriver at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:126) at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:141) at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:604) at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:244) at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:131) at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:218) at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:125) at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:121) at Com.WD.basics.Wd2FFdriverTest.main(Wd2FFdriverTest.java:13)

AnanyaTesting avatar May 27 '17 12:05 AnanyaTesting

@AnanyaTesting That seems entirely unrelated to this bug.

andreastt avatar May 27 '17 14:05 andreastt

I uninstalled everything and installed and set the java path and build path and jar files...now i am getting a different error messages. The fire fox browser opens though. If this is not related to the same bug shall I start a new issue?

1495952161955 geckodriver INFO Listening on xxxxxx 1495952162685 geckodriver::marionette INFO Starting browser \?\C:\Program Files\Mozilla Firefox\firefox.exe with args ["-marionette"] 1495952163695 addons.manager ERROR startup failed: [Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIFile.create]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: resource://gre/moduJavaScrilpet esrr/oFri:l erUetsiolusr.cjes:m/ /:g:r eF/imloedUutlielss/_AgdedtoDniMra n:a:g elri.njes m7,0 "l i ndea t1a6:5 no] Stack trac7e:: FNS_ERROR_NOT_INITIALIZED: AddonManager is not initialized ileUtils_getDir()@resource://gre/modules/FileUtils.jsm:70 < FileUtils_getFile()@resource://gre/modules/FileUtils.jsm:42 < validateBlocklist()@resource://gre/modules/AddonManager.jsm:674 < startup()@resource://gre/modules/AddonManager.jsm:837 < startup()@resource://gre/modules/AddonManager.jsm:3145 < observe()@resource://gre/components/addonManager.js:65 [GFX1-]: PossiblyBrokenSurfaceSharing_UnexpectedAMDGPU 1495952167511 Marionette INFO Listening on port 57274 JavaScript error: resource://gre/modules/AddonManager.jsm, line 2572: NS_ERROR_NOT_INITIALIZED: AddonManager is not initialized May 28, 2017 11:46:08 AM org.openqa.selenium.remote.ProtocolHandshake createSession INFO: Detected dialect: W3C

AnanyaTesting avatar May 28 '17 06:05 AnanyaTesting

The issue with the initialization of the add-on manager is covered by https://bugzilla.mozilla.org/show_bug.cgi?id=1364385 for now.

whimboo avatar May 29 '17 07:05 whimboo

The fix landed, and will be part of the next geckodriver release which we will get out the next days.

whimboo avatar Jun 06 '17 13:06 whimboo

Saw the below mentioned error.

Firefox version - 57

Gecko driver - 0.19.1.

Log

1512456259744 geckodriver INFO geckodriver 0.19.1 1512456259793 geckodriver INFO Listening on 127.0.0.1:42644 log4j:WARN No appenders could be found for logger (org.apache.http.client.protocol.RequestAddCookies). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. 1512456260823 mozrunner::runner INFO Running command: "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" "-marionette" "-profile" "C:\Users\TRINGA~1\AppData\Local\Temp\rust_mozprofile.sB49NrmjI0fX" 1512456264835 Marionette INFO Enabled via --marionette Unable to read VR Path Registry from C:\Users\tringapps\AppData\Local\openvr\openvrpaths.vrpath [Child 2724, Chrome_ChildThread] WARNING: pipe error: 109: file z:/build/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346 [Child 2724, Chrome_ChildThread] WARNING: pipe error: 109: file z:/build/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346 1512456272246 Marionette INFO Listening on port 53406 1512456272605 Marionette DEBUG Register listener.js for window 4294967297 org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities [{moz:firefoxOptions={binary=Optional.empty, args=[], legacy=null, logLevel=null, prefs={}, profile=null}}], required capabilities = Capabilities [{moz:firefoxOptions={binary=Optional.empty, args=[], legacy=null, logLevel=null, prefs={}, profile=null}}] Build info: version: 'unknown', revision: '5234b32', time: '2017-03-10 09:00:17 -0800' System info: host: 'DESKTOP-2TFCP46', ip: '10.1.0.172', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_144' Driver info: driver.version: FirefoxDriver

sankalpg123 avatar Dec 05 '17 06:12 sankalpg123

@sankalpg123, no you are not seeing this mentioned error. The paths of Firefox in your log look perfectly correct.

I'm going to lock this issue now, given that it got fixed a long time ago.

whimboo avatar Dec 05 '17 15:12 whimboo