rshf / chromedriver

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

unknown error: Chrome failed to start: exited abnormally (Driver info: chromedriver=2.9 #747

Open GoogleCodeExporter opened 9 years ago

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

Issue Description:

I am trying to run Selenium tests on Debian 7 but without success.

The error is:

unknown error: Chrome failed to start: exited abnormally   (Driver info: 
chromedriver=2.9.248316,platform=Linux 3.2.0-4-686-pae x86) (WARNING: The 
server did not provide any stacktrace information) Command duration or timeout: 
60.55 seconds Build info: version: '2.33.0', revision: 
'4ecaf82108b2a6cc6f006aae81961236eba93358', time: '2013-05-22 12:00:17' System 
info: os.name: 'Linux', os.arch: 'i386', os.version: '3.2.0-4-686-pae', 
java.version: '1.7.0_25' Driver info: org.openqa.selenium.chrome.ChromeDriver

Steps to reproduce (if relevant, you MUST provide a simplified html page or
link to public site):

I have chromedriver 29 with chrome 34.0.1847.76 beta running on Debian 7 32 
bits. I am using selenium-java 2.33.0

I am using this command to test the chrome driver, to make sure that is not an 
issue with jenkins:

curl -X POST -H "Content-Type: application/json; charset=utf-8" -d 
"{\"desiredCapabilities\":{\"platform\":\"ANY\",\"browserName\":\"chrome\",\"chr
omeOptions\":{\"args\":[],\"extensions\":[]},\"version\":\"\",\"chrome.switches\
":[]}}" localhost:12495/session

I am getting the same error message:

{"sessionId":"210f3f837a798ee68cd91f089976d0c2","status":13,"value":{"message":"
unknown error: Chrome failed to start: exited abnormally\n  (Driver info: 
chromedriver=2.9.248316,platform=Linux 3.2.0-4-686-pae x86)"}}

Bug is reported on stackoverflow also. 
http://stackoverflow.com/questions/22558077/unknown-error-chrome-failed-to-start
-exited-abnormally-driver-info-chromedri

Original issue reported on code.google.com by reda.abdi on 24 Mar 2014 at 11:29

GoogleCodeExporter commented 9 years ago
Could you try launching chromedriver with --verbose --log-path=chromedriver.log 
and post your log file?

Original comment by samu...@chromium.org on 25 Mar 2014 at 10:34

GoogleCodeExporter commented 9 years ago
Sure, here is the content of the log file:

[0,500][WARNING]: PAC support disabled because there is no system implementation

(chromium:14154): Gtk-WARNING **: cannot open display: 

Why am I getting this error? I am running jenkins as user reda. This is the 
same user that I use to connect to my desktop environment.

Original comment by reda.abdi on 10 Apr 2014 at 10:24

GoogleCodeExporter commented 9 years ago
I just tested by running Xvfb and it works. 

Xvfb :0 -ac -screen 0 1024x768x24 &

Then, I set the DISPLAY variable to :0.0 in my jenkins admin page.

Why is it working with Xvfb but not with Xorg?

Original comment by reda.abdi on 10 Apr 2014 at 3:01

GoogleCodeExporter commented 9 years ago

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