ericmckean / chromedriver

Automatically exported from code.google.com/p/chromedriver
0 stars 0 forks source link

Chrome driver crashes when opens a new tab #772

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

Issue Description:
- I am running tests using selenium 2.0 and chrome driver. Some of my tests 
need to open a new tab upon clicking link on a page. These tests were running 
fine until chrome was updated to 34.0.

I am getting below errors while trying to  open a new tab following which 
Chrome driver is crashing

-> error: unknown error: session deleted because of page crash
from tab crashed
  (Session info: chrome=34.0.1847.116)
  (Driver info: chromedriver=2.8.241075,platform=Windows NT 6.1 SP1 x86_64)

Original issue reported on code.google.com by matbar.s...@gmail.com on 28 Apr 2014 at 8:46

GoogleCodeExporter commented 9 years ago
Would you mind providing a reproducible html test page and test code?
Verbose chromedriver.log is also helpful for us.

It seems like a renderer crash in Chrome.

Original comment by st...@chromium.org on 28 Apr 2014 at 5:27

GoogleCodeExporter commented 9 years ago
Hi guys,

Example in C#.

 WebDriverManager.Open("http://www.carsales.com.au/");
            WebDriverManager.Click("//a[contains(@href,'discountnewcars.com.au') and @target='_blank']");
            //The following 2 lines doesn't work.
            WebDriverManager.Driver.SwitchTo().Window(WebDriverManager.Driver.WindowHandles[0]);
            WebDriverManager.Driver.SwitchTo().Window(WebDriverManager.Driver.WindowHandles[1]);

This happens since Chrome upgrade from v33 to v34. Upgrading Selenium C# 
library and ChromeDriver.exe doesn't help.

Cheers,
Ming

Original comment by mingz...@gmail.com on 28 Apr 2014 at 11:23

GoogleCodeExporter commented 9 years ago
Hi Prudhvi,
would you mind checking if the renderer crash is reproducible?

Hi Ming,
have you tried with chromedriver 2.9? Will it resolve your issue?

Original comment by st...@chromium.org on 29 Apr 2014 at 3:55

GoogleCodeExporter commented 9 years ago
Hi Guys,

Yes we have tried running our tests with chrome v2.9 and it continues to fail 
with below errors:

-> error: unknown error: session deleted because of page crash
from tab crashed
  (Session info: chrome=34.0.1847.116)
  (Driver info: chromedriver=2.9.248315,platform=Windows NT 6.1 SP1 x86_64)

Original comment by matbar.s...@gmail.com on 29 Apr 2014 at 4:34

GoogleCodeExporter commented 9 years ago
Hi All 

If possible can you please try to run the test on Chrome dev channel i.e., 
36.0.1964.4 and let us know if it's fixed. 

Original comment by pbommana@chromium.org on 30 Apr 2014 at 11:12

GoogleCodeExporter commented 9 years ago
I'm experiencing the same issue and tried on it on the chrome dev channel - 
same thing.

Original comment by tandrewn...@gmail.com on 1 May 2014 at 5:46

GoogleCodeExporter commented 9 years ago
Working fine for me on Chrome Dev Channel 36.0.1964 and Chromedriver 2.9/Ruby

Original comment by i...@ryancastro.com on 5 May 2014 at 2:22

GoogleCodeExporter commented 9 years ago
I have a similar issue after opening a new tab by clicking on a link with 
target="_blank". It happens after a few hundred clicks. After the crash, in the 
process explorer I can still see chrome processes but there are no visible 
windows.

The error I have is:

System.InvalidOperationException: unknown error: session deleted because of 
page crash
from unknown error: cannot determine loading status
from tab crashed
  (Session info: chrome=36.0.1985.84)
  (Driver info: chromedriver=2.10.267521,platform=Windows NT 6.1 SP1 x86_64)

Original comment by vladimir...@gmail.com on 23 Jun 2014 at 7:52

GoogleCodeExporter commented 9 years ago
We are facing this issue when ever mouse hover action taken place in the 
execution. 

The exception i faced is 

org.openqa.selenium.WebDriverException: unknown error: session deleted because 
of page crash
from tab crashed
  (Session info: chrome=35.0.1916.153)
  (Driver info: chromedriver=2.8.241075,platform=Windows NT 6.1 SP1 x86_64)

Pls tell some suggestion to fix this issue if u faced like this before.

Original comment by kkaruppa...@sirahu.com on 11 Jul 2014 at 11:23

GoogleCodeExporter commented 9 years ago
We experienced this after infrastructure upgrade with Selenium 2.42.2, Chrome 
36 and ChromeDriver 2.10. After we upgraded Chrome once again to 37, the issue 
was gone for us.

Original comment by Actin...@gmail.com on 8 Oct 2014 at 9:30

GoogleCodeExporter commented 9 years ago
Yup, happened for me with 2.10 and 2.11 on chrome 38

Original comment by n...@nijotz.com on 24 Oct 2014 at 8:06

GoogleCodeExporter commented 9 years ago
Hello all, I am facing same issue on chrome 38 and chrome driver 2.11 can 
someone please give a solution.

Original comment by pashmina...@gmail.com on 17 Nov 2014 at 2:22

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

Original comment by samu...@chromium.org on 21 Feb 2015 at 12:18

GoogleCodeExporter commented 9 years ago
I tried the below code on chrome browser version 40 & 41 , Issue is not 
reproducible

driver.get("http://www.carsales.com.au/");
        driver.findElement(By.xpath("//a[contains(@href,'discountnewcars.com.au') and @target='_blank']")).click();

        Set<String> handle = driver.getWindowHandles();
        Iterator <String> itr = handle.iterator();

        String parent = itr.next();
        String child = itr.next();

        driver.switchTo().window(child);
        System.out.println(driver.getCurrentUrl());
        driver.close();
        driver.switchTo().window(parent);

Can you please try with the latest version & let us know if you see any issue

Original comment by gmanikp...@chromium.org on 17 Mar 2015 at 8:50