Firefox aborts on Channel Error in Selenium 3

1,877 views
Skip to first unread message

Yukti Gupta

unread,
Aug 19, 2016, 5:17:35 AM8/19/16
to Selenium Users
Hi,

Im using Firefox 48.0.1 and Selenium beta 2 jar. Firefox aborts on Channel error on the following code:

public void initializeDriver()
    {
       
        System.setProperty("webdriver.gecko.driver","C:\\Users\\ygupt8\\Documents\\JARs\\geckodriver.exe");
       
         
        WebDriver driver = new FirefoxDriver();
        driver.manage().window().maximize();
        driver.get("https://www.google.co.in");
        driver.manage().timeouts().implicitlyWait(30,TimeUnit.SECONDS);
        driver.quit();
    }

The console print is:

1471596535633    Marionette    INFO    Listening on port 58769
1471596537628    Marionette    INFO    startBrowser 08d483d0-d749-45ff-9cde-f5f948b9d8ad
1471596537637    Marionette    INFO    sendAsync 08d483d0-d749-45ff-9cde-f5f948b9d8ad
1471596538252    Marionette    INFO    sendAsync 08d483d0-d749-45ff-9cde-f5f948b9d8ad
1471596538265    Marionette    INFO    sendAsync 08d483d0-d749-45ff-9cde-f5f948b9d8ad
[Child 1952] ###!!! ABORT: Aborting on channel error.: file c:/builds/moz2_slave/m-rel-w32-00000000000000000000/build/src/ipc/glue/MessageChannel.cpp, line 2046

and following TestNg Message Trace is thrown:

org.openqa.selenium.remote.UnreachableBrowserException: Error communicating with the remote browser. It may have died.
Build info: version: '3.0.0-beta2', revision: '2aa21c1', time: '2016-08-02 15:03:28 -0700'
System info: host: 'NOIYGUPT841559', ip: '10.203.60.197', os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.8.0_101'
Driver info: driver.version: RemoteWebDriver
Capabilities [{rotatable=false, raisesAccessibilityExceptions=false, appBuildId=20160817112116, version=, platform=XP, proxy={}, command_id=1, specificationLevel=0, acceptSslCerts=false, browserVersion=48.0.1, platformVersion=6.1, XULappId={ec8030f7-c20a-464f-9b0e-13a3a9e97384}, browserName=Firefox, takesScreenshot=true, takesElementScreenshot=true, platformName=Windows_NT, device=desktop}]
Session ID: 08d483d0-d749-45ff-9cde-f5f948b9d8ad
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:670)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:706)
    at org.openqa.selenium.remote.RemoteWebDriver.quit(RemoteWebDriver.java:531)
    at Package.PracticeClass.initializeDriver(PracticeClass.java:27)
    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:84)
    at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:564)
    at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213)
    at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138)
    at org.testng.SuiteRunner.privateRun(SuiteRunner.java:277)
    at org.testng.SuiteRunner.run(SuiteRunner.java:240)
    at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
    at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
    at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
    at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
    at org.testng.TestNG.run(TestNG.java:1057)
    at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:126)
    at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:152)
    at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:57)
Caused by: java.lang.IllegalStateException: UnixUtils may not be used on Windows
    at org.openqa.selenium.os.ProcessUtils.getProcessId(ProcessUtils.java:188)
    at org.openqa.selenium.os.UnixProcess$SeleniumWatchDog.getPID(UnixProcess.java:222)
    at org.openqa.selenium.os.UnixProcess$SeleniumWatchDog.access$300(UnixProcess.java:201)
    at org.openqa.selenium.os.UnixProcess.destroy(UnixProcess.java:132)
    at org.openqa.selenium.os.CommandLine.destroy(CommandLine.java:155)
    at org.openqa.selenium.remote.service.DriverService.stop(DriverService.java:196)
    at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:94)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:649)
    ... 21 more

Please help?
regards
Yukti Gupta

Aniket Mane

unread,
Aug 19, 2016, 5:23:14 AM8/19/16
to seleniu...@googlegroups.com, yukti.a...@gmail.com

Hi Yukti,
Please check geckodriver exe is of version 10.0 since beta 2 supports 10.0 gecko driver.


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/416a897a-1d6d-47ba-806b-b1178c3ef011%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Yukti Gupta

unread,
Aug 19, 2016, 5:44:30 AM8/19/16
to Selenium Users, yukti.a...@gmail.com
Hi Aniket,

Yes. The version of geckodriver.exe is 10.0
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.

Yukti Gupta

unread,
Aug 19, 2016, 6:17:42 AM8/19/16
to Selenium Users
This code is working fine on FF 45, Chrome and IE but not on FF 48.

A.phani chakravarthy

unread,
Aug 19, 2016, 3:46:37 PM8/19/16
to Selenium Users
Hi, Its an open issue the gecko driver is not supporting FF48. Its needs to updated to support FF48

Vineet Kumar

unread,
Sep 28, 2016, 4:17:28 AM9/28/16
to Selenium Users
The issue is with driver.quit(). Try commenting it and it will run fine.
Here is my test code and console stacktrace

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.ie.InternetExplorerDriver;


public class Test {
public static void main(String[] args) {
// TODO Auto-generated method stub
// System.setProperty("webderiver.firefox.marionette","E:\\Selenium\\Browser drivers.geckodriver.exe");
System.setProperty("webdriver.gecko.driver","E:\\Selenium\\Browser_drivers\\geckodriver.exe");
System.setProperty("webdriver.chrome.driver","E:\\Selenium\\Browser_drivers\\chromedriver.exe");
System.setProperty("webdriver.ie.driver", "E:\\Selenium\\Browser_drivers\\IEDriverServer.exe");

WebDriver driver = new FirefoxDriver();
driver.get("http://www.metacube.com");
driver.manage().window().maximize();
System.out.println ("congrats! you have resumed selenium!");
driver.quit();
WebDriver crdriver = new ChromeDriver();
crdriver.get("http://www.metacube.com");
crdriver.manage().window().maximize();
System.out.println ("congrats! you have resumed selenium!");
crdriver.quit();
WebDriver iedriver = new InternetExplorerDriver();
iedriver.get("http://www.facebook.com");
iedriver.manage().window().maximize();
System.out.println ("congrats! you have resumed selenium!");
iedriver.quit();
}

}


STACKTRACE:

Sep 28, 2016 1:38:14 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Attempting bi-dialect session, assuming Postel's Law holds true on the remote end
1475050122865 Marionette INFO Listening on port 65062
1475050135968 Marionette INFO startBrowser df51720e-be6a-4e62-8f7c-25b399b7ccb9
Sep 28, 2016 1:38:59 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
congrats! you have resumed selenium!
[Child 4808] ###!!! ABORT: Aborting on channel error.: file c:/builds/moz2_slave/m-rel-w32-00000000000000000000/build/src/ipc/glue/MessageChannel.cpp, line 2052
Exception in thread "main" org.openqa.selenium.remote.UnreachableBrowserException: Error communicating with the remote browser. It may have died.
Build info: version: 'unknown', revision: 'c7b525d', time: '2016-09-01 14:52:30 -0700'
System info: host: 'VINEET-KUMAR', ip: '10.1.7.114', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_102'
Driver info: driver.version: RemoteWebDriver
Capabilities [{rotatable=false, raisesAccessibilityExceptions=false, appBuildId=20160922113459, version=, platform=XP, proxy={}, command_id=1, specificationLevel=0, acceptSslCerts=false, processId=4768, browserVersion=49.0.1, platformVersion=10.0, XULappId={ec8030f7-c20a-464f-9b0e-13a3a9e97384}, browserName=firefox, takesScreenshot=true, takesElementScreenshot=true, platformName=windows_nt, device=desktop}]
Session ID: df51720e-be6a-4e62-8f7c-25b399b7ccb9
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:618)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:654)
at org.openqa.selenium.remote.RemoteWebDriver.quit(RemoteWebDriver.java:493)
at Test.main(Test.java:20)
Caused by: java.lang.IllegalStateException: UnixUtils may not be used on Windows
at org.openqa.selenium.os.ProcessUtils.getProcessId(ProcessUtils.java:188)
at org.openqa.selenium.os.UnixProcess$SeleniumWatchDog.getPID(UnixProcess.java:222)
at org.openqa.selenium.os.UnixProcess$SeleniumWatchDog.access$300(UnixProcess.java:201)
at org.openqa.selenium.os.UnixProcess.destroy(UnixProcess.java:132)
at org.openqa.selenium.os.CommandLine.destroy(CommandLine.java:155)
at org.openqa.selenium.remote.service.DriverService.stop(DriverService.java:196)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:94)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:597)
... 3 more

On Friday, August 19, 2016 at 2:47:35 PM UTC+5:30, Yukti Gupta wrote:

Andreas Tolfsen

unread,
Sep 28, 2016, 4:25:54 AM9/28/16
to seleniu...@googlegroups.com, Yukti Gupta
Everyone,

Yukti Gupta <yukti.a...@gmail.com> writes:

> Im using Firefox 48.0.1 and Selenium beta 2 jar. Firefox aborts on
> Channel error on the following code:

[…]

> [Child 1952] ###!!! ABORT: Aborting on channel error.: file
> c:/builds/moz2_slave/m-rel-w32-00000000000000000000/build/src/ipc/glue/MessageChannel.cpp,
> line 2046

This was tracked by https://github.com/mozilla/geckodriver/issues/210
and fixed in https://bugzilla.mozilla.org/show_bug.cgi?id=1051567.

The fix is available in Firefox 49 or later.

Vineet Kumar

unread,
Sep 28, 2016, 5:05:19 AM9/28/16
to Selenium Users, yukti.a...@gmail.com
Doesn't seem so. I am using FireFox 49.0.1 and this issue is still there.

anemuday

unread,
Sep 28, 2016, 5:40:51 AM9/28/16
to Selenium Users, yukti.a...@gmail.com
I think when we have to work on FF>=48, better switch to Selenium 3 Beta.


I ran couple of tests on FF48 using Selenium 3, didnt seen any issues.

Thanks,
Uday

Andreas Tolfsen

unread,
Sep 28, 2016, 7:34:35 AM9/28/16
to seleniu...@googlegroups.com, Vineet Kumar, yukti.a...@gmail.com
Vineet Kumar <vineetk...@gmail.com> writes:

> Doesn't seem so. I am using FireFox 49.0.1 and this issue is still
> there.

49.0.1 might have been released before that patch was uplifted. I
would recommend using Nightly when working with geckodriver and
Marionette.

Dave Teply

unread,
Dec 26, 2016, 12:03:47 AM12/26/16
to Selenium Users
I am also experiencing this.  Selenium 2.53.1 (I am stuck using Java 7 at the moment) with FF 55.1.0

Rahul Pandya

unread,
Feb 15, 2017, 5:00:52 AM2/15/17
to Selenium Users
Got error with FF51.1.0 32 bit. I'm using Selenium jar 3.0.1 and Java 7. 

[Child 5720] ###!!! ABORT: Aborting on channel error.: file c:/builds/moz2_slave/m-rel-w32-00000000000000000000/build/src/ipc/glue/MessageChannel.cpp, line 2056
Feb 15, 2017 1:25:09 PM org.openqa.selenium.os.UnixProcess destroy
SEVERE: Unable to kill process with PID 8992

Gina Bennett

unread,
Feb 20, 2017, 4:34:38 AM2/20/17
to Selenium Users
Me too!

Geetha Pulivarthi

unread,
Mar 6, 2017, 11:38:12 PM3/6/17
to Selenium Users
Even with Selenium 3.2 also I am getting the same error, if I use driver.quit() in my program.. there is no error if I use driver.close()....but with driver.close() the browser will not be closed.

Harish Kumar

unread,
Mar 7, 2017, 5:19:43 AM3/7/17
to Selenium Users
Use Selenium 3.2.0.jar and install gecko driver.exe from seleniumhw.org site.

copy this code  and change the path of gecko driver.


 System.setProperty("webdriver.chrome.driver", "path\\geckodriver.exe");
     driver=new FirefoxDriver();
      .
and then execute.it should work successfully.




On Friday, August 19, 2016 at 2:47:35 PM UTC+5:30, Yukti Gupta wrote:

Geetha Pulivarthi

unread,
Mar 7, 2017, 5:31:36 AM3/7/17
to Selenium Users
Yes, I have installed geck driver from seleniumhq.org
and used


 System.setProperty("webdriver.gecko.driver", "path\\geckodriver.exe");
     driver=new FirefoxDriver();

no luck with this also...
      .

Harish Kumar

unread,
Mar 7, 2017, 12:36:56 PM3/7/17
to seleniu...@googlegroups.com
please see the video for your reference.

https://www.youtube.com/watch?v=T1OoEOltHqM

--
You received this message because you are subscribed to a topic in the Google Groups "Selenium Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/selenium-users/qBf07vob5dU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/3614cf30-f0c1-42b4-b381-d501f99ead1e%40googlegroups.com.

Erich Siffert

unread,
Mar 8, 2017, 5:46:49 AM3/8/17
to Selenium Users
Hi there

this does not seem to work for quite a while, see
https://github.com/robotframework/Selenium2Library/issues/676
which covers more or less the same topic....
Reply all
Reply to author
Forward
0 new messages