Error communicating with the remote browser. It may have died.

24,476 views
Skip to first unread message

kamal

unread,
Mar 19, 2012, 8:51:44 AM3/19/12
to webdriver, kannan....@gmail.com
Hi,

I am trying to close and reopen another url in same browser. but when
i tried, the following error is displayed :
"org.openqa.selenium.remote.UnreachableBrowserException: Error
communicating with the remote browser. It may have died.".

I am using junit. I will be happy if i get a solutions for this.

Thanks in advance,
Kamal.

Mike Riley

unread,
Mar 19, 2012, 12:16:25 PM3/19/12
to webdriver
Hi Kamal,

Check out this issue:
http://code.google.com/p/selenium/issues/detail?id=3000&

I think there are many conditions under which this can happen. If
yours is readily reproducible you might want to see about adding it to
this issue.

Mike

Vince

unread,
Mar 22, 2012, 8:45:37 PM3/22/12
to webdriver
any updates for this issue, it occurs consistently for me.

Selenium 2.20.0 Firefox 10.0.2


Exception in thread "main"
org.openqa.selenium.remote.UnreachableBrowserException: Error
communicating with the remote browser. It may have died.
Build info: version: '2.20.0', revision: '16008', time: '2012-02-28
15:00:40'
System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version:
'10.6.8', java.version: '1.6.0_26'
Driver info: driver.version: RemoteWebDriver
at
org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:
435)
at
org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:
442)
at
org.openqa.selenium.remote.RemoteWebDriver.close(RemoteWebDriver.java:
313)
at com.zynga.Runner.main(Runner.java:106)
Caused by: org.apache.http.ConnectionClosedException: Premature end of
Content-Length delimited message body (expected: 209; received: 0
at
org.apache.http.impl.io.ContentLengthInputStream.read(ContentLengthInputStream.java:
178)
at
org.apache.http.impl.io.ContentLengthInputStream.read(ContentLengthInputStream.java:
197)
at
org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:
155)
at org.apache.http.util.EntityUtils.toByteArray(EntityUtils.java:100)
at org.openqa.selenium.remote.HttpCommandExecutor
$EntityWithEncoding.<init>(HttpCommandExecutor.java:392)
at
org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:
287)
at
org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.execute(NewProfileExtensionConnection.java:
122)
at org.openqa.selenium.firefox.FirefoxDriver
$LazyCommandExecutor.execute(FirefoxDriver.java:266)
at
org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:
415)
... 3 more



On Mar 19, 9:16 am, Mike Riley <lvskip...@cox.net> wrote:
> Hi Kamal,
>
> Check out this issue:http://code.google.com/p/selenium/issues/detail?id=3000&
>
> I think there are many conditions under which this can happen.  If
> yours is readily reproducible you might want to see about adding it to
> this issue.
>
> Mike
>
> On Mar 19, 5:51 am, kamal <rajvikan...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > I am trying to close and reopen another url in samebrowser. but when
> > i tried, the following error is displayed :
> > "org.openqa.selenium.remote.UnreachableBrowserException: Error
> >communicatingwith theremotebrowser. Itmayhavedied.".

Vince

unread,
Apr 12, 2012, 6:46:19 PM4/12/12
to webd...@googlegroups.com
any update

Mike Riley

unread,
Apr 12, 2012, 6:52:46 PM4/12/12
to webd...@googlegroups.com
I believe that 2.21.0 is supposed to provide improve information as to the failure cause and it was just released today.  I am still experimenting with it.

Mike

Vince

unread,
May 3, 2012, 4:12:30 PM5/3/12
to webd...@googlegroups.com
i dont see any useful info with 2.21.0

Exception in thread "main" org.openqa.selenium.remote.UnreachableBrowserException: Error communicating with the remote browser. It may have died.

Build info: version: '2.2.1', revision: '16551', time: '2012-04-11 21:42:35'

System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.6.8', java.version: '1.6.0_26'

Driver info: driver.version: RemoteWebDriver

at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:454)

at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:463)

at org.openqa.selenium.remote.RemoteWebDriver.close(RemoteWebDriver.java:326)

at com.zynga.Runner.main(Runner.java:107)

Caused by: org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 209; received: 0

at org.apache.http.impl.io.ContentLengthInputStream.read(ContentLengthInputStream.java:178)

at org.apache.http.impl.io.ContentLengthInputStream.read(ContentLengthInputStream.java:197)

at org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:155)

at org.apache.http.util.EntityUtils.toByteArray(EntityUtils.java:100)

at org.openqa.selenium.remote.HttpCommandExecutor$EntityWithEncoding.<init>(HttpCommandExecutor.java:391)

at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:286)

at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.execute(NewProfileExtensionConnection.java:129)

at org.openqa.selenium.firefox.FirefoxDriver$LazyCommandExecutor.execute(FirefoxDriver.java:279)

at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:432)

... 3 more

Peter Gale

unread,
May 3, 2012, 4:35:10 PM5/3/12
to webd...@googlegroups.com
I got this error too the other day while using Selenium 2.19 and Firefox 3.6.8. The problem persisted after upgrading to Selenium 2.21 and Firefox 11.
 
My problem occurs consistently whilen recursively navigating down all the elements from the top (html) tag down, It occurs in every web page I've ran it under so should be easily reproducable.
 
I see below that we were asked to add the issue here: http://code.google.com/p/selenium/issues/detail?id=3000&
 
... but Kristian has asked that we keep that issue to Chromedriver related occurrences, so I'll log a new issue tomorrow unless can point me to an existing Firefox related issue for this error message.
 
Peter
 

Date: Thu, 3 May 2012 13:12:30 -0700
From: juky...@gmail.com
To: webd...@googlegroups.com
Subject: [webdriver] Re: Error communicating with the remote browser. It may have died.
--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To view this discussion on the web visit https://groups.google.com/d/msg/webdriver/-/F0AxL_xGAAIJ.
To post to this group, send email to webd...@googlegroups.com.
To unsubscribe from this group, send email to webdriver+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.

Peter Gale

unread,
May 3, 2012, 4:38:47 PM5/3/12
to webd...@googlegroups.com

> i dont see any useful info with 2.21.0
 

> Exception in thread "main" org.openqa.selenium.remote.UnreachableBrowserException: Error communicating with the remote browser. It may have died.

Build info: version: '2.2.1', revision: '16551', time: '2012-04-11 21:42:35'

System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.6.8', java.version: '1.6.0_26'

 
You mention version 2.21.0 but your stack trace shows v2.2.1 ... is that a typo you've made or does the v2.21.0 stacktrace really say v2.2.1?
 
I can't see any more useful when it occurs under 2.21.0 either.
 

Vince

unread,
May 3, 2012, 4:45:34 PM5/3/12
to webd...@googlegroups.com
this copied forn trace not sure why there is a "2.2.1"

Peter Gale

unread,
May 3, 2012, 4:47:02 PM5/3/12
to webd...@googlegroups.com
hmmn .. I'll see what mine says tomorrow at work ... the build date looks right.
 

Date: Thu, 3 May 2012 13:45:34 -0700
From: juky...@gmail.com
To: webd...@googlegroups.com
Subject: Re: [webdriver] Re: Error communicating with the remote browser. It may have died.
--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To view this discussion on the web visit https://groups.google.com/d/msg/webdriver/-/ssv04GbsN0cJ.

Vince

unread,
May 3, 2012, 4:49:57 PM5/3/12
to webd...@googlegroups.com
seems not only me got this, see last two (last one is mine)

To unsubscribe from this group, send email to webdriver+unsubscribe@googlegroups.com.

Peter Gale

unread,
May 3, 2012, 4:55:05 PM5/3/12
to webd...@googlegroups.com
 Hopefully just a minor typo on behalf of whoever did the build then ... but I wouldn't have throught that was possible with current build tools.
 

Date: Thu, 3 May 2012 13:49:57 -0700
To view this discussion on the web visit https://groups.google.com/d/msg/webdriver/-/emBNm8CpQicJ.

To post to this group, send email to webd...@googlegroups.com.
To unsubscribe from this group, send email to webdriver+...@googlegroups.com.

Mike Riley

unread,
May 4, 2012, 1:39:28 AM5/4/12
to webd...@googlegroups.com
It was a typo in the build.

Mike

PeterJef...@hotmail.co.uk

unread,
May 4, 2012, 5:48:23 AM5/4/12
to webd...@googlegroups.com
Vince

Mike's confirmed its was a typo. I've checked the current download looks right so you might want to just re-download the jar file for v2.21.

Peter

Krishnan Mahadevan

unread,
Sep 11, 2012, 8:47:15 AM9/11/12
to webd...@googlegroups.com
Ravi,
You are posting on a very old thread [March 2012]

Can you please provide some additional info ?

1. Browser version and flavor ?
2. Client bindings flavor ? [.NET/Java/Python]
3. Selenium version that you are using ? [Latest version is 2.25.0]

Sample code that you are using that triggers this error ?

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"



On Mon, Sep 10, 2012 at 4:22 PM, ravigupta <canceri...@gmail.com> wrote:
Hi All,

I m also facing the same issue.. This has happened when after first time i re-run the code. the issue has popped up . Please can anyone help.?

--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To view this discussion on the web visit https://groups.google.com/d/msg/webdriver/-/2IZF0f_119oJ.

Sushruth Bharath HG

unread,
Sep 12, 2012, 3:28:08 AM9/12/12
to webd...@googlegroups.com, kannan....@gmail.com
Hi

Are you running using node and client, I mean remotewebdriver??

2012/9/10 ravigupta <canceri...@gmail.com>
Hi All,

I m also facing the same issue.. This has happened when after first time i re-run the code. the issue has popped up . Please can anyone help.?

On Monday, 19 March 2012 12:51:44 UTC, kamal wrote:

--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To view this discussion on the web visit https://groups.google.com/d/msg/webdriver/-/2IZF0f_119oJ.
To post to this group, send email to webd...@googlegroups.com.
To unsubscribe from this group, send email to webdriver+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.



--
Thanks and Regards

Sushruth Bharath H.G

Pooja Shah

unread,
Feb 11, 2014, 1:45:24 AM2/11/14
to webd...@googlegroups.com, kannan....@gmail.com
Hi Ravi

I'm also facing the same issue. no mater I use remotewebdriver or not, while running code on remote machine via Jenkins (xvfb buffer.

"UnreachableBrowserException: Error communicating with the remote browser. It may have died"
it happens randomly, next time you run the same code on jenkins, it works fine again, seems like, some other processes running on remote machine mights have caused it to be killed.
how to handle, because remote machine is like server, and don't have any control on other processes.
Please do share if there is any hack which have worked for you.
I'm using webdriver 2.28, FF17, Jenkins, git

Thanks,
Pooja
Message has been deleted
Message has been deleted
Message has been deleted

darrell

unread,
Mar 30, 2014, 9:53:27 AM3/30/14
to webd...@googlegroups.com, kannan....@gmail.com
Fernando,

Maybe it is just me but replying to three people in the same thread, seconds apart, with EXACTLY the same text is rather annoying. This strikes me as the same as, you are at a party, you walk up to a group of people, you ask a question of the group but you look at Ravi. Before anyone can reply, you then ask EXACTLY the same question but this time you look at Pooja. You are obviously addressing the entire group. Again, before anyone can answer your question, you look at Kamal and ask EXACTLY the same question.

For example, look at Ravi, "Can someone tell me where the bathroom is?", look at Pooja, "Can someone tell me where the bathroom is?", look at Kamal, "Can someone tell me where the bathroom is?".

Darrell


On Thursday, 27 March 2014 13:23:33 UTC-4, Fernando Silvestre wrote:
I'm facing the same problem in Jenkins via xvfb. But there's no concurrent process while i'm running Selenium tests via Jenkins.
I'm using ant 1.8.4, Java 1.6 64 Bit,  MS Internet Explorer 9 and WebDriver IE Driver Server 2.37
Could someone help?

Greets,
Fernando
Message has been deleted

darrell

unread,
Apr 1, 2014, 10:16:57 AM4/1/14
to webd...@googlegroups.com, kannan....@gmail.com
Ah, it just seemed weird that rather than trying to post the same reply, TO THE SAME PERSON, you posted the EXACT message as a reply to three different people. 

On Monday, 31 March 2014 10:51:17 UTC-4, Fernando Silvestre wrote:
Sorry, Darrell. Google sent me messages saying my tries of sending messages were failed, but all messages were sent.



--
You received this message because you are subscribed to a topic in the Google Groups "webdriver" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/webdriver/5oDVuv86HcA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to webdriver+...@googlegroups.com.

To post to this group, send email to webd...@googlegroups.com.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages