rshf / chromedriver

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

Chrome crash during extension loading #508

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Place chromedriver.exe in the system path
2. Run the following code
import os
from selenium import webdriver
from selenium.webdriver.chrome.options import Options

chrome_options = Options()
chrome_options.add_extension(r'C:\\Program Files 
(x86)\\some\\folder\\extensionfile.crx')
driver = webdriver.Chrome(chrome_options=chrome_options)
driver.get("http://google.com")

Simplified test case or site demonstrating the problem:
Above code will do

What version of the product are you using? On what operating system?
ChromeDriver = 2.2
Chrome = 29.0.1547.62
OS = Reproducible on Win7 32, Win 7 64, Win 8 64

Please attach chromedriver.log to your bug report if possible.
chromedriver.log is not generated but the stack trace (without symbols) is

(dc8.1368): Access violation - code c0000005 (!!! second chance !!!)
chrome_6d660000!RelaunchChromeBrowserWithNewCommandLineIfNeeded+0x6607f:
6dcde450 6a01            push    1
0:000:x86> k
ChildEBP RetAddr  
WARNING: Stack unwind information not available. Following frames may be wrong.
002ded8c 6da91079 
chrome_6d660000!RelaunchChromeBrowserWithNewCommandLineIfNeeded+0x6607f
002dedac 6f477d20 chrome_6d660000!ovly_debug_event+0x4117a6
002dee38 6f4787c0 
chrome_6d660000!RelaunchChromeBrowserWithNewCommandLineIfNeeded+0x17ff94f
002dee54 6f477397 
chrome_6d660000!RelaunchChromeBrowserWithNewCommandLineIfNeeded+0x18003ef
002dee68 6eff26f7 
chrome_6d660000!RelaunchChromeBrowserWithNewCommandLineIfNeeded+0x17fefc6
002dee9c 6eff280c 
chrome_6d660000!RelaunchChromeBrowserWithNewCommandLineIfNeeded+0x137a326
002def28 6eff2965 
chrome_6d660000!RelaunchChromeBrowserWithNewCommandLineIfNeeded+0x137a43b
002defc8 6eff29ff 
chrome_6d660000!RelaunchChromeBrowserWithNewCommandLineIfNeeded+0x137a594
002defe0 6eff4b04 
chrome_6d660000!RelaunchChromeBrowserWithNewCommandLineIfNeeded+0x137a62e
002df00c 6eff5180 
chrome_6d660000!RelaunchChromeBrowserWithNewCommandLineIfNeeded+0x137c733
002df038 6eff53fd 
chrome_6d660000!RelaunchChromeBrowserWithNewCommandLineIfNeeded+0x137cdaf
002df098 6da137ce 
chrome_6d660000!RelaunchChromeBrowserWithNewCommandLineIfNeeded+0x137d02c
002df194 6da12edf chrome_6d660000!ovly_debug_event+0x393efb
002df1a8 6da12e4b chrome_6d660000!ovly_debug_event+0x39360c
002df1b8 6da122de chrome_6d660000!ovly_debug_event+0x393578
002df1d0 6da11dae chrome_6d660000!ovly_debug_event+0x392a0b
002df210 6d9e166e chrome_6d660000!ovly_debug_event+0x3924db
002df240 6d9e136b chrome_6d660000!ovly_debug_event+0x361d9b
002df310 6d9d87ca chrome_6d660000!ovly_debug_event+0x361a98
002df8a8 6d9d8050 chrome_6d660000!ovly_debug_event+0x358ef7

Original issue reported on code.google.com by account....@gmail.com on 2 Sep 2013 at 3:26

GoogleCodeExporter commented 9 years ago
what error do you get on the client side? have you tried substituting your crx 
for a dummy one?

Original comment by kkania@chromium.org on 10 Sep 2013 at 7:20

GoogleCodeExporter commented 9 years ago
Traceback (most recent call last):
  File "C:\Users\admin1\Desktop\b.py", line 23, in <module>
    a()
  File "C:\Users\admin1\Desktop\b.py", line 12, in a
    driver = webdriver.Chrome(executable_path=r"C:\Windows\System32\chromedriver.exe",chrome_options=chrome_options)
  File "c:\runner\thirdparty\selenium\webdriver\chrome\webdriver.py", line 64, in __init__
    desired_capabilities=desired_capabilities)
  File "C:\Python27\lib\site-packages\selenium-2.35.0-py2.7.egg\selenium\webdriver\remote\webdriver.py", line 72, in __init__
    self.start_session(desired_capabilities, browser_profile)
  File "C:\Python27\lib\site-packages\selenium-2.35.0-py2.7.egg\selenium\webdriver\remote\webdriver.py", line 114, in start_session
    'desiredCapabilities': desired_capabilities,
  File "C:\Python27\lib\site-packages\selenium-2.35.0-py2.7.egg\selenium\webdriver\remote\webdriver.py", line 165, in execute
    self.error_handler.check_response(response)
  File "C:\Python27\lib\site-packages\selenium-2.35.0-py2.7.egg\selenium\webdriver\remote\errorhandler.py", line 164, in check_response
    raise exception_class(message, screen, stacktrace)
WebDriverException: Message: u'unknown error: Chrome failed to start: crashed\n 
 (Driver info: chromedriver=2.3,platform=Windows NT 6.1 SP1 x86_64)'

I tried with many crx files but the result is same everytime.The same crx is 
working for firefox.

Original comment by account....@gmail.com on 11 Sep 2013 at 2:50

GoogleCodeExporter commented 9 years ago
Thanks for the response. Have you tried with an extension CRX that does nothing 
(NO bg page)? Are you passing any chrome options?  Also, can you enable verbose 
logging and post the log. See 
https://sites.google.com/a/chromium.org/chromedriver/logging if you don't know 
how to do that

Original comment by kka...@google.com on 11 Sep 2013 at 4:49

GoogleCodeExporter commented 9 years ago
No, I haven't tested with that sort of crx.
I am passing 1 chrome option as mentioned in steps 
chrome_options.add_extension(r'C:\\Program Files 
(x86)\\some\\folder\\extensionfile.crx')

Verbose Log is attached.
Thanks for you time.

Original comment by account....@gmail.com on 12 Sep 2013 at 6:55

Attachments:

GoogleCodeExporter commented 9 years ago
Issue 523 has been merged into this issue.

Original comment by samu...@chromium.org on 25 Oct 2013 at 7:34

GoogleCodeExporter commented 9 years ago
issue happens on 
https://chrome.google.com/webstore/detail/clickonce-for-google-chro/eeifaoomkmin
pbeebjdmdojbhmagnncl?hl=en-US

Original comment by timtong1...@gmail.com on 20 Dec 2013 at 1:13

GoogleCodeExporter commented 9 years ago

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

GoogleCodeExporter commented 9 years ago
Issue is not reproducible with latest chromedriver 2.14
Can you please try with latest chromedriver & chrome browser and let us know if 
you see any issue?

Original comment by gmanikp...@chromium.org on 24 Mar 2015 at 10:29

GoogleCodeExporter commented 9 years ago

Original comment by gmanikp...@chromium.org on 1 Apr 2015 at 6:53