FuckTheWorld / chromedriver

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

chromedriver failed to close the browser window on Ubuntu #1139

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
See http://goo.gl/ll2FvQ for common issues.

Issue Description:

Steps to reproduce (if relevant, you MUST provide a simplified html page or
link to public site):
Start the Selenium Server with 2.46 jar and 2_16 chromedriver linux 64 on a 
Ubuntu box. The browser version is: Version 43.0.2357.130 (64-bit)
Use ruby code to open the remote browser
Then close it. 

irb(main):003:0> driver = Selenium::WebDriver.for(:remote, 
:desired_capabilities => :chrome, :url=>'http://127.0.0.1:4444/wd/hub')
driver.quit

On the server side, the log is:
14:47:33.314 INFO - Done: [new session: Capabilities [{platform=ANY, 
cssSelectorsEnabled=true, javascriptEnabled=true, browserName=chrome, 
nativeEvents=false, rotatable=false, takesScreenshot=false, version=}]]
14:47:47.627 INFO - Executing: [delete session: 
7037f167-1d85-4b60-adbf-1b65ca3576a8])
14:47:50.191 INFO - Command failed to close cleanly. Destroying forcefully 
(v2). org.openqa.selenium.os.UnixProcess$SeleniumWatchDog@48b7638f
14:47:51.197 ERROR - Unable to kill process with PID 12785
14:47:51.197 INFO - Done: [delete session: 7037f167-1d85-4b60-adbf-1b65ca3576a8]

-----Other helpful tips:
Attach your chromedriver log with verbose logging enabled (see
http://goo.gl/5Sx8mC for how to do this).

Original issue reported on code.google.com by majun...@gmail.com on 29 Jun 2015 at 9:52

GoogleCodeExporter commented 9 years ago
Unfortunately, 12785 is actually the remote-debugging-port number. 

Original comment by majun...@gmail.com on 29 Jun 2015 at 9:53

GoogleCodeExporter commented 9 years ago
majun8cn@

thanks for filing bug, I have tried this issue in:- 
OS:- Ubuntu 14.04
chromeDriver:- 2.16
Chrome Browser:- version:- 43.0.2357.130
Selenium:- 2.46

And unable to reproduce the issue. please let us know if this is what you were 
trying when you faced this issue ? if this is consistently reproducible.

----steps-----
run- java -jar selenium-server-standalone-2.46.0.jar -role hub
run- java -jar selenium-server-standalone-2.46.0.jar 
-Dwebdriver.chrome.driver=chromedriver216 -role node -hub 
http://localhost:4444/grid/register

both are running in same Ubuntu machine.
---------------test case -------------
require 'rubygems'
require 'selenium-webdriver'

driver = Selenium::WebDriver.for(:remote, :url => 
'http://localhost:4444/wd/hub', :desired_capabilities => :chrome)
driver.navigate.to "http://google.com"
sleep(5)
driver.quit

Original comment by agau...@chromium.org on 30 Jun 2015 at 11:00

GoogleCodeExporter commented 9 years ago
Hi there,

My OS: Ubuntu 12.04.5 LTS
chromdriver: 2.16 Linux 64bit
chrome browser: 43.0.2357.130 (64-bit)
Selenium 2.46

My command: 
java -jar selenium-server-standalone-2.46.0.jar 
-Dwebdriver.chrome.driver=chromedriver2_16 -maxSessions 12 -trustAl
lSSLCertificates -browser 
browsername=firefox,version=21.0,maxInstances=6,platform=LINUX -browser 
browsername=chrom
e,version=28.0,maxInstances=10,platform=LINUX

Please ignore the browserversion setting. They are not relevant. 

I did the exactly same steps, but still failed. 
Build info: version: '2.46.0', revision: '87c69e2', time: '2015-06-04 16:16:47'
System info: host: 'ud43d7e5a73ed5123c324', ip: '127.0.1.1', os.name: 'Linux', 
os.arch: 'amd64', os.version: '3.5.0-54-generic', java.version: '1.7.0_51'
Session ID: 9254c7178075cc3c801a687b19c1d1e8
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities [{platform=LINUX, acceptSslCerts=true, javascriptEnabled=true, 
browserName=chrome, chrome={userDataDir=/tmp/.com.google.Chrome.iJ8A1Q}, 
rotatable=false, locationContextEnabled=true, mobileEmulationEnabled=false, 
version=43.0.2357.130, takesHeapSnapshot=true, cssSelectorsEnabled=true, 
databaseEnabled=false, handlesAlerts=true, browserConnectionEnabled=false, 
webStorageEnabled=true, nativeEvents=true, hasTouchScreen=false, 
applicationCacheEnabled=false, takesScreenshot=true}]
09:15:32.577 INFO - Executing: [get: http://www.google.com])
09:15:33.522 INFO - Done: [get: http://www.google.com]
09:15:44.223 INFO - Executing: [delete session: 
58f89687-958d-4c02-afa3-9e56db6e2e0a])
09:15:46.788 INFO - Command failed to close cleanly. Destroying forcefully 
(v2). org.openqa.selenium.os.UnixProcess$SeleniumWatchDog@9e7b56b
09:15:47.794 ERROR - Unable to kill process with PID 6567
09:15:47.794 INFO - Done: [delete session: 58f89687-958d-4c02-afa3-9e56db6e2e0a]

I am going to try the 32bit driver. 

Original comment by majun...@gmail.com on 30 Jun 2015 at 4:16

GoogleCodeExporter commented 9 years ago
the 32bit driver behaves the same way. 

Original comment by majun...@gmail.com on 30 Jun 2015 at 4:19

GoogleCodeExporter commented 9 years ago
I probably can help to debug. 
Would you please point me to the cc file and the function I should look at?

Original comment by majun...@gmail.com on 30 Jun 2015 at 5:32

GoogleCodeExporter commented 9 years ago
Any update on this?

Original comment by majun...@gmail.com on 6 Jul 2015 at 4:34